From: "Michael S. Tsirkin" <mst@redhat.com>
To: Tiejun Chen <tiejun.chen@intel.com>
Cc: pbonzini@redhat.com, xen-devel@lists.xensource.com,
qemu-devel@nongnu.org, stefano.stabellini@eu.citrix.com
Subject: Re: [Qemu-devel] [v5][PATCH 4/4] xen:hw:i386:pc_piix: introduce new machine for IGD passthrough
Date: Thu, 14 Aug 2014 18:03:38 +0200 [thread overview]
Message-ID: <20140814160338.GA10653@redhat.com> (raw)
In-Reply-To: <1407836957-29098-5-git-send-email-tiejun.chen@intel.com>
On Tue, Aug 12, 2014 at 05:49:17PM +0800, Tiejun Chen wrote:
> Now we can introduce a new machine, xenigd, specific to IGD
> passthrough. This can avoid involving other common codes.
>
> Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
This broke make check since the new machine was not
blacklisted.
I sent a patch to fix this,
pls make sure make check passes when posting patches.
> ---
> hw/i386/pc_piix.c | 43 +++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 43 insertions(+)
>
> v5:
>
> * Nothing is changed.
>
> v4:
>
> * Rebase
>
> v3:
>
> * Rebase
>
> v2:
>
> * Unify prefix with XEN_IGD_PASSTHROUGH/xen_igd_passthrough like patch #3
>
> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
> index 2bf8046..9d37f18 100644
> --- a/hw/i386/pc_piix.c
> +++ b/hw/i386/pc_piix.c
> @@ -309,6 +309,15 @@ static void pc_init_pci(MachineState *machine)
> TYPE_I440FX_PCI_DEVICE);
> }
>
> +
> +#ifdef CONFIG_XEN
> +static void xen_igd_passthrough_pc_init_pci(MachineState *machine)
> +{
> + pc_init1(machine, 1, 1, TYPE_I440FX_PCI_HOST_BRIDGE,
> + TYPE_XEN_IGD_PASSTHROUGH_I440FX_PCI_DEVICE);
> +}
> +#endif
> +
> static void pc_compat_2_0(MachineState *machine)
> {
> /* This value depends on the actual DSDT and SSDT compiled into
> @@ -457,6 +466,18 @@ static void pc_xen_hvm_init(MachineState *machine)
> pci_create_simple(bus, -1, "xen-platform");
> }
> }
> +
> +static void xen_igd_passthrough_pc_hvm_init(MachineState *machine)
> +{
> + PCIBus *bus;
> +
> + xen_igd_passthrough_pc_init_pci(machine);
> +
> + bus = pci_find_primary_bus();
> + if (bus != NULL) {
> + pci_create_simple(bus, -1, "xen-platform");
> + }
> +}
> #endif
>
> #define PC_I440FX_MACHINE_OPTIONS \
> @@ -906,6 +927,27 @@ static QEMUMachine xenfv_machine = {
> { /* end of list */ }
> },
> };
> +
> +static QEMUMachine xenigd_machine = {
> + PC_COMMON_MACHINE_OPTIONS,
> + .name = "xenigd",
> + .desc = "Xen Fully-virtualized PC specific to IGD",
> + .init = xen_igd_passthrough_pc_hvm_init,
> + .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
>
> static void pc_machine_init(void)
> @@ -929,6 +971,7 @@ static void pc_machine_init(void)
> qemu_register_pc_machine(&isapc_machine);
> #ifdef CONFIG_XEN
> qemu_register_pc_machine(&xenfv_machine);
> + qemu_register_pc_machine(&xenigd_machine);
> #endif
> }
>
> --
> 1.9.1
next prev parent reply other threads:[~2014-08-14 16:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-12 9:49 [Qemu-devel] [v5][PATCH 0/4] xen: introduce new machine for IGD passthrough Tiejun Chen
2014-08-12 9:49 ` [Qemu-devel] [v5][PATCH 1/4] i440fx: make types configurable at run-time Tiejun Chen
2014-08-12 9:49 ` [Qemu-devel] [v5][PATCH 2/4] pc_init1: pass parameters just with types Tiejun Chen
2014-08-12 9:49 ` [Qemu-devel] [v5][PATCH 3/4] xen:hw:pci-host:piix: create host bridge to passthrough Tiejun Chen
2014-08-12 9:49 ` [Qemu-devel] [v5][PATCH 4/4] xen:hw:i386:pc_piix: introduce new machine for IGD passthrough Tiejun Chen
2014-08-14 16:03 ` Michael S. Tsirkin [this message]
2014-08-15 5:46 ` Chen, Tiejun
2014-08-14 0:59 ` [Qemu-devel] [v5][PATCH 0/4] xen: " Chen, Tiejun
2014-08-14 7:09 ` Michael S. Tsirkin
2014-08-14 7:23 ` Chen, Tiejun
2014-11-23 10:10 ` Michael S. Tsirkin
2014-11-24 0:40 ` Chen, Tiejun
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=20140814160338.GA10653@redhat.com \
--to=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tiejun.chen@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).