[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [HVM] Save/restore: qemu-dm should calculate bitmap size from maximum gpfn
# HG changeset patch # User Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx> # Date 1175793141 -3600 # Node ID 3b4de5f415c9fec780d42c36c2b8a20cd01971d5 # Parent 83ce6f4da2120231698a9db80b499ed3f6240a33 [HVM] Save/restore: qemu-dm should calculate bitmap size from maximum gpfn like xc_save does. Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx> --- tools/ioemu/xenstore.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff -r 83ce6f4da212 -r 3b4de5f415c9 tools/ioemu/xenstore.c --- a/tools/ioemu/xenstore.c Thu Apr 05 15:47:03 2007 +0100 +++ b/tools/ioemu/xenstore.c Thu Apr 05 18:12:21 2007 +0100 @@ -248,12 +248,8 @@ void xenstore_process_logdirty_event(voi key = (key_t) strtoull(key_terminated, NULL, 16); /* Figure out how bit the log-dirty bitmaps are */ - logdirty_bitmap_size = ((phys_ram_size + 0x20 - - (vga_ram_size + bios_size)) - >> (TARGET_PAGE_BITS)); /* nr of bits in map*/ - if (logdirty_bitmap_size > HVM_BELOW_4G_MMIO_START >> TARGET_PAGE_BITS) - logdirty_bitmap_size += - HVM_BELOW_4G_MMIO_LENGTH >> TARGET_PAGE_BITS; /* still bits */ + logdirty_bitmap_size = xc_memory_op(xc_handle, + XENMEM_maximum_gpfn, &domid) + 1; logdirty_bitmap_size = ((logdirty_bitmap_size + HOST_LONG_BITS - 1) / HOST_LONG_BITS); /* longs */ logdirty_bitmap_size *= sizeof (unsigned long); /* bytes */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |