qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Bug#688964: qemu-kvm: Fedora 17 guest hangs on boot wit


From: Michael Tokarev
Subject: Re: [Qemu-devel] Bug#688964: qemu-kvm: Fedora 17 guest hangs on boot with soft lockup in udevd
Date: Thu, 27 Sep 2012 22:43:57 +0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6

On 27.09.2012 22:28, Jan Kiszka wrote:
[]
>> --- a/hw/intel-hda.c
>> +++ b/hw/intel-hda.c
>> @@ -1107,6 +1107,9 @@ static void intel_hda_reset(DeviceState *dev)
>>      DeviceState *qdev;
>>      HDACodecDevice *cdev;
>>
>> +    if (d->msi) {
>> +        msi_reset(&d->pci);
>> +    }
>>      intel_hda_regs_reset(d);
>>      d->wall_base_ns = qemu_get_clock_ns(vm_clock);
>>
>> which is exactly about this hda thing.  I'm CC'ing relevant
>> people here.
> 
> I suppose we are resetting the MSI configuration also in cases here
> where only the HDA internals are supposed to be reset (when called from
> intel_hda_set_g_ctl).

Hmm.  I was looking at this code already (but i don't know the machinery
anyway).  Here it is (I addedd two printfs in obvious places):

in intel_hda_reset
calling intel_hda_reset from intel_hda_set_g_ctl
in intel_hda_reset
(at this time it hangs in guest).

The following patch fixes it.  Is it correct? :)

/mjt

Attachment: intel-hda-msi-reset.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]