diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2011-11-24 04:37:48 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-27 04:17:34 -0500 |
commit | 93a5cef07d686a0341d056b0f930a762c7174a13 (patch) | |
tree | 8db1ec00bd74a7297b32abf4d7463d845c34fea8 /include | |
parent | ff227392cd7b858b2b04732e02697122fd1b35b0 (diff) |
KVM: introduce KVM_MEM_SLOTS_NUM macro
Introduce KVM_MEM_SLOTS_NUM macro to instead of
KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kvm_host.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 7c654aa46b6c..924df0d7ac5f 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -227,11 +227,14 @@ struct kvm_irq_routing_table {}; | |||
227 | 227 | ||
228 | #endif | 228 | #endif |
229 | 229 | ||
230 | #ifndef KVM_MEM_SLOTS_NUM | ||
231 | #define KVM_MEM_SLOTS_NUM (KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS) | ||
232 | #endif | ||
233 | |||
230 | struct kvm_memslots { | 234 | struct kvm_memslots { |
231 | int nmemslots; | 235 | int nmemslots; |
232 | u64 generation; | 236 | u64 generation; |
233 | struct kvm_memory_slot memslots[KVM_MEMORY_SLOTS + | 237 | struct kvm_memory_slot memslots[KVM_MEM_SLOTS_NUM]; |
234 | KVM_PRIVATE_MEM_SLOTS]; | ||
235 | }; | 238 | }; |
236 | 239 | ||
237 | struct kvm { | 240 | struct kvm { |