[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V11 06/15] xen: Add the Xen platform pci device
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH V11 06/15] xen: Add the Xen platform pci device |
Date: |
Wed, 23 Mar 2011 13:08:05 +0100 |
On 01.03.2011, at 19:35, address@hidden wrote:
> From: Steven Smith <address@hidden>
>
> Introduce a new emulated PCI device, specific to fully virtualized Xen
> guests. The device is necessary for PV on HVM drivers to work.
>
> Signed-off-by: Steven Smith <address@hidden>
> Signed-off-by: Anthony PERARD <address@hidden>
> Signed-off-by: Stefano Stabellini <address@hidden>
> ---
> Makefile.target | 2 +
> hw/hw.h | 3 +
> hw/pc_piix.c | 4 +
> hw/pci_ids.h | 2 +
> hw/xen.h | 2 +
> hw/xen_platform.c | 349 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> trace-events | 3 +
> xen-stub.c | 4 +
> 8 files changed, 369 insertions(+), 0 deletions(-)
> create mode 100644 hw/xen_platform.c
>
> diff --git a/Makefile.target b/Makefile.target
> index b08c7f7..c539b1e 100644
> --- a/Makefile.target
> +++ b/Makefile.target
> @@ -217,6 +217,8 @@ endif
> obj-i386-$(CONFIG_XEN) += xen-all.o
> obj-$(CONFIG_NO_XEN) += xen-stub.o
>
> +obj-i386-$(CONFIG_XEN) += xen_platform.o
> +
> # Inter-VM PCI shared memory
> obj-$(CONFIG_KVM) += ivshmem.o
>
> diff --git a/hw/hw.h b/hw/hw.h
> index 5e24329..c285b2e 100644
> --- a/hw/hw.h
> +++ b/hw/hw.h
> @@ -682,6 +682,9 @@ extern const VMStateDescription vmstate_usb_device;
> #define VMSTATE_INT32_LE(_f, _s) \
> VMSTATE_SINGLE(_f, _s, 0, vmstate_info_int32_le, int32_t)
>
> +#define VMSTATE_UINT8_TEST(_f, _s, _t) \
> + VMSTATE_SINGLE_TEST(_f, _s, _t, 0, vmstate_info_uint8, uint8_t)
> +
> #define VMSTATE_UINT16_TEST(_f, _s, _t) \
> VMSTATE_SINGLE_TEST(_f, _s, _t, 0, vmstate_info_uint16, uint16_t)
>
> diff --git a/hw/pc_piix.c b/hw/pc_piix.c
> index 6eff06e..417c456 100644
> --- a/hw/pc_piix.c
> +++ b/hw/pc_piix.c
> @@ -121,6 +121,10 @@ static void pc_init1(ram_addr_t ram_size,
>
> pc_vga_init(pci_enabled? pci_bus: NULL);
>
> + if (xen_enabled()) {
> + pci_xen_platform_init(pci_bus);
It probably makes sense to fold that function in here. That way you wouldn't
need the entry in the stub file.
Alex
- Re: [Qemu-devel] [PATCH V11 02/15] xen: Make Xen build once., (continued)
[Qemu-devel] [PATCH V11 03/15] xen: Support new libxc calls from xen unstable., anthony . perard, 2011/03/01
[Qemu-devel] [PATCH V11 04/15] xen: Add initialisation of Xen, anthony . perard, 2011/03/01
[Qemu-devel] [PATCH V11 01/15] xen: Replace some tab-indents with spaces (clean-up)., anthony . perard, 2011/03/01
[Qemu-devel] [PATCH V11 05/15] xen: Add xenfv machine, anthony . perard, 2011/03/01
[Qemu-devel] [PATCH V11 06/15] xen: Add the Xen platform pci device, anthony . perard, 2011/03/01
- Re: [Qemu-devel] [PATCH V11 06/15] xen: Add the Xen platform pci device,
Alexander Graf <=
[Qemu-devel] [PATCH V11 07/15] piix_pci: Introduces Xen specific call for irq., anthony . perard, 2011/03/01
[Qemu-devel] [PATCH V11 08/15] xen: Introduce Xen Interrupt Controller, anthony . perard, 2011/03/01
[Qemu-devel] [PATCH V11 11/15] Introduce qemu_put_ram_ptr, anthony . perard, 2011/03/01
[Qemu-devel] [PATCH V11 12/15] vl.c: Introduce getter for shutdown_requested and reset_requested., anthony . perard, 2011/03/01
[Qemu-devel] [PATCH V11 15/15] xen: Add Xen hypercall for sleep state in the cmos_s3 callback., anthony . perard, 2011/03/01
[Qemu-devel] [PATCH V11 14/15] xen: Set running state in xenstore., anthony . perard, 2011/03/01
[Qemu-devel] [PATCH V11 09/15] xen: Introduce the Xen mapcache, anthony . perard, 2011/03/01