From: Marc-André Lureau <[email protected]>

memfd is able to allocate hugepage anonymous memory.

Signed-off-by: Marc-André Lureau <[email protected]>
---
 src/conf/domain_conf.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 86199623cc..696cf6ef18 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -6186,13 +6186,6 @@ virDomainDefMemtuneValidate(const virDomainDef *def)
         return -1;
     }
 
-    if (mem->source == VIR_DOMAIN_MEMORY_SOURCE_ANONYMOUS) {
-        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                       _("hugepages are not allowed with anonymous "
-                         "memory source"));
-        return -1;
-    }
-
     for (i = 0; i < mem->nhugepages; i++) {
         size_t j;
         ssize_t nextBit;
-- 
2.19.0.rc1

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to