]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/virtio/dataplane/hostmem.c
memory: make section size a 128-bit integer
[mirror_qemu.git] / hw / virtio / dataplane / hostmem.c
index 37292ffd00ec83b24640a3a7c17536370844b5f2..7e46723eb1a003ecc45fb37a77d8e44b1c82fc1b 100644 (file)
@@ -90,7 +90,7 @@ static void hostmem_append_new_region(HostMem *hostmem,
     hostmem->new_regions[num] = (HostMemRegion){
         .host_addr = ram_ptr + section->offset_within_region,
         .guest_addr = section->offset_within_address_space,
-        .size = section->size,
+        .size = int128_get64(section->size),
         .readonly = section->readonly,
     };
     hostmem->num_new_regions++;