summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorAlex Williamson2012-12-10 18:33:15 +0100
committerMarcelo Tosatti2012-12-14 02:21:58 +0100
commit0743247fbf0c4a27185b2aa1fdda91d0745dfed1 (patch)
tree7482acb31f01e40a52c3e285ac381c906fa602a9 /arch/x86/include
parentKVM: Rename KVM_MEMORY_SLOTS -> KVM_USER_MEM_SLOTS (diff)
downloadkernel-qcow2-linux-0743247fbf0c4a27185b2aa1fdda91d0745dfed1.tar.gz
kernel-qcow2-linux-0743247fbf0c4a27185b2aa1fdda91d0745dfed1.tar.xz
kernel-qcow2-linux-0743247fbf0c4a27185b2aa1fdda91d0745dfed1.zip
KVM: Make KVM_PRIVATE_MEM_SLOTS optional
Seems like everyone copied x86 and defined 4 private memory slots that never actually get used. Even x86 only uses 3 of the 4. These aren't exposed so there's no need to add padding. Reviewed-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index c7df6ffd2437..51d52108f109 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -34,8 +34,8 @@
#define KVM_MAX_VCPUS 254
#define KVM_SOFT_MAX_VCPUS 160
#define KVM_USER_MEM_SLOTS 32
-/* memory slots that does not exposed to userspace */
-#define KVM_PRIVATE_MEM_SLOTS 4
+/* memory slots that are not exposed to userspace */
+#define KVM_PRIVATE_MEM_SLOTS 3
#define KVM_MEM_SLOTS_NUM (KVM_USER_MEM_SLOTS + KVM_PRIVATE_MEM_SLOTS)
#define KVM_MMIO_SIZE 16