* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
[not found] ` <20140430000103.GA7429@Inspiron-3521>
@ 2014-05-06 8:04 ` Gonglei (Arei)
2014-05-06 9:47 ` Markus Armbruster
0 siblings, 1 reply; 11+ messages in thread
From: Gonglei (Arei) @ 2014-05-06 8:04 UTC (permalink / raw)
To: Hani Benhabiles
Cc: Peter Maydell, Paolo Bonzini, Michael S. Tsirkin,
qemu-devel@nongnu.org, Andreas Färber
Hi,
> > > Il 26/04/2014 10:56, Gonglei (Arei) ha scritto:
> > > > Public bug reported:
> > > >
> > > > I want to repeated hot-plug/unplug the virtio-net in the latest qemu
> > > upstream
> > > > (commit 839a5547574e57cce62f49bfc50fe1f04b00589a), but I am failed
> at
> > > the
> > > > second time hot plug the virtio-net to guest.
> > > >
> > > > Then I tried to use Qemu-2.0.0 release version, but I got the error too.
> > > >
> > > > Cmdline for vm:
> > > >
> > > > /mnt/sdb/gonglei/qemu/x86_64-softmmu/qemu-system-x86_64
> -enable-kvm
> > > -m 4096 -smp 4 -name sles-et -boot c -drive file=/mnt/sdb/gonglei/image/
> > > sles-3.img -vnc 0.0.0.0:10 -monitor stdio
> > > > QEMU 1.7.50 monitor - type 'help' for more information
> > >
> > > For commit 839a5547574e57cce62f49bfc50fe1f04b00589a you should have
> > > gotten 1.7.90 as the version number.
> > >
> > Maybe just because Peter Maydell merge remote-tracking branch. But it
> doesn't matter.
> >
> > > > (qemu) device_add virtio-net-pci,id=net1
> > > > (qemu) device_del net1
> > > > (qemu) device_add virtio-net-pci,id=net1
> > > > Duplicate ID 'net1' for device
> > > > (qemu)
> > >
> > > I cannot reproduce this on Fedora running the 2.0.0 package from the
> > > virt-preview repository (qemu-system-x86-2.0.0-2.fc20.x86_64).
> > >
> > > For what it's worth, I get this for --version:
> > >
> > > $ qemu-system-x86_64 --version
> > > QEMU emulator version 2.0.0, Copyright (c) 2003-2008 Fabrice Bellard
> > >
> > > and likewise, when starting QEMU with "-monitor stdio":
> > >
> > > QEMU 2.0.0 monitor - type 'help' for more information
> > >
> > I got the QEMU 2.0.0 version from http://wiki.qemu.org/Download
> >
> > The issue was reproduced perforce:
> > UVP:/mnt/sdb/gonglei/code/qemu-2.0.0/x86_64-softmmu
> #./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name sles \
> > -boot c -drive file=/mnt/sdb/gonglei/image/sles-3.img -vnc 0.0.0.0:10
> -monitor stdio
> > QEMU 2.0.0 monitor - type 'help' for more information
> > (qemu) device_add virtio-net-pci,id=net1
> > (qemu) device_del net1
> > (qemu) device_add virtio-net-pci,id=net1
> > Duplicate ID 'net1' for device
> > (qemu)
> >
> > Anything wrong? Thanks!
>
> Issue confirmed with both -monitor and qmp-shell with different other device
> models like e1000.
Thanks. This issue confused me two weeks now, any helps will be appreciated.
Cc'ing Peter and Michael for additional insights.
Best regards,
-Gonglei
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
2014-05-06 8:04 ` [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times Gonglei (Arei)
@ 2014-05-06 9:47 ` Markus Armbruster
2014-05-06 12:52 ` Gonglei (Arei)
0 siblings, 1 reply; 11+ messages in thread
From: Markus Armbruster @ 2014-05-06 9:47 UTC (permalink / raw)
To: Gonglei (Arei)
Cc: Peter Maydell, Michael S. Tsirkin, qemu-devel@nongnu.org,
Hani Benhabiles, Paolo Bonzini, Andreas Färber
"Gonglei (Arei)" <arei.gonglei@huawei.com> writes:
> Hi,
>
>> > > Il 26/04/2014 10:56, Gonglei (Arei) ha scritto:
>> > > > Public bug reported:
>> > > >
>> > > > I want to repeated hot-plug/unplug the virtio-net in the latest qemu
>> > > upstream
>> > > > (commit 839a5547574e57cce62f49bfc50fe1f04b00589a), but I am failed
>> at
>> > > the
>> > > > second time hot plug the virtio-net to guest.
>> > > >
>> > > > Then I tried to use Qemu-2.0.0 release version, but I got the error too.
>> > > >
>> > > > Cmdline for vm:
>> > > >
>> > > > /mnt/sdb/gonglei/qemu/x86_64-softmmu/qemu-system-x86_64
>> -enable-kvm
>> > > -m 4096 -smp 4 -name sles-et -boot c -drive file=/mnt/sdb/gonglei/image/
>> > > sles-3.img -vnc 0.0.0.0:10 -monitor stdio
>> > > > QEMU 1.7.50 monitor - type 'help' for more information
>> > >
>> > > For commit 839a5547574e57cce62f49bfc50fe1f04b00589a you should have
>> > > gotten 1.7.90 as the version number.
>> > >
>> > Maybe just because Peter Maydell merge remote-tracking branch. But it
>> doesn't matter.
>> >
>> > > > (qemu) device_add virtio-net-pci,id=net1
>> > > > (qemu) device_del net1
>> > > > (qemu) device_add virtio-net-pci,id=net1
>> > > > Duplicate ID 'net1' for device
>> > > > (qemu)
>> > >
>> > > I cannot reproduce this on Fedora running the 2.0.0 package from the
>> > > virt-preview repository (qemu-system-x86-2.0.0-2.fc20.x86_64).
>> > >
>> > > For what it's worth, I get this for --version:
>> > >
>> > > $ qemu-system-x86_64 --version
>> > > QEMU emulator version 2.0.0, Copyright (c) 2003-2008 Fabrice Bellard
>> > >
>> > > and likewise, when starting QEMU with "-monitor stdio":
>> > >
>> > > QEMU 2.0.0 monitor - type 'help' for more information
>> > >
>> > I got the QEMU 2.0.0 version from http://wiki.qemu.org/Download
>> >
>> > The issue was reproduced perforce:
>> > UVP:/mnt/sdb/gonglei/code/qemu-2.0.0/x86_64-softmmu
>> #./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name sles \
>> > -boot c -drive file=/mnt/sdb/gonglei/image/sles-3.img -vnc 0.0.0.0:10
>> -monitor stdio
>> > QEMU 2.0.0 monitor - type 'help' for more information
>> > (qemu) device_add virtio-net-pci,id=net1
>> > (qemu) device_del net1
>> > (qemu) device_add virtio-net-pci,id=net1
>> > Duplicate ID 'net1' for device
>> > (qemu)
>> >
>> > Anything wrong? Thanks!
>>
>> Issue confirmed with both -monitor and qmp-shell with different other device
>> models like e1000.
>
> Thanks. This issue confused me two weeks now, any helps will be appreciated.
>
> Cc'ing Peter and Michael for additional insights.
I suspect your second device_add fails because the unplug initiated by
device_del hasn't completed, yet.
More detailed explanation of the ACPI unplug dance:
https://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg01362.html
Please verify the device is gone with "info pci", "info qtree" or
similar before you try device_del.
In QMP, you get a DEVICE_DELETED event when the unplug completes. See
qmp/qmp-events.txt.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
2014-05-06 9:47 ` Markus Armbruster
@ 2014-05-06 12:52 ` Gonglei (Arei)
2014-05-06 13:36 ` Andreas Färber
0 siblings, 1 reply; 11+ messages in thread
From: Gonglei (Arei) @ 2014-05-06 12:52 UTC (permalink / raw)
To: Markus Armbruster
Cc: Peter Maydell, Michael S. Tsirkin, qemu-devel@nongnu.org,
Hani Benhabiles, Paolo Bonzini, Andreas Färber
> >> > > Il 26/04/2014 10:56, Gonglei (Arei) ha scritto:
> >> > > > Public bug reported:
> >> > > >
> >> > > > I want to repeated hot-plug/unplug the virtio-net in the latest qemu
> >> > > upstream
> >> > > > (commit 839a5547574e57cce62f49bfc50fe1f04b00589a), but I am
> failed
> >> at
> >> > > the
> >> > > > second time hot plug the virtio-net to guest.
> >> > > >
> >> > > > Then I tried to use Qemu-2.0.0 release version, but I got the error too.
> >> > > >
> >> > > > Cmdline for vm:
> >> > > >
> >> > > > /mnt/sdb/gonglei/qemu/x86_64-softmmu/qemu-system-x86_64
> >> -enable-kvm
> >> > > -m 4096 -smp 4 -name sles-et -boot c -drive
> file=/mnt/sdb/gonglei/image/
> >> > > sles-3.img -vnc 0.0.0.0:10 -monitor stdio
> >> > > > QEMU 1.7.50 monitor - type 'help' for more information
> >> > >
> >> > > For commit 839a5547574e57cce62f49bfc50fe1f04b00589a you should
> have
> >> > > gotten 1.7.90 as the version number.
> >> > >
> >> > Maybe just because Peter Maydell merge remote-tracking branch. But it
> >> doesn't matter.
> >> >
> >> > > > (qemu) device_add virtio-net-pci,id=net1
> >> > > > (qemu) device_del net1
> >> > > > (qemu) device_add virtio-net-pci,id=net1
> >> > > > Duplicate ID 'net1' for device
> >> > > > (qemu)
> >> > >
> >> > > I cannot reproduce this on Fedora running the 2.0.0 package from the
> >> > > virt-preview repository (qemu-system-x86-2.0.0-2.fc20.x86_64).
> >> > >
> >> > > For what it's worth, I get this for --version:
> >> > >
> >> > > $ qemu-system-x86_64 --version
> >> > > QEMU emulator version 2.0.0, Copyright (c) 2003-2008 Fabrice Bellard
> >> > >
> >> > > and likewise, when starting QEMU with "-monitor stdio":
> >> > >
> >> > > QEMU 2.0.0 monitor - type 'help' for more information
> >> > >
> >> > I got the QEMU 2.0.0 version from http://wiki.qemu.org/Download
> >> >
> >> > The issue was reproduced perforce:
> >> > UVP:/mnt/sdb/gonglei/code/qemu-2.0.0/x86_64-softmmu
> >> #./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name sles \
> >> > -boot c -drive file=/mnt/sdb/gonglei/image/sles-3.img -vnc 0.0.0.0:10
> >> -monitor stdio
> >> > QEMU 2.0.0 monitor - type 'help' for more information
> >> > (qemu) device_add virtio-net-pci,id=net1
> >> > (qemu) device_del net1
> >> > (qemu) device_add virtio-net-pci,id=net1
> >> > Duplicate ID 'net1' for device
> >> > (qemu)
> >> >
> >> > Anything wrong? Thanks!
> >>
> >> Issue confirmed with both -monitor and qmp-shell with different other
> device
> >> models like e1000.
> >
> > Thanks. This issue confused me two weeks now, any helps will be
> appreciated.
> >
> > Cc'ing Peter and Michael for additional insights.
>
> I suspect your second device_add fails because the unplug initiated by
> device_del hasn't completed, yet.
>
> More detailed explanation of the ACPI unplug dance:
> https://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg01362.html
>
> Please verify the device is gone with "info pci", "info qtree" or
> similar before you try device_del.
>
Thank you for reply. I have verified it.
Step 1: I executed "device_add virtio-net-pci,id=net1"
with "info pci", I found the net1, showing as below:
Bus 0, device 4, function 0:
Ethernet controller: PCI device 1af4:1000
IRQ 0.
BAR0: I/O at 0xffffffffffffffff [0x001e].
BAR1: 32 bit memory at 0xffffffffffffffff [0x00000ffe].
BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe].
id "net1"
Step 2: I executed " device_del net1", but the net1 still existed.
> In QMP, you get a DEVICE_DELETED event when the unplug completes. See
> qmp/qmp-events.txt.
Actually, I don't get the event, as the net1 can't be unplug.
BTW, when I execute step 1 "device_add virtio-net-pci,id=net1", I don't find the
Ethernet controller of virtio-net by "lspci " in the guest OS.
TBH, the command execution failed despite we can see net1 with "info pci".
Would you help me to verify it? Thanks in advance!
Best regards,
-Gonglei
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
2014-05-06 12:52 ` Gonglei (Arei)
@ 2014-05-06 13:36 ` Andreas Färber
2014-05-06 13:41 ` Gonglei (Arei)
0 siblings, 1 reply; 11+ messages in thread
From: Andreas Färber @ 2014-05-06 13:36 UTC (permalink / raw)
To: Gonglei (Arei)
Cc: Peter Maydell, Michael S. Tsirkin, qemu-devel@nongnu.org,
Markus Armbruster, Hani Benhabiles, Paolo Bonzini
Hi Gonglei,
Am 06.05.2014 14:52, schrieb Gonglei (Arei):
> Step 1: I executed "device_add virtio-net-pci,id=net1"
> with "info pci", I found the net1, showing as below:
> Bus 0, device 4, function 0:
> Ethernet controller: PCI device 1af4:1000
> IRQ 0.
> BAR0: I/O at 0xffffffffffffffff [0x001e].
> BAR1: 32 bit memory at 0xffffffffffffffff [0x00000ffe].
> BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe].
> id "net1"
> Step 2: I executed " device_del net1", but the net1 still existed.
>
>> In QMP, you get a DEVICE_DELETED event when the unplug completes. See
>> qmp/qmp-events.txt.
> Actually, I don't get the event, as the net1 can't be unplug.
>
> BTW, when I execute step 1 "device_add virtio-net-pci,id=net1", I don't find the
> Ethernet controller of virtio-net by "lspci " in the guest OS.
> TBH, the command execution failed despite we can see net1 with "info pci".
Sounds like the acpiphp kernel module is not loaded inside the guest?
Regards,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
2014-05-06 13:36 ` Andreas Färber
@ 2014-05-06 13:41 ` Gonglei (Arei)
2014-05-06 13:58 ` Andreas Färber
0 siblings, 1 reply; 11+ messages in thread
From: Gonglei (Arei) @ 2014-05-06 13:41 UTC (permalink / raw)
To: Andreas Färber
Cc: Peter Maydell, Michael S. Tsirkin, qemu-devel@nongnu.org,
Markus Armbruster, Hani Benhabiles, Paolo Bonzini
>
> Am 06.05.2014 14:52, schrieb Gonglei (Arei):
> > Step 1: I executed "device_add virtio-net-pci,id=net1"
> > with "info pci", I found the net1, showing as below:
> > Bus 0, device 4, function 0:
> > Ethernet controller: PCI device 1af4:1000
> > IRQ 0.
> > BAR0: I/O at 0xffffffffffffffff [0x001e].
> > BAR1: 32 bit memory at 0xffffffffffffffff [0x00000ffe].
> > BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe].
> > id "net1"
> > Step 2: I executed " device_del net1", but the net1 still existed.
> >
> >> In QMP, you get a DEVICE_DELETED event when the unplug completes.
> See
> >> qmp/qmp-events.txt.
> > Actually, I don't get the event, as the net1 can't be unplug.
> >
> > BTW, when I execute step 1 "device_add virtio-net-pci,id=net1", I don't find
> the
> > Ethernet controller of virtio-net by "lspci " in the guest OS.
> > TBH, the command execution failed despite we can see net1 with "info pci".
>
> Sounds like the acpiphp kernel module is not loaded inside the guest?
>
OMG, thank you so much. Good catch.
Best regards,
-Gonglei
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
2014-05-06 13:41 ` Gonglei (Arei)
@ 2014-05-06 13:58 ` Andreas Färber
2014-05-06 14:08 ` Gonglei (Arei)
0 siblings, 1 reply; 11+ messages in thread
From: Andreas Färber @ 2014-05-06 13:58 UTC (permalink / raw)
To: Gonglei (Arei)
Cc: Peter Maydell, Michael S. Tsirkin, qemu-devel@nongnu.org,
Markus Armbruster, Hani Benhabiles, Paolo Bonzini
Am 06.05.2014 15:41, schrieb Gonglei (Arei):
>>
>> Am 06.05.2014 14:52, schrieb Gonglei (Arei):
>>> Step 1: I executed "device_add virtio-net-pci,id=net1"
>>> with "info pci", I found the net1, showing as below:
>>> Bus 0, device 4, function 0:
>>> Ethernet controller: PCI device 1af4:1000
>>> IRQ 0.
>>> BAR0: I/O at 0xffffffffffffffff [0x001e].
>>> BAR1: 32 bit memory at 0xffffffffffffffff [0x00000ffe].
>>> BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe].
>>> id "net1"
>>> Step 2: I executed " device_del net1", but the net1 still existed.
>>>
>>>> In QMP, you get a DEVICE_DELETED event when the unplug completes.
>> See
>>>> qmp/qmp-events.txt.
>>> Actually, I don't get the event, as the net1 can't be unplug.
>>>
>>> BTW, when I execute step 1 "device_add virtio-net-pci,id=net1", I don't find
>> the
>>> Ethernet controller of virtio-net by "lspci " in the guest OS.
>>> TBH, the command execution failed despite we can see net1 with "info pci".
>>
>> Sounds like the acpiphp kernel module is not loaded inside the guest?
>>
> OMG, thank you so much. Good catch.
In that case check your /etc/modprobe.conf file in the SLES guest. From
at least SLES 11 SP2 on you should have an entry like this (here SP3):
alias dmi:bvnQEMU:bvrQEMU:* acpiphp
The exact values changed between SeaBIOS versions at some point.
HTH,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
2014-05-06 13:58 ` Andreas Färber
@ 2014-05-06 14:08 ` Gonglei (Arei)
2014-05-06 15:02 ` Andreas Färber
0 siblings, 1 reply; 11+ messages in thread
From: Gonglei (Arei) @ 2014-05-06 14:08 UTC (permalink / raw)
To: Andreas Färber
Cc: Peter Maydell, Michael S. Tsirkin, qemu-devel@nongnu.org,
Markus Armbruster, Hani Benhabiles, Paolo Bonzini
Hi,
> -----Original Message-----
> From: Andreas Färber [mailto:afaerber@suse.de]
> Sent: Tuesday, May 06, 2014 9:58 PM
> To: Gonglei (Arei)
> Cc: Markus Armbruster; Hani Benhabiles; Peter Maydell; Paolo Bonzini;
> Michael S. Tsirkin; qemu-devel@nongnu.org
> Subject: Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net
> hot plug/unplug exceed two times
>
> Am 06.05.2014 15:41, schrieb Gonglei (Arei):
> >>
> >> Am 06.05.2014 14:52, schrieb Gonglei (Arei):
> >>> Step 1: I executed "device_add virtio-net-pci,id=net1"
> >>> with "info pci", I found the net1, showing as below:
> >>> Bus 0, device 4, function 0:
> >>> Ethernet controller: PCI device 1af4:1000
> >>> IRQ 0.
> >>> BAR0: I/O at 0xffffffffffffffff [0x001e].
> >>> BAR1: 32 bit memory at 0xffffffffffffffff [0x00000ffe].
> >>> BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe].
> >>> id "net1"
> >>> Step 2: I executed " device_del net1", but the net1 still existed.
> >>>
> >>>> In QMP, you get a DEVICE_DELETED event when the unplug completes.
> >> See
> >>>> qmp/qmp-events.txt.
> >>> Actually, I don't get the event, as the net1 can't be unplug.
> >>>
> >>> BTW, when I execute step 1 "device_add virtio-net-pci,id=net1", I don't find
> >> the
> >>> Ethernet controller of virtio-net by "lspci " in the guest OS.
> >>> TBH, the command execution failed despite we can see net1 with "info
> pci".
> >>
> >> Sounds like the acpiphp kernel module is not loaded inside the guest?
> >>
> > OMG, thank you so much. Good catch.
>
> In that case check your /etc/modprobe.conf file in the SLES guest. From
> at least SLES 11 SP2 on you should have an entry like this (here SP3):
>
> alias dmi:bvnQEMU:bvrQEMU:* acpiphp
>
> The exact values changed between SeaBIOS versions at some point.
>
Yes, I find the entry in /etc/modprobe.conf file. But I don't understand it:
# QEMU/KVM can handle ACPI Hotplugging
alias dmi:bvnQEMU:bvrQEMU:* acpiphp
Why not the SLSE OS auto load the acpiphp module when it's booting?
Best regards,
-Gonglei
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
2014-05-06 14:08 ` Gonglei (Arei)
@ 2014-05-06 15:02 ` Andreas Färber
2014-05-12 7:08 ` Andreas Färber
0 siblings, 1 reply; 11+ messages in thread
From: Andreas Färber @ 2014-05-06 15:02 UTC (permalink / raw)
To: Gonglei (Arei)
Cc: Peter Maydell, Michael S. Tsirkin, qemu-devel@nongnu.org,
Markus Armbruster, Hani Benhabiles, Paolo Bonzini
Hi,
Am 06.05.2014 16:08, schrieb Gonglei (Arei):
>> -----Original Message-----
>> From: Andreas Färber [mailto:afaerber@suse.de]
>> Sent: Tuesday, May 06, 2014 9:58 PM
>> To: Gonglei (Arei)
>> Cc: Markus Armbruster; Hani Benhabiles; Peter Maydell; Paolo Bonzini;
>> Michael S. Tsirkin; qemu-devel@nongnu.org
>> Subject: Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net
>> hot plug/unplug exceed two times
>>
>> Am 06.05.2014 15:41, schrieb Gonglei (Arei):
>>>>
>>>> Am 06.05.2014 14:52, schrieb Gonglei (Arei):
>>>>> Step 1: I executed "device_add virtio-net-pci,id=net1"
>>>>> with "info pci", I found the net1, showing as below:
>>>>> Bus 0, device 4, function 0:
>>>>> Ethernet controller: PCI device 1af4:1000
>>>>> IRQ 0.
>>>>> BAR0: I/O at 0xffffffffffffffff [0x001e].
>>>>> BAR1: 32 bit memory at 0xffffffffffffffff [0x00000ffe].
>>>>> BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe].
>>>>> id "net1"
>>>>> Step 2: I executed " device_del net1", but the net1 still existed.
>>>>>
>>>>>> In QMP, you get a DEVICE_DELETED event when the unplug completes.
>>>> See
>>>>>> qmp/qmp-events.txt.
>>>>> Actually, I don't get the event, as the net1 can't be unplug.
>>>>>
>>>>> BTW, when I execute step 1 "device_add virtio-net-pci,id=net1", I don't find
>>>> the
>>>>> Ethernet controller of virtio-net by "lspci " in the guest OS.
>>>>> TBH, the command execution failed despite we can see net1 with "info
>> pci".
>>>>
>>>> Sounds like the acpiphp kernel module is not loaded inside the guest?
>>>>
>>> OMG, thank you so much. Good catch.
>>
>> In that case check your /etc/modprobe.conf file in the SLES guest. From
>> at least SLES 11 SP2 on you should have an entry like this (here SP3):
>>
>> alias dmi:bvnQEMU:bvrQEMU:* acpiphp
>>
>> The exact values changed between SeaBIOS versions at some point.
>>
> Yes, I find the entry in /etc/modprobe.conf file. But I don't understand it:
>
> # QEMU/KVM can handle ACPI Hotplugging
> alias dmi:bvnQEMU:bvrQEMU:* acpiphp
>
> Why not the SLSE OS auto load the acpiphp module when it's booting?
This entry is what's supposed to trigger the auto-load on our KVM. :)
Like I said above, it depends on the (Sea)BIOS, and you can verify your
values by running
udevadm monitor --property
and while it's monitoring, running
udevadm trigger
On a recent QEMU I then see
KERNEL[761.415335] change /devices/virtual/dmi/id (dmi)
ACTION=change
DEVPATH=/devices/virtual/dmi/id
MODALIAS=dmi:bvnBochs:bvrBochs;bd01/01/2011:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-2.0:cvnBochs:ct1:cvr:
SEQNUM=2896
SUBSYSTEM=dmi
So with the SeaBIOS blob from qemu.git,
alias dmi:bvnBochs:bvrBochs:* acpiphp
would be needed. Once you add it to modprobe.conf I would expect the
next `udevadm trigger` (or reboot) to auto-load the module again.
SLES 12 has the module built-in and thus no longer depends on this
mechanism for auto-loading it.
Best regards,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
2014-05-06 15:02 ` Andreas Färber
@ 2014-05-12 7:08 ` Andreas Färber
2014-05-12 8:06 ` Gonglei (Arei)
0 siblings, 1 reply; 11+ messages in thread
From: Andreas Färber @ 2014-05-12 7:08 UTC (permalink / raw)
To: Gonglei (Arei); +Cc: qemu-devel@nongnu.org
Am 06.05.2014 17:02, schrieb Andreas Färber:
> Am 06.05.2014 16:08, schrieb Gonglei (Arei):
>>> -----Original Message-----
>>> From: Andreas Färber [mailto:afaerber@suse.de]
>>> Sent: Tuesday, May 06, 2014 9:58 PM
>>> To: Gonglei (Arei)
>>> Cc: Markus Armbruster; Hani Benhabiles; Peter Maydell; Paolo Bonzini;
>>> Michael S. Tsirkin; qemu-devel@nongnu.org
>>> Subject: Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net
>>> hot plug/unplug exceed two times
>>>
>>>>> Sounds like the acpiphp kernel module is not loaded inside the guest?
>>>>>
>>>> OMG, thank you so much. Good catch.
>>>
>>> In that case check your /etc/modprobe.conf file in the SLES guest. From
>>> at least SLES 11 SP2 on you should have an entry like this (here SP3):
>>>
>>> alias dmi:bvnQEMU:bvrQEMU:* acpiphp
>>>
>>> The exact values changed between SeaBIOS versions at some point.
>>>
>> Yes, I find the entry in /etc/modprobe.conf file. But I don't understand it:
>>
>> # QEMU/KVM can handle ACPI Hotplugging
>> alias dmi:bvnQEMU:bvrQEMU:* acpiphp
>>
>> Why not the SLSE OS auto load the acpiphp module when it's booting?
>
> This entry is what's supposed to trigger the auto-load on our KVM. :)
>
> Like I said above, it depends on the (Sea)BIOS, and you can verify your
> values by running
>
> udevadm monitor --property
>
> and while it's monitoring, running
>
> udevadm trigger
>
> On a recent QEMU I then see
>
> KERNEL[761.415335] change /devices/virtual/dmi/id (dmi)
> ACTION=change
> DEVPATH=/devices/virtual/dmi/id
> MODALIAS=dmi:bvnBochs:bvrBochs;bd01/01/2011:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-2.0:cvnBochs:ct1:cvr:
> SEQNUM=2896
> SUBSYSTEM=dmi
>
> So with the SeaBIOS blob from qemu.git,
>
> alias dmi:bvnBochs:bvrBochs:* acpiphp
>
> would be needed. Once you add it to modprobe.conf I would expect the
> next `udevadm trigger` (or reboot) to auto-load the module again.
SLES 11 SP2 kernels since 2012
(https://bugzilla.novell.com/show_bug.cgi?id=754391) and SP3 should not
need the modprobe.conf entry for "Bochs", since the DMI match was added
to the module itself. So it sounds as if the kernel package is not
up-to-date?
If you do see this problem with a fully-updated SLES guest (kernel-* and
module-init-tools packages), please let us know.
Regards,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
2014-05-12 7:08 ` Andreas Färber
@ 2014-05-12 8:06 ` Gonglei (Arei)
2014-05-12 8:54 ` Andreas Färber
0 siblings, 1 reply; 11+ messages in thread
From: Gonglei (Arei) @ 2014-05-12 8:06 UTC (permalink / raw)
To: Andreas Färber; +Cc: qemu-devel@nongnu.org
Hi,
> -----Original Message-----
> From: Andreas Färber [mailto:afaerber@suse.de]
> Sent: Monday, May 12, 2014 3:09 PM
> To: Gonglei (Arei)
> Cc: qemu-devel@nongnu.org
> Subject: Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net
> hot plug/unplug exceed two times
>
> Am 06.05.2014 17:02, schrieb Andreas Färber:
> > Am 06.05.2014 16:08, schrieb Gonglei (Arei):
> >>> -----Original Message-----
> >>> From: Andreas Färber [mailto:afaerber@suse.de]
> >>> Sent: Tuesday, May 06, 2014 9:58 PM
> >>> To: Gonglei (Arei)
> >>> Cc: Markus Armbruster; Hani Benhabiles; Peter Maydell; Paolo Bonzini;
> >>> Michael S. Tsirkin; qemu-devel@nongnu.org
> >>> Subject: Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support
> virtio-net
> >>> hot plug/unplug exceed two times
> >>>
> >>>>> Sounds like the acpiphp kernel module is not loaded inside the guest?
> >>>>>
> >>>> OMG, thank you so much. Good catch.
> >>>
> >>> In that case check your /etc/modprobe.conf file in the SLES guest. From
> >>> at least SLES 11 SP2 on you should have an entry like this (here SP3):
> >>>
> >>> alias dmi:bvnQEMU:bvrQEMU:* acpiphp
> >>>
> >>> The exact values changed between SeaBIOS versions at some point.
> >>>
> >> Yes, I find the entry in /etc/modprobe.conf file. But I don't understand it:
> >>
> >> # QEMU/KVM can handle ACPI Hotplugging
> >> alias dmi:bvnQEMU:bvrQEMU:* acpiphp
> >>
> >> Why not the SLSE OS auto load the acpiphp module when it's booting?
> >
> > This entry is what's supposed to trigger the auto-load on our KVM. :)
> >
> > Like I said above, it depends on the (Sea)BIOS, and you can verify your
> > values by running
> >
> > udevadm monitor --property
> >
> > and while it's monitoring, running
> >
> > udevadm trigger
> >
> > On a recent QEMU I then see
> >
> > KERNEL[761.415335] change /devices/virtual/dmi/id (dmi)
> > ACTION=change
> > DEVPATH=/devices/virtual/dmi/id
> >
> MODALIAS=dmi:bvnBochs:bvrBochs;bd01/01/2011:svnQEMU:pnStandardPC(i4
> 40FX+PIIX,1996):pvrpc-i440fx-2.0:cvnBochs:ct1:cvr:
> > SEQNUM=2896
> > SUBSYSTEM=dmi
> >
> > So with the SeaBIOS blob from qemu.git,
> >
> > alias dmi:bvnBochs:bvrBochs:* acpiphp
> >
> > would be needed. Once you add it to modprobe.conf I would expect the
> > next `udevadm trigger` (or reboot) to auto-load the module again.
>
> SLES 11 SP2 kernels since 2012
> (https://bugzilla.novell.com/show_bug.cgi?id=754391) and SP3 should not
> need the modprobe.conf entry for "Bochs", since the DMI match was added
> to the module itself. So it sounds as if the kernel package is not
> up-to-date?
>
> If you do see this problem with a fully-updated SLES guest (kernel-* and
> module-init-tools packages), please let us know.
>
My guest os configuration is:
linux-b2ij:~ # rpm -qa|grep kernel
kernel-source-3.0.76-0.11.1
linux-kernel-headers-2.6.32-1.13.5
kernel-default-devel-3.0.76-0.11.1
kernel-default-base-3.0.76-0.11.1
kernel-default-3.0.76-0.11.1
kernel-firmware-20110923-0.42.49
linux-b2ij:~ # rpm -qa|grep module
libgmodule-2_0-0-2.22.5-0.8.8.1
pam-modules-11-1.22.1
pulseaudio-module-x11-0.9.23-0.7.128
libgmodule-2_0-0-32bit-2.22.5-0.8.8.1
module-init-tools-3.11.1-1.28.5
pam-modules-32bit-11-1.22.1
linux-b2ij:~ # uname -a
Linux linux-b2ij 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux
linux-b2ij:~ # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3
Best regards,
-Gonglei
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times
2014-05-12 8:06 ` Gonglei (Arei)
@ 2014-05-12 8:54 ` Andreas Färber
0 siblings, 0 replies; 11+ messages in thread
From: Andreas Färber @ 2014-05-12 8:54 UTC (permalink / raw)
To: Gonglei (Arei); +Cc: qemu-devel@nongnu.org
Hello,
Am 12.05.2014 10:06, schrieb Gonglei (Arei):
>> -----Original Message-----
>> From: Andreas Färber [mailto:afaerber@suse.de]
>> Sent: Monday, May 12, 2014 3:09 PM
>> To: Gonglei (Arei)
>> Cc: qemu-devel@nongnu.org
>> Subject: Re: [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net
>> hot plug/unplug exceed two times
>>
>> SLES 11 SP2 kernels since 2012
>> (https://bugzilla.novell.com/show_bug.cgi?id=754391) and SP3 should not
>> need the modprobe.conf entry for "Bochs", since the DMI match was added
>> to the module itself. So it sounds as if the kernel package is not
>> up-to-date?
>>
> My guest os configuration is:
>
> linux-b2ij:~ # rpm -qa|grep kernel
> kernel-source-3.0.76-0.11.1
> linux-kernel-headers-2.6.32-1.13.5
> kernel-default-devel-3.0.76-0.11.1
> kernel-default-base-3.0.76-0.11.1
> kernel-default-3.0.76-0.11.1
> kernel-firmware-20110923-0.42.49
[...]
> linux-b2ij:~ # uname -a
> Linux linux-b2ij 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux
> linux-b2ij:~ # cat /etc/SuSE-release
> SUSE Linux Enterprise Server 11 (x86_64)
> VERSION = 11
> PATCHLEVEL = 3
The latest kernel version on SLES 11 SP3 would be ~3.0.101.
3.0.76 is the version originally shipped for SP3.
Regards,
Andreas
P.S. For the record, the mentioned code can be seen here:
http://kernel.suse.com/cgit/kernel/tree/drivers/pci/hotplug/acpiphp_core.c?h=SLE11-SP3
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-05-12 8:54 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <33183CC9F5247A488A2544077AF19020815E2DF1@SZXEMA503-MBS.china.huawei.com>
[not found] ` <535BA2E4.4040202@redhat.com>
[not found] ` <33183CC9F5247A488A2544077AF19020815E2FE4@SZXEMA503-MBS.china.huawei.com>
[not found] ` <20140430000103.GA7429@Inspiron-3521>
2014-05-06 8:04 ` [Qemu-devel] [Crucial bug] Qemu-2.0.0 do not support virtio-net hot plug/unplug exceed two times Gonglei (Arei)
2014-05-06 9:47 ` Markus Armbruster
2014-05-06 12:52 ` Gonglei (Arei)
2014-05-06 13:36 ` Andreas Färber
2014-05-06 13:41 ` Gonglei (Arei)
2014-05-06 13:58 ` Andreas Färber
2014-05-06 14:08 ` Gonglei (Arei)
2014-05-06 15:02 ` Andreas Färber
2014-05-12 7:08 ` Andreas Färber
2014-05-12 8:06 ` Gonglei (Arei)
2014-05-12 8:54 ` Andreas Färber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).