diff options
author | Avi Kivity <avi@redhat.com> | 2012-01-05 12:30:31 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-01-08 12:59:16 +0200 |
commit | 6148b23d69444a300710db0c53f6c53b7f3c8067 (patch) | |
tree | e9fe7a75a785c1dd478b6276a9234e7ceb549402 /target-ppc/kvm.c | |
parent | e7f929028cc11a439ee7bbdf40724d87016361fa (diff) |
kvm: fix build error in ppc kvm due to memory_region_init_ram_ptr() change
Commit c5705a772 ("vmstate, memory: decouple vmstate from memory API") changed
the signature of memory_region_init_ram_ptr() but did not update a caller in
the ppc kvm module. Fix.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'target-ppc/kvm.c')
-rw-r--r-- | target-ppc/kvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 9b2e605b67..ce8ac5b4de 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -822,7 +822,8 @@ off_t kvmppc_alloc_rma(const char *name, MemoryRegion *sysmem) }; rma_region = g_new(MemoryRegion, 1); - memory_region_init_ram_ptr(rma_region, NULL, name, size, rma); + memory_region_init_ram_ptr(rma_region, name, size, rma); + vmstate_register_ram_global(rma_region); memory_region_add_subregion(sysmem, 0, rma_region); return size; |