summary refs log tree commit diff stats
path: root/include/hw/boards.h
diff options
context:
space:
mode:
authorDorjoy Chowdhury <dorjoychy111@gmail.com>2024-10-09 03:17:25 +0600
committerPaolo Bonzini <pbonzini@redhat.com>2024-10-31 18:28:33 +0100
commit1a9867498dddcdfc5021f6ef453d75c347455e32 (patch)
tree58654c9e5d80b22ae5dfd29f8497a9c4f318a8dd /include/hw/boards.h
parent63d2a5c78791e5df1d3173e553a09838fb4f7c9c (diff)
downloadfocaccia-qemu-1a9867498dddcdfc5021f6ef453d75c347455e32.tar.gz
focaccia-qemu-1a9867498dddcdfc5021f6ef453d75c347455e32.zip
core/machine: Make create_default_memdev machine a virtual method
This is in preparation for the next commit where the nitro-enclave
machine type will need to instead use a memfd backend, for the built-in
vhost-user-vsock device to work.

Signed-off-by: Dorjoy Chowdhury <dorjoychy111@gmail.com>
Reviewed-by: Alexander Graf <graf@amazon.com>
Link: https://lore.kernel.org/r/20241008211727.49088-5-dorjoychy111@gmail.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/boards.h')
-rw-r--r--include/hw/boards.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h
index 5966069baa..91f2edd392 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -314,6 +314,8 @@ struct MachineClass {
     int64_t (*get_default_cpu_node_id)(const MachineState *ms, int idx);
     ram_addr_t (*fixup_ram_size)(ram_addr_t size);
     uint64_t smbios_memory_device_size;
+    bool (*create_default_memdev)(MachineState *ms, const char *path,
+                                  Error **errp);
 };
 
 /**