aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/hw/mem/memory-device.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/hw/mem/memory-device.h b/include/hw/mem/memory-device.h
index 9c3398b..ed7cf5b 100644
--- a/include/hw/mem/memory-device.h
+++ b/include/hw/mem/memory-device.h
@@ -60,6 +60,14 @@ typedef struct MemoryDeviceClass {
uint64_t (*get_addr)(const MemoryDeviceState *md);
/*
+ * Set the address of the memory device in guest physical memory.
+ *
+ * Called when plugging the memory device to configure the determined
+ * address in guest physical memory.
+ */
+ void (*set_addr)(MemoryDeviceState *md, uint64_t addr, Error **errp);
+
+ /*
* Return the amount of memory provided by the memory device currently
* usable ("plugged") by the VM.
*