diff options
author | Andrew Jones <drjones@redhat.com> | 2015-11-09 19:23:42 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-12-17 15:24:34 +0100 |
commit | bc92e4e97ed62efa61ba983f57dfe33f10fe1d88 (patch) | |
tree | 37d90138d3b0de4fb4445c204728cc523daa5652 /kvm-all.c | |
parent | 2f3a2bb15e665f23c885985226c4147db4ea35db (diff) | |
download | qemu-bc92e4e97ed62efa61ba983f57dfe33f10fe1d88.tar.gz qemu-bc92e4e97ed62efa61ba983f57dfe33f10fe1d88.tar.bz2 qemu-bc92e4e97ed62efa61ba983f57dfe33f10fe1d88.zip |
kvm-all: PAGE_SIZE should be real host page size
Just noticed this while grepping TARGET_PAGE_SIZE for an unrelated
reason. I didn't use qemu_real_host_page_size as kvm_set_phys_mem()
does, because we'd need to make sure page_size_init() has run first.
Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-Id: <1447115022-4142-1-git-send-email-drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r-- | kvm-all.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -45,8 +45,10 @@ #include <sys/eventfd.h> #endif -/* KVM uses PAGE_SIZE in its definition of COALESCED_MMIO_MAX */ -#define PAGE_SIZE TARGET_PAGE_SIZE +/* KVM uses PAGE_SIZE in its definition of KVM_COALESCED_MMIO_MAX. We + * need to use the real host PAGE_SIZE, as that's what KVM will use. + */ +#define PAGE_SIZE getpagesize() //#define DEBUG_KVM |