diff options
author | Avi Kivity <avi@qumranet.com> | 2007-06-07 12:11:53 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 05:05:46 -0400 |
commit | 39c3b86e5c193e09f69f0e99c93600a4999ffc60 (patch) | |
tree | 94272c98789224f53d4f4f19587a08d95103f837 /drivers/kvm/kvm.h | |
parent | 72d6e5a08a8ba2105b3f36e32285e8fbfbed1f71 (diff) |
KVM: Keep an upper bound of initialized vcpus
That way, we don't need to loop for KVM_MAX_VCPUS for a single vcpu
vm.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index d49b16cae27a..528a56b1790e 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -379,6 +379,7 @@ struct kvm { | |||
379 | struct list_head active_mmu_pages; | 379 | struct list_head active_mmu_pages; |
380 | int n_free_mmu_pages; | 380 | int n_free_mmu_pages; |
381 | struct hlist_head mmu_page_hash[KVM_NUM_MMU_PAGES]; | 381 | struct hlist_head mmu_page_hash[KVM_NUM_MMU_PAGES]; |
382 | int nvcpus; | ||
382 | struct kvm_vcpu vcpus[KVM_MAX_VCPUS]; | 383 | struct kvm_vcpu vcpus[KVM_MAX_VCPUS]; |
383 | int memory_config_version; | 384 | int memory_config_version; |
384 | int busy; | 385 | int busy; |