[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 11/26] pcie: Convert PCIExpressHost to use th
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-devel] [PATCH v3 11/26] pcie: Convert PCIExpressHost to use the QOM. |
Date: |
Mon, 22 Oct 2012 12:55:37 +0200 |
On Fri, Oct 19, 2012 at 04:43:33PM -0400, Jason Baron wrote:
> From: Jason Baron <address@hidden>
>
> Let's use PCIExpressHost with QOM.
>
> Reviewed-by: Paolo Bonzini <address@hidden>
> Acked-by: Andreas Färber <address@hidden>
> Signed-off-by: Jason Baron <address@hidden>
Applied, thanks.
> ---
> hw/pcie_host.c | 14 ++++++++++++++
> hw/pcie_host.h | 4 ++++
> 2 files changed, 18 insertions(+), 0 deletions(-)
>
> diff --git a/hw/pcie_host.c b/hw/pcie_host.c
> index e2fd276..027ba05 100644
> --- a/hw/pcie_host.c
> +++ b/hw/pcie_host.c
> @@ -145,3 +145,17 @@ void pcie_host_mmcfg_update(PCIExpressHost *e,
> pcie_host_mmcfg_map(e, addr, size);
> }
> }
> +
> +static const TypeInfo pcie_host_type_info = {
> + .name = TYPE_PCIE_HOST_BRIDGE,
> + .parent = TYPE_PCI_HOST_BRIDGE,
> + .abstract = true,
> + .instance_size = sizeof(PCIExpressHost),
> +};
> +
> +static void pcie_host_register_types(void)
> +{
> + type_register_static(&pcie_host_type_info);
> +}
> +
> +type_init(pcie_host_register_types)
> diff --git a/hw/pcie_host.h b/hw/pcie_host.h
> index 2faa54e..2494c71 100644
> --- a/hw/pcie_host.h
> +++ b/hw/pcie_host.h
> @@ -24,6 +24,10 @@
> #include "pci_host.h"
> #include "memory.h"
>
> +#define TYPE_PCIE_HOST_BRIDGE "pcie-host-bridge"
> +#define PCIE_HOST_BRIDGE(obj) \
> + OBJECT_CHECK(PCIExpressHost, (obj), TYPE_PCIE_HOST_BRIDGE)
> +
> struct PCIExpressHost {
> PCIHostState pci;
>
> --
> 1.7.1
- Re: [Qemu-devel] [PATCH v3 01/26] blockdev: Introduce a default machine blockdev interface field, QEMUMachine->mach_if, (continued)
- [Qemu-devel] [PATCH v3 09/26] pci: Add class 0xc05 as 'SMBus', Jason Baron, 2012/10/19
- [Qemu-devel] [PATCH v3 07/26] pc/piix_pci: factor out smram/pam logic, Jason Baron, 2012/10/19
- [Qemu-devel] [PATCH v3 10/26] pcie: pass pcie window size to pcie_host_mmcfg_update(), Jason Baron, 2012/10/19
- [Qemu-devel] [PATCH v3 11/26] pcie: Convert PCIExpressHost to use the QOM., Jason Baron, 2012/10/19
- Re: [Qemu-devel] [PATCH v3 11/26] pcie: Convert PCIExpressHost to use the QOM.,
Michael S. Tsirkin <=
- [Qemu-devel] [PATCH v3 12/26] ich9: Add acpi support and definitions, Jason Baron, 2012/10/19
- [Qemu-devel] [PATCH v3 13/26] ich9: Add the lpc chip, Jason Baron, 2012/10/19
- [Qemu-devel] [PATCH v3 18/26] q35: Suppress SMM BIOS initialization under KVM, Jason Baron, 2012/10/19