qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 08/27] dimm: implement dimm device abstraction


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 08/27] dimm: implement dimm device abstraction
Date: Mon, 25 Nov 2013 13:57:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9

Il 21/11/2013 03:38, Igor Mammedov ha scritto:
> +static void dimm_initfn(Object *obj)
> +{
> +    object_property_add(obj, "memdev", "string", dimm_get_memdev,
> +                        dimm_set_memdev, NULL, NULL, NULL);

Perhaps, instead of relying on memory_region_owner, you could have
separate pointers for the MemoryBackend* and MemoryRegion*.  Then this
property could be a link<MemoryBackend> type (it looks like a link, and
quacks like a link).

Paolo

> +    object_property_add(obj, "size", "int", dimm_get_size,
> +                        NULL, NULL, NULL, NULL);
> +}
> +




reply via email to

[Prev in Thread] Current Thread [Next in Thread]