From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
"Wu, Feng" <feng.wu@intel.com>
Cc: "mst@redhat.com" <mst@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"aliguori@amazon.com" <aliguori@amazon.com>,
"Chen, Tiejun" <tiejun.chen@intel.com>,
"anthony.perard@citrix.com" <anthony.perard@citrix.com>,
Igor Mammedov <imammedo@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] pc: piix4_pm: init legacy PCI hotplug when running on Xen
Date: Tue, 04 Nov 2014 15:07:49 +0100 [thread overview]
Message-ID: <5458DDB5.5030807@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1411041023540.22875@kaball.uk.xensource.com>
On 04/11/2014 11:36, Stefano Stabellini wrote:
> Feng, thanks for the email.
>
> I was assuming that one of the other maintainers would take care of the
> patch, but I am happy to submit a pull request for it too.
>
> Paolo, Michael?
I think this patch is not okay, because Xen does use fw_cfg when you
have -kernel. So I think you should really use "if (xen_enabled())".
Paolo
>>> diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
>>> index 227ea30..12542c3 100644
>>> --- a/hw/acpi/piix4.c
>>> +++ b/hw/acpi/piix4.c
>>> @@ -501,6 +501,9 @@ I2CBus *piix4_pm_init(PCIBus *bus, int devfn,
>>> uint32_t smb_io_base,
>>> s->irq = sci_irq;
>>> s->smi_irq = smi_irq;
>>> s->kvm_enabled = kvm_enabled;
>>> + if (!fw_cfg) {
>>> + s->use_acpi_pci_hotplug = false;
>>> + }
>>>
>>> qdev_init_nofail(dev);
>>>
>>> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
>>> index a13e8d6..067ff0c 100644
>>> --- a/hw/i386/pc_piix.c
>>> +++ b/hw/i386/pc_piix.c
>>> @@ -840,17 +840,6 @@ static QEMUMachine xenfv_machine = {
>>> .max_cpus = HVM_MAX_VCPUS,
>>> .default_machine_opts = "accel=xen",
>>> .hot_add_cpu = pc_hot_add_cpu,
>>> - .compat_props = (GlobalProperty[]) {
>>> - /* xenfv has no fwcfg and so does not load acpi from QEMU.
>>> - * as such new acpi features don't work.
>>> - */
>>> - {
>>> - .driver = "PIIX4_PM",
>>> - .property = "acpi-pci-hotplug-with-bridge-support",
>>> - .value = "off",
>>> - },
>>> - { /* end of list */ }
>>> - },
>>> };
>>> #endif
>>>
>>> --
>>> 1.9.0
>>>
>>
next prev parent reply other threads:[~2014-11-04 14:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 12:03 [Qemu-devel] [PATCH] pc: piix4_pm: init legacy PCI hotplug when running on Xen Igor Mammedov
2014-05-23 14:28 ` Stefano Stabellini
2014-11-04 4:48 ` Wu, Feng
2014-11-04 10:36 ` Stefano Stabellini
2014-11-04 14:07 ` Paolo Bonzini [this message]
2014-11-04 15:24 ` Stefano Stabellini
2014-11-10 4:01 ` Zhang, Yang Z
2014-11-10 11:42 ` Stefano Stabellini
2014-11-11 3:32 ` Zhang, Yang Z
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=5458DDB5.5030807@redhat.com \
--to=pbonzini@redhat.com \
--cc=aliguori@amazon.com \
--cc=anthony.perard@citrix.com \
--cc=feng.wu@intel.com \
--cc=imammedo@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tiejun.chen@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.