mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
memory-device: drop get_region_size()
There are no remaining users of get_region_size() except memory_device_get_region_size() itself. We can make memory_device_get_region_size() work directly on get_memory_region() instead and drop get_region_size(). In addition, we can now use memory_device_get_region_size() in pc-dimm code to implement get_plugged_size()" Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20181005092024.14344-12-david@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
3a0a2b0a2b
commit
af39002747
3 changed files with 10 additions and 20 deletions
|
@ -71,7 +71,6 @@ typedef struct MemoryDeviceClass {
|
|||
* most devices, this corresponds to the size of the memory region.
|
||||
*/
|
||||
uint64_t (*get_plugged_size)(const MemoryDeviceState *md, Error **errp);
|
||||
uint64_t (*get_region_size)(const MemoryDeviceState *md, Error **errp);
|
||||
|
||||
/*
|
||||
* Return the memory region of the memory device.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue