From: "Zhai, Edwin" <edwin.zhai@intel.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Xen Developers <xen-devel@lists.xensource.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Keir Fraser <Keir.Fraser@eu.citrix.com>
Subject: Re: issue in unplug qemu PCI devices
Date: Sun, 21 Feb 2010 08:09:38 +0800 [thread overview]
Message-ID: <4B8079C2.7080904@intel.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1002171053100.4291@kaball-desktop>
Stefano,
I have tested the latest ioemu, your 2 fixes really work.
Thanks!
Stefano Stabellini wrote:
> On Wed, 17 Feb 2010, Edwin Zhai wrote:
>
>> Stefano,
>> Thanks for your fix. I'm in leave now and will have a test after back.
>> BTW, do you think we need fix issue 2? You know some OSV will install
>> and load the platform_pci module in guest by default. If end user
>> doesn't config valid PV device in config file, guest would crash after
>> unplugging emulated device. Is it necessary that we check if having a
>> valid backend in xenstore before unplug related emulated device?
>>
>>
>
> You are right, qemu has to honor disable_pf for ioports as well.
>
> ---
>
> diff --git a/hw/pc.c b/hw/pc.c
> index 129e9d9..9375951 100644
> --- a/hw/pc.c
> +++ b/hw/pc.c
> @@ -1047,9 +1047,10 @@ vga_bios_error:
> #endif /* !CONFIG_DM */
> if (pci_enabled) {
> disable_pf = xenstore_parse_disable_pf_config();
> - if (disable_pf != 1)
> + if (disable_pf != 1) {
> pci_xen_platform_init(pci_bus);
> - platform_fixed_ioport_init();
> + platform_fixed_ioport_init();
> + }
> }
>
> for(i = 0; i < MAX_SERIAL_PORTS; i++) {
>
>
--
best rgds,
edwin
next prev parent reply other threads:[~2010-02-21 0:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-12 8:48 issue in unplug qemu PCI devices Zhai, Edwin
2010-02-12 17:14 ` Stefano Stabellini
2010-02-12 21:57 ` Ky Srinivasan
2010-02-15 14:10 ` Ian Jackson
2010-02-15 14:14 ` Stefano Stabellini
2010-02-17 10:04 ` Edwin Zhai
2010-02-17 11:08 ` Stefano Stabellini
2010-02-21 0:09 ` Zhai, Edwin [this message]
2010-02-15 14:07 ` Ian Jackson
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=4B8079C2.7080904@intel.com \
--to=edwin.zhai@intel.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=Keir.Fraser@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.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.