]> git.proxmox.com Git - mirror_qemu.git/blobdiff - memory.c
apic_common: improve readability of apic_reset_common
[mirror_qemu.git] / memory.c
index a403c86b22c4def1680b1dd090ac1516db631280..0f6cb812db583b0ffdaf489ad904ef4bad7d5be6 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -1523,6 +1523,13 @@ void *memory_region_get_ram_ptr(MemoryRegion *mr)
     return qemu_get_ram_ptr(mr->ram_addr & TARGET_PAGE_MASK);
 }
 
+void memory_region_ram_resize(MemoryRegion *mr, ram_addr_t newsize, Error **errp)
+{
+    assert(mr->terminates);
+
+    qemu_ram_resize(mr->ram_addr, newsize, errp);
+}
+
 static void memory_region_update_coalesced_range_as(MemoryRegion *mr, AddressSpace *as)
 {
     FlatView *view;