aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorLaurent Vivier <Laurent.Vivier@bull.net>2007-08-30 08:56:21 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:27 -0400
commit0d8d2bd4f20c8a2a254b4fe3bc114f12214a6d73 (patch)
treeca8234bdcb71b7cc0955ef89ae5b028d19ca709e /drivers/kvm/kvm.h
parent1747fb71fd7c9389696e91f354d2f841b5c85790 (diff)
KVM: Simplify memory allocation
The mutex->splinlock convertion alllows us to make some code simplifications. As we can keep the lock longer, we don't have to release it and then have to check if the environment has not been modified before re-taking it. We can remove kvm->busy and kvm->memory_config_version. Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index ee9f8bdee755..351da40807c5 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -411,8 +411,6 @@ struct kvm {
411 int n_free_mmu_pages; 411 int n_free_mmu_pages;
412 struct hlist_head mmu_page_hash[KVM_NUM_MMU_PAGES]; 412 struct hlist_head mmu_page_hash[KVM_NUM_MMU_PAGES];
413 struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; 413 struct kvm_vcpu *vcpus[KVM_MAX_VCPUS];
414 int memory_config_version;
415 int busy;
416 unsigned long rmap_overflow; 414 unsigned long rmap_overflow;
417 struct list_head vm_list; 415 struct list_head vm_list;
418 struct file *filp; 416 struct file *filp;