[IA64] xc restore: fix domain restore.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Thu, 2 Oct 2008 08:27:57 +0000 (17:27 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Thu, 2 Oct 2008 08:27:57 +0000 (17:27 +0900)
Fix domain restore of version one format.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
tools/libxc/ia64/xc_ia64_linux_restore.c

index 4a18146c7b0cf15a1a85c4a4894b62e07f28ce9f..290c8e726f6fa1dfb4b2fadfe1c01aef6db98e82 100644 (file)
@@ -636,7 +636,7 @@ xc_domain_restore(int xc_handle, int io_fd, uint32_t dom,
         memset(buffer, 0, sizeof(buffer));
         memmap_info = (xen_ia64_memmap_info_t *)buffer;
         memdesc = (efi_memory_desc_t*)&memmap_info->memdesc[0];
-        memmap_info->efi_memmap_size = sizeof(*memmap_info) + sizeof(*memdesc);
+        memmap_info->efi_memmap_size = sizeof(*memdesc);
         memmap_info->efi_memdesc_size = sizeof(*memdesc);
         memmap_info->efi_memdesc_version = EFI_MEMORY_DESCRIPTOR_VERSION;