aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio/dataplane/hostmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/virtio/dataplane/hostmem.c')
-rw-r--r--hw/virtio/dataplane/hostmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/dataplane/hostmem.c b/hw/virtio/dataplane/hostmem.c
index 37292ff..7e46723 100644
--- a/hw/virtio/dataplane/hostmem.c
+++ b/hw/virtio/dataplane/hostmem.c
@@ -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++;