From: Fam Zheng <famz@redhat.com>
To: Lying <15700157322@163.com>
Cc: qemu-devel@nongnu.org, Alex Williamson <alex.williamson@redhat.com>
Subject: Re: [Qemu-devel] device_del fail
Date: Thu, 30 Nov 2017 10:32:26 +0800 [thread overview]
Message-ID: <20171130023226.GC16237@lemon> (raw)
In-Reply-To: <727e90ec.25b0.1600aabe963.Coremail.15700157322@163.com>
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
next prev parent reply other threads:[~2017-11-30 2:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2017-11-30 8:36 ` Lying
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171130023226.GC16237@lemon \
--to=famz@redhat.com \
--cc=15700157322@163.com \
--cc=alex.williamson@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.