[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Xen-devel] [PATCH 1/2] Allow use of pc machine type (a
From: |
Stefano Stabellini |
Subject: |
Re: [Qemu-devel] [Xen-devel] [PATCH 1/2] Allow use of pc machine type (accel=xen) for Xen HVM domains. |
Date: |
Thu, 20 Jun 2013 15:44:01 +0100 |
User-agent: |
Alpine 2.02 (DEB 1266 2009-07-14) |
On Tue, 18 Jun 2013, Paul Durrant wrote:
> Xen HVM domains normally spawn QEMU with a dedicated xenfv machine type. The
> initialization code for this machine type can easily be pulled into the
> generic pc initialization code and guarded with a test for whether the xen
> accelerator options is specified, which is more consistent with the way
> other accelerators are used.
>
> Signed-off-by: Paul Durrant <address@hidden>
Acked-by: Stefano Stabellini <address@hidden>
> hw/i386/pc_piix.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
> index d618570..f96e0c2 100644
> --- a/hw/i386/pc_piix.c
> +++ b/hw/i386/pc_piix.c
> @@ -91,6 +91,11 @@ static void pc_init1(MemoryRegion *system_memory,
> DeviceState *icc_bridge;
> FWCfgState *fw_cfg = NULL;
>
> + if (xen_enabled() && xen_hvm_init() != 0) {
> + fprintf(stderr, "xen hardware virtual machine initialisation
> failed\n");
> + exit(1);
> + }
> +
> icc_bridge = qdev_create(NULL, TYPE_ICC_BRIDGE);
> object_property_add_child(qdev_get_machine(), "icc-bridge",
> OBJECT(icc_bridge), NULL);
> @@ -320,9 +325,6 @@ static void pc_init_isa(QEMUMachineInitArgs *args)
> #ifdef CONFIG_XEN
> static void pc_xen_hvm_init(QEMUMachineInitArgs *args)
> {
> - if (xen_hvm_init() != 0) {
> - hw_error("xen hardware virtual machine initialisation failed");
> - }
> pc_init_pci(args);
> }
> #endif
> --
> 1.7.10.4
>
>
> _______________________________________________
> Xen-devel mailing list
> address@hidden
> http://lists.xen.org/xen-devel
>
- [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4), Paul Durrant, 2013/06/18
- [Qemu-devel] [PATCH 2/2] Move hardcoded initialization of xen-platform device., Paul Durrant, 2013/06/18
- [Qemu-devel] [PATCH 1/2] Allow use of pc machine type (accel=xen) for Xen HVM domains., Paul Durrant, 2013/06/18
- Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4), Paolo Bonzini, 2013/06/18
- Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4), Laszlo Ersek, 2013/06/18
- Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4), Michael S. Tsirkin, 2013/06/18
- Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4), Paul Durrant, 2013/06/18
- Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4), Michael S. Tsirkin, 2013/06/18
- Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4), Paul Durrant, 2013/06/18
- Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4), Laszlo Ersek, 2013/06/18
- Re: [Qemu-devel] [PATCH 0/2] Remove hardcoded xen-platform device initialization (v4), Paul Durrant, 2013/06/18