* [Qemu-devel] device_del fail @ 2017-11-29 5:43 Lying 2017-11-29 6:29 ` Fam Zheng 0 siblings, 1 reply; 4+ messages in thread From: Lying @ 2017-11-29 5:43 UTC (permalink / raw) To: qemu-devel Hello everybody, I encounter a error on my vm guest I remove my device on my guest is failed, following is detail message. I didn't add my audio device before running my guest, So i add audio with "device_add" after running Then i can use it, so i remove it with "device_del", but when i do it again, i can't use my audio device and cannot remove it. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] device_del fail 2017-11-29 5:43 [Qemu-devel] device_del fail Lying @ 2017-11-29 6:29 ` Fam Zheng [not found] ` <727e90ec.25b0.1600aabe963.Coremail.15700157322@163.com> 0 siblings, 1 reply; 4+ messages in thread From: Fam Zheng @ 2017-11-29 6:29 UTC (permalink / raw) To: Lying; +Cc: qemu-devel On Wed, 11/29 13:43, Lying wrote: > Hello everybody, I encounter a error on my vm guest > I remove my device on my guest is failed, following is detail message. > I didn't add my audio device before running my guest, So i add audio with "device_add" after running > Then i can use it, so i remove it with "device_del", but when i do it again, i > can't use my audio device and cannot remove it. I haven't tried unplugging an audio device myself but in general PCI hot unplug needs guest cooperation so some infomation about guest is also helpful. Which guest OS is this? What are the exact commands that you used and what are the messages from host/guest when you device_del? Fam ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <727e90ec.25b0.1600aabe963.Coremail.15700157322@163.com>]
* Re: [Qemu-devel] device_del fail [not found] ` <727e90ec.25b0.1600aabe963.Coremail.15700157322@163.com> @ 2017-11-30 2:32 ` Fam Zheng 2017-11-30 8:36 ` Lying 0 siblings, 1 reply; 4+ messages in thread From: Fam Zheng @ 2017-11-30 2:32 UTC (permalink / raw) To: Lying; +Cc: qemu-devel, Alex Williamson Let's keep qemu-devel@nongnu.org on the list so other people can chime in. On Thu, 11/30 10:05, Lying wrote: > At 2017-11-29 14:29:17, "Fam Zheng" <famz@redhat.com> wrote: > >On Wed, 11/29 13:43, Lying wrote: > >> Hello everybody, I encounter a error on my vm guest > >> I remove my device on my guest is failed, following is detail message. > >> I didn't add my audio device before running my guest, So i add audio with "device_add" after running > >> Then i can use it, so i remove it with "device_del", but when i do it again, i > >> can't use my audio device and cannot remove it. > > > > > >I haven't tried unplugging an audio device myself but in general PCI hot unplug > >needs guest cooperation so some infomation about guest is also helpful. Which > >guest OS is this? > > > >What are the exact commands that you used and what are the messages from > >host/guest when you device_del? > > > > >Fam > > > hello, thanks for your reply, and i'm sorry that i not notice at yesterday . > following is my information: > guest : window-7 > host : Ubuntu-16.04 > qemu : 2.11.0-rc0 > libvirt : 3.9 > seabios : 1.10.74 (from qemu) > exact commands: > add:"device_add driver=vfio-pci,host=02:00.0,x-vga=on,multifunction=yes,id=gpu1" > remove:"device_del gpu1" > and not messages when i running device_del. But i can see it still exist while running commands "info pci" Probably the guest didn't respond to the hot-unplug event. In your original question you said it is an audio device but your command suggests it is a GPU device. I'm not sure Windows driver can handle this. Have you tried different guests, such as Linux? Cc Alex who may know more. Fam ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] device_del fail 2017-11-30 2:32 ` Fam Zheng @ 2017-11-30 8:36 ` Lying 0 siblings, 0 replies; 4+ messages in thread From: Lying @ 2017-11-30 8:36 UTC (permalink / raw) To: Fam Zheng; +Cc: qemu-devel, Alex Williamson hello, i try again on arch Linux , after i add gpu, display is not light,following message from "info pci": Bus 0, device 5, function 0: VGA controller: PCI device 10de:1401 IRQ 11. BAR0: 32 bit memory at 0xffffffffffffffff [0x00fffffe]. BAR1: 64 bit prefetchable memory at 0xffffffffffffffff [0x0ffffffe]. BAR3: 64 bit prefetchable memory at 0xffffffffffffffff [0x01fffffe]. BAR5: I/O at 0xffffffffffffffff [0x007e]. BAR6: 32 bit memory at 0xffffffffffffffff [0x0001fffe]. id "gpu1" Bus 0, device 6, function 0: Audio controller: PCI device 10de:0fba IRQ 10. BAR0: 32 bit memory at 0x3e820000 [0x3e823fff]. id "gpu2" Then i connect that guest with ssh: Last login: Thu Nov 30 22:29:03 2017(it's normal) At 2017-11-30 10:32:26, "Fam Zheng" <famz@redhat.com> wrote: >Let's keep qemu-devel@nongnu.org on the list so other people can chime in. > >On Thu, 11/30 10:05, Lying wrote: > >> At 2017-11-29 14:29:17, "Fam Zheng" <famz@redhat.com> wrote: >> >On Wed, 11/29 13:43, Lying wrote: >> >> Hello everybody, I encounter a error on my vm guest >> >> I remove my device on my guest is failed, following is detail message. >> >> I didn't add my audio device before running my guest, So i add audio with "device_add" after running >> >> Then i can use it, so i remove it with "device_del", but when i do it again, i >> >> can't use my audio device and cannot remove it. >> > >> > >> >I haven't tried unplugging an audio device myself but in general PCI hot unplug >> >needs guest cooperation so some infomation about guest is also helpful. Which >> >guest OS is this? >> > >> >What are the exact commands that you used and what are the messages from >> >host/guest when you device_del? >> > >> >> >Fam >> >> >> hello, thanks for your reply, and i'm sorry that i not notice at yesterday . >> following is my information: >> guest : window-7 >> host : Ubuntu-16.04 >> qemu : 2.11.0-rc0 >> libvirt : 3.9 >> seabios : 1.10.74 (from qemu) >> exact commands: >> add:"device_add driver=vfio-pci,host=02:00.0,x-vga=on,multifunction=yes,id=gpu1" >> remove:"device_del gpu1" >> and not messages when i running device_del. But i can see it still exist while running commands "info pci" > >Probably the guest didn't respond to the hot-unplug event. In your original >question you said it is an audio device but your command suggests it is a GPU >device. I'm not sure Windows driver can handle this. Have you tried different >guests, such as Linux? > >Cc Alex who may know more. > >Fam ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-30 8:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-29 5:43 [Qemu-devel] device_del fail Lying
2017-11-29 6:29 ` Fam Zheng
[not found] ` <727e90ec.25b0.1600aabe963.Coremail.15700157322@163.com>
2017-11-30 2:32 ` Fam Zheng
2017-11-30 8:36 ` Lying
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.