aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2014-01-17 11:12:07 -0700
committerAlex Williamson <alex.williamson@redhat.com>2014-01-17 11:12:07 -0700
commit47c16ed56aa6bc4037bdb7b61f049097993cd244 (patch)
tree4e4825efa59941220ebbf91785064a5ec973aae9 /kvm-all.c
parent87ca1f77b1c406137fe36ab73b2dc91fb75f8d0a (diff)
downloadqemu-47c16ed56aa6bc4037bdb7b61f049097993cd244.zip
qemu-47c16ed56aa6bc4037bdb7b61f049097993cd244.tar.gz
qemu-47c16ed56aa6bc4037bdb7b61f049097993cd244.tar.bz2
kvm: initialize qemu_host_page_size
There is a HOST_PAGE_ALIGN macro which makes sense for KVM accelerator but it uses qemu_host_page_size/qemu_host_page_mask which initialized for TCG only. This moves qemu_host_page_size/qemu_host_page_mask initialization from TCG's page_init() and adds a call for it from kvm_init(). Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 0bfb060..edf2365 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1360,6 +1360,7 @@ int kvm_init(void)
* page size for the system though.
*/
assert(TARGET_PAGE_SIZE <= getpagesize());
+ page_size_init();
#ifdef KVM_CAP_SET_GUEST_DEBUG
QTAILQ_INIT(&s->kvm_sw_breakpoints);