diff options
| author | Alex Williamson <alex.williamson@redhat.com> | 2012-12-10 12:33:15 -0500 |
|---|---|---|
| committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-12-13 20:21:58 -0500 |
| commit | 0743247fbf0c4a27185b2aa1fdda91d0745dfed1 (patch) | |
| tree | 7482acb31f01e40a52c3e285ac381c906fa602a9 /include/linux | |
| parent | bbacc0c111c3c5d1f3192b8cc1642b9c3954f80d (diff) | |
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 'include/linux')
| -rw-r--r-- | include/linux/kvm_host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index abad7f30771e..5a3581ceb036 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -313,6 +313,10 @@ struct kvm_irq_routing_table {}; | |||
| 313 | 313 | ||
| 314 | #endif | 314 | #endif |
| 315 | 315 | ||
| 316 | #ifndef KVM_PRIVATE_MEM_SLOTS | ||
| 317 | #define KVM_PRIVATE_MEM_SLOTS 0 | ||
| 318 | #endif | ||
| 319 | |||
| 316 | #ifndef KVM_MEM_SLOTS_NUM | 320 | #ifndef KVM_MEM_SLOTS_NUM |
| 317 | #define KVM_MEM_SLOTS_NUM (KVM_USER_MEM_SLOTS + KVM_PRIVATE_MEM_SLOTS) | 321 | #define KVM_MEM_SLOTS_NUM (KVM_USER_MEM_SLOTS + KVM_PRIVATE_MEM_SLOTS) |
| 318 | #endif | 322 | #endif |
