]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tool: Change kvm->ram_size to real mapped size.
authorHongyong Zang <zanghongyong@huawei.com>
Fri, 6 Jan 2012 02:06:26 +0000 (10:06 +0800)
committerPekka Enberg <penberg@kernel.org>
Fri, 6 Jan 2012 14:06:01 +0000 (16:06 +0200)
commite106906d56d0f0d9a3ab1efeff190f4593939f33
tree54a45a7999ea0ec3581bce8793cd4d9f6cf7bee9
parent54a35dfe65b5c58bb60bb66c18917185e353f658
kvm tool: Change kvm->ram_size to real mapped size.

If a guest's ram_size exceeds KVM_32BIT_GAP_START, the corresponding kvm tool's
virtual address size should be (ram_size + KVM_32BIT_GAP_SIZE), rather than ram_size.
Use macro define KVM_32BIT_MAX_MEM_SIZE instead of magic number "0x100000000ULL".

Signed-off-by: Hongyong Zang <zanghongyong@huawei.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/x86/bios.c
tools/kvm/x86/include/kvm/kvm-arch.h
tools/kvm/x86/kvm.c