]> Git Repo - qemu.git/commit
kvm-all: Align to qemu_real_host_page_size in kvm_set_phys_mem
authorAlexey Kardashevskiy <[email protected]>
Tue, 6 Oct 2015 03:30:57 +0000 (14:30 +1100)
committerPaolo Bonzini <[email protected]>
Mon, 12 Oct 2015 16:29:26 +0000 (18:29 +0200)
commitb232c7857aa36d144205134c725114541630b1c2
tree17e9923a8c2bc7270f495e21d54d896d11963171
parent88401cbc5b5730986fd5040425f5015a9cce9080
kvm-all: Align to qemu_real_host_page_size in kvm_set_phys_mem

As the comment in kvm_set_phys_mem() says, KVM works in page size chunks.
However it uses hardcoded TARGET_PAGE_SIZE which is 4K on most platforms
while actual host may use different page size, for example, PPC64 hosts
use 64K system pages.

This replaces static TARGET_PAGE_SIZE with run-time calculated
qemu_real_host_page_size.

Signed-off-by: Alexey Kardashevskiy <[email protected]>
Message-Id: <1444102257[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
kvm-all.c
This page took 0.024486 seconds and 4 git commands to generate.