]> git.proxmox.com Git - mirror_qemu.git/blobdiff - xen-hvm.c
target-i386: add Skylake-Client cpu model
[mirror_qemu.git] / xen-hvm.c
index 01ee25de21b72640852b43deb52b004066db3dc7..a0da8d7d917b2c31f5ae8203a601c10cebca6ff2 100644 (file)
--- a/xen-hvm.c
+++ b/xen-hvm.c
@@ -567,7 +567,7 @@ static void xen_sync_dirty_bitmap(XenIOState *state,
 {
     hwaddr npages = size >> TARGET_PAGE_BITS;
     const int width = sizeof(unsigned long) * 8;
-    unsigned long bitmap[(npages + width - 1) / width];
+    unsigned long bitmap[DIV_ROUND_UP(npages, width)];
     int rc, i, j;
     const XenPhysmap *physmap = NULL;