[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 04/45] kvm-all: PAGE_SIZE should be real host page si
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 04/45] kvm-all: PAGE_SIZE should be real host page size |
Date: |
Thu, 17 Dec 2015 18:46:00 +0100 |
From: Andrew Jones <address@hidden>
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 <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
kvm-all.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/kvm-all.c b/kvm-all.c
index c648b81..a45c92b 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -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
--
2.5.0
- [Qemu-devel] [PULL 00/45] KVM, memory, SCSI, qemu_log, Coverity patches for 2015-12-17, Paolo Bonzini, 2015/12/17
- [Qemu-devel] [PULL 02/45] memory: Eliminate memory_region_destructor_ram_from_ptr(), Paolo Bonzini, 2015/12/17
- [Qemu-devel] [PULL 01/45] exec: Eliminate qemu_ram_free_from_ptr(), Paolo Bonzini, 2015/12/17
- [Qemu-devel] [PULL 04/45] kvm-all: PAGE_SIZE should be real host page size,
Paolo Bonzini <=
- [Qemu-devel] [PULL 05/45] memory: emulate ioeventfd, Paolo Bonzini, 2015/12/17
- [Qemu-devel] [PULL 03/45] exec: Remove unnecessary RAM_FILE flag, Paolo Bonzini, 2015/12/17
- [Qemu-devel] [PULL 08/45] vmw_pvscsi: Introduce 'x-old-pci-configuration' backword compatability property, Paolo Bonzini, 2015/12/17
- [Qemu-devel] [PULL 06/45] vmw_pvscsi: Set device subsystem and revision, Paolo Bonzini, 2015/12/17
- [Qemu-devel] [PULL 09/45] vmw_pvscsi: coding: Introduce PVSCSIClass, Paolo Bonzini, 2015/12/17
- [Qemu-devel] [PULL 07/45] vmw_pvscsi: Change offset of msi pci capability, Paolo Bonzini, 2015/12/17
- [Qemu-devel] [PULL 10/45] vmw_pvscsi: The pvscsi device is a PCIE endpoint, Paolo Bonzini, 2015/12/17
- [Qemu-devel] [PULL 11/45] vmw_pvscsi: Introduce 'x-disable-pcie' backword compatability property, Paolo Bonzini, 2015/12/17