]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
conf: ABI: Hugepage backing definition is not guest ABI
authorPeter Krempa <pkrempa@redhat.com>
Wed, 11 Feb 2015 14:15:13 +0000 (15:15 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 20 Feb 2015 17:19:59 +0000 (18:19 +0100)
The backing of the vm's memory isn't influencing the guest ABI thus
shouldn't be checked.

src/conf/domain_conf.c

index d947df7b6d1a0092bf08d9ae09b2350fbbc03f3d..ccf60213f4d49b2f921043718d07ba429b3a7179 100644 (file)
@@ -15969,30 +15969,6 @@ virDomainDefCheckABIStability(virDomainDefPtr src,
                        dst->mem.cur_balloon, src->mem.cur_balloon);
         goto error;
     }
-    if (src->mem.nhugepages != dst->mem.nhugepages) {
-        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-                       _("Target domain huge pages count %zu does not match source %zu"),
-                       dst->mem.nhugepages, src->mem.nhugepages);
-        goto error;
-    }
-    for (i = 0; i < src->mem.nhugepages; i++) {
-        virDomainHugePagePtr src_huge = &src->mem.hugepages[i];
-        virDomainHugePagePtr dst_huge = &dst->mem.hugepages[i];
-
-        if (src_huge->size != dst_huge->size) {
-            virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-                           _("Target domain huge page size %llu "
-                             "does not match source %llu"),
-                           dst_huge->size, src_huge->size);
-            goto error;
-        }
-
-        if (!virBitmapEqual(src_huge->nodemask, dst_huge->nodemask)) {
-            virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                           _("Target huge page nodemask does not match source"));
-            goto error;
-        }
-    }
 
     if (src->vcpus != dst->vcpus) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,