diff options
author | Avi Kivity <avi@qumranet.com> | 2007-06-07 20:11:53 +0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 13:05:46 +0400 |
commit | 39c3b86e5c193e09f69f0e99c93600a4999ffc60 (patch) | |
tree | 94272c98789224f53d4f4f19587a08d95103f837 /drivers/kvm/kvm.h | |
parent | 72d6e5a08a8ba2105b3f36e32285e8fbfbed1f71 (diff) | |
download | linux-39c3b86e5c193e09f69f0e99c93600a4999ffc60.tar.xz |
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 { struct list_head active_mmu_pages; int n_free_mmu_pages; struct hlist_head mmu_page_hash[KVM_NUM_MMU_PAGES]; + int nvcpus; struct kvm_vcpu vcpus[KVM_MAX_VCPUS]; int memory_config_version; int busy; |