[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/6] convert pci-host to QOM
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 3/6] convert pci-host to QOM |
Date: |
Mon, 26 Mar 2012 08:32:23 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Mar 26, 2012 at 10:06:45AM +0800, Wanpeng Li wrote:
> diff --git a/hw/pci_host.c b/hw/pci_host.c
> index 44c6c20..44d7e55 100644
> --- a/hw/pci_host.c
> +++ b/hw/pci_host.c
> @@ -162,4 +162,30 @@ const MemoryRegionOps pci_host_data_be_ops = {
> .endianness = DEVICE_BIG_ENDIAN,
> };
>
> +void pci_host_set_mmio(PCIHostState *s, MemoryRegion *value)
> +{
> + object_property_set_link(OBJECT(s), OBJECT(value), "mmio", NULL);
> +}
> +
> +static void pci_host_initfn(Object *obj)
> +{
> + PCIHostState *s = PCI_HOST(obj);
> +
> + object_property_add_link(obj, "mmio", TYPE_MEMORY_REGION,
> + (Object **)&s->address_space,
> NULL);
This patch has tabs instead of 4-space indent.
- [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM, Wanpeng Li, 2012/03/25
- [Qemu-devel] [PATCH 2/6] convert MemoryRegion to QOM, Wanpeng Li, 2012/03/25
- [Qemu-devel] [PATCH 4/6] prepare to create HPET, RTC and i8254 through composition, Wanpeng Li, 2012/03/25
- [Qemu-devel] [PATCH 6/6] make some functions static, Wanpeng Li, 2012/03/25
- [Qemu-devel] [PATCH 3/6] convert pci-host to QOM, Wanpeng Li, 2012/03/25
- [Qemu-devel] [PATCH 5/6] merge pc_piix.c to pc.c, Wanpeng Li, 2012/03/25
- [Qemu-devel] [PATCH 1/6] eliminate piix_pci.c and module i440fx and piix3, Wanpeng Li, 2012/03/25
- Re: [Qemu-devel] [PATCH 0/6] refactor PC machine, i440fx and piix3 to take advantage of QOM, Jan Kiszka, 2012/03/26