qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [Bug 544367] Re: pci_del fails to remove PCI virtio storage


From: Marcos Oviedo
Subject: [Qemu-devel] [Bug 544367] Re: pci_del fails to remove PCI virtio storage device
Date: Wed, 09 Jun 2010 06:10:22 -0000

This bug is still present on latest git. It seems, please double check
this, that the commit you tested is related to a different issue.

The steps to reproduce the bug are attached on the case. Usually, when
there is support for ACPI operations on the guest OS, the pci_del
command triggers a general purpose event indicating to the OS ACPI event
handlers that the device is going to be removed. The handlers are then
in charge of trigger an eject operation (EJx) on the hw device, which
causes the removal of the device. The EJx operation is handled on qemu
by pciej_write() and ends by calling qdev_free(), which removes the
device in question from the system.

When there is no support for ACPI (either because the ACPI related
drivers are not loaded on the guest OS or the VM is stopped using -s
-S), there is no way to remove a previously added PCI device.

I've just send a patch that adds the -f (force) option to pci_del in
order to be able to remove a PCI device when the ACPI support is not
present.

Regards,

Marcos

-- 
pci_del fails to remove PCI virtio storage device
https://bugs.launchpad.net/bugs/544367
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Fix Released

Bug description:
In qemu monitor, command pci_del silently fails to remove a virtio storage 
device previously added with pci_add.
It doesn't matter whether the guest actually makes use of the virtio device for 
this failure to happen.

= QEMU command line =
/usr/local/bin/qemu-system-x86_64 -S -snapshot -enable-kvm -smp 1 -cdrom 
/pub/gentoo/releases/x86/10.1/livedvd-x86-amd64-32ul-10.1.iso -boot order=d -m 
512 -usb -name gentoo_livedvd -ctrl-grab -vga cirrus -chardev pty,id=serial0 
-device isa-serial,chardev=serial0 -chardev 
socket,id=monitor,path=/tmp/gentoo_livedvd.monitor,server,nowait -mon 
chardev=monitor,mode=readline

= Host information =
Distribution: Gentoo Linux
Portage 2.1.7.16 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 
2.6.31-gentoo-r6 i686)
System uname: address@hidden

= Guest information =
Gentoo Linux 10.1 x86 LiveDVD





reply via email to

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