From: Gerd Hoffmann <kraxel@redhat.com>
To: "Han, Weidong" <weidong.han@intel.com>
Cc: "'Avi Kivity'" <avi@redhat.com>,
"'Paul Brook'" <paul@codesourcery.com>,
"'kvm@vger.kernel.org'" <kvm@vger.kernel.org>
Subject: Re: [PATCH RFC] qemu: fix hot remove assigned device
Date: Wed, 10 Jun 2009 10:49:27 +0200 [thread overview]
Message-ID: <4A2F7397.1010909@redhat.com> (raw)
In-Reply-To: <715D42877B251141A38726ABF5CABF2C054596AA31@pdsmsx503.ccr.corp.intel.com>
On 06/10/09 10:31, Han, Weidong wrote:
> Avi Kivity wrote:
>> Can you check pci_dev->qdev instead of assigned? A little less
>> ugly.
>
> I tried to find an easy and clean way to check it, but I found the
> members of struct PCIDevice and DeviceState were not suitable for
> this checking, and qdev is not pointer in struct PCIDevice.
Well, certain DeviceState pointers (type for example) are set only in
case the device was created using the qdev api. I think you certainly
should get away without adding a new parameter to pci_unregister_device.
Also I've just sent a patch to the qemu-devel fixing the qdev register
API for pci devices, allowing to register config space callbacks. Once
this is merged you can switch pci passthrough to the new qdev API.
cheers,
Gerd
next prev parent reply other threads:[~2009-06-10 8:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-08 17:17 [PATCH RFC] qemu: fix hot remove assigned device Weidong Han
2009-06-08 14:38 ` Paul Brook
2009-06-09 2:45 ` Han, Weidong
2009-06-09 14:51 ` Paul Brook
2009-06-09 15:37 ` Gerd Hoffmann
2009-06-10 7:45 ` Han, Weidong
2009-06-10 8:06 ` Avi Kivity
2009-06-10 8:31 ` Han, Weidong
2009-06-10 8:42 ` Avi Kivity
2009-06-10 8:49 ` Gerd Hoffmann [this message]
2009-06-10 8:55 ` Han, Weidong
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=4A2F7397.1010909@redhat.com \
--to=kraxel@redhat.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=paul@codesourcery.com \
--cc=weidong.han@intel.com \
/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.