From: Andrea Arcangeli aarca...@redhat.com
This will allow proper alignment so NPT/EPT can take advantage of
linux host backing the guest memory with hugepages. It also ensures
that when KVM isn't used the first 2M of guest physical memory are
backed by a large TLB. To complete it, it will also
Andrea Arcangeli wrote:
+ * take advantage of hugepages with NPT/EPP or to
Spelling: NPT/EPT?
-- Jamie
+#if defined(__linux__) defined(__x86_64__)
+#define MAX_TRANSPARENT_HUGEPAGE_SIZE (2*1024*1024)
+ if (size = MAX_TRANSPARENT_HUGEPAGE_SIZE)
I'd prefer something like:
#if defined(__linux__) defined(__x86_64__)
/* [...Allow the host to use huge pages easily...]. */
#define