[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 06/16] dimm: implement dimm device abstraction
From: |
Hu Tao |
Subject: |
Re: [Qemu-devel] [PATCH 06/16] dimm: implement dimm device abstraction |
Date: |
Thu, 25 Jul 2013 14:52:48 +0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Jul 23, 2013 at 06:23:02PM +0200, Igor Mammedov wrote:
> From: Vasilis Liaskovitis <address@hidden>
<...>
> +
> +/**
> + * DimmBus:
DimmDevice
> + * @start: starting physical address, where @DimmDevice is mapped.
> + * @size: amount of memory mapped at @start.
> + * @node: numa node to which @DimmDevice is attached.
> + * @slot: slot number into which @DimmDevice is plugged in.
> + */
> +typedef struct DimmDevice {
> + DeviceState qdev;
> + ram_addr_t start;
> + ram_addr_t size;
> + uint32_t node;
> + int32_t slot;
> + MemoryRegion mr;
> +} DimmDevice;
> +
> +typedef struct DimmDeviceClass {
> + DeviceClass parent_class;
> +} DimmDeviceClass;
> +
> +#define TYPE_DIMM_BUS "dimmbus"
> +#define DIMM_BUS(obj) OBJECT_CHECK(DimmBus, (obj), TYPE_DIMM_BUS)
> +#define DIMM_BUS_CLASS(klass) \
> + OBJECT_CLASS_CHECK(DimmBusClass, (klass), TYPE_DIMM_BUS)
> +#define DIMM_BUS_GET_CLASS(obj) \
> + OBJECT_GET_CLASS(DimmBusClass, (obj), TYPE_DIMM_BUS)
> +
> +/**
> + * DimmBus:
> + */
> +typedef struct DimmBus {
> + BusState qbus;
> +} DimmBus;
> +
> +#endif
> --
> 1.7.1
- [Qemu-devel] [PATCH 03/16] vl: convert -m to qemu_opts_parse(), (continued)
[Qemu-devel] [PATCH 04/16] qapi: make visit_type_size fallback to type_int, Igor Mammedov, 2013/07/23
[Qemu-devel] [PATCH 05/16] qdev: Add SIZE type to qdev properties, Igor Mammedov, 2013/07/23
[Qemu-devel] [PATCH 06/16] dimm: implement dimm device abstraction, Igor Mammedov, 2013/07/23
- Re: [Qemu-devel] [PATCH 06/16] dimm: implement dimm device abstraction,
Hu Tao <=
[Qemu-devel] [PATCH 07/16] dimm: map DimmDevice into DimBus provided address space, Igor Mammedov, 2013/07/23
[Qemu-devel] [PATCH 08/16] pc: piix: make hotplug memory gap in high memory, Igor Mammedov, 2013/07/23
[Qemu-devel] [PATCH 09/16] pc: i440fx: add DimmBus to chipset and map it into hotplug memory region, Igor Mammedov, 2013/07/23
[Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation, Igor Mammedov, 2013/07/23
- Re: [Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation, Paolo Bonzini, 2013/07/23
- Re: [Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation, Igor Mammedov, 2013/07/24
- Re: [Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation, Paolo Bonzini, 2013/07/24
- Re: [Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation, Igor Mammedov, 2013/07/24
- Re: [Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation, Paolo Bonzini, 2013/07/24
- Re: [Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation, Igor Mammedov, 2013/07/26