diff options
| author | Alexey Kardashevskiy | 2015-10-06 05:30:57 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2015-10-12 18:29:26 +0200 |
| commit | b232c7857aa36d144205134c725114541630b1c2 (patch) | |
| tree | 17e9923a8c2bc7270f495e21d54d896d11963171 /scripts | |
| parent | exec: remove non-TCG stuff from exec-all.h header. (diff) | |
| download | qemu-b232c7857aa36d144205134c725114541630b1c2.tar.gz qemu-b232c7857aa36d144205134c725114541630b1c2.tar.xz qemu-b232c7857aa36d144205134c725114541630b1c2.zip | |
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 <aik@ozlabs.ru>
Message-Id: <1444102257-17405-1-git-send-email-aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
