summaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity2007-07-17 12:04:56 +0200
committerAvi Kivity2007-07-20 19:16:29 +0200
commit90cb0529dd230548a7f0d6b315997be854caea1b (patch)
tree31aad8e119781b7df846a8f8d8522a82ff3e4b25 /drivers/kvm/kvm.h
parentKVM: MMU: Store nx bit for large page shadows (diff)
downloadkernel-qcow2-linux-90cb0529dd230548a7f0d6b315997be854caea1b.tar.gz
kernel-qcow2-linux-90cb0529dd230548a7f0d6b315997be854caea1b.tar.xz
kernel-qcow2-linux-90cb0529dd230548a7f0d6b315997be854caea1b.zip
KVM: Fix memory slot management functions for guest smp
The memory slot management functions were oriented against vcpu 0, where they should be kvm-wide. This causes hangs starting X on guest smp. Fix by making the functions (and resultant tail in the mmu) non-vcpu-specific. Unfortunately this reduces the efficiency of the mmu object cache a bit. We may have to revisit this later. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 65ab268d4256..6636ae2ee3b5 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -535,8 +535,8 @@ int kvm_mmu_create(struct kvm_vcpu *vcpu);
int kvm_mmu_setup(struct kvm_vcpu *vcpu);
int kvm_mmu_reset_context(struct kvm_vcpu *vcpu);
-void kvm_mmu_slot_remove_write_access(struct kvm_vcpu *vcpu, int slot);
-void kvm_mmu_zap_all(struct kvm_vcpu *vcpu);
+void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot);
+void kvm_mmu_zap_all(struct kvm *kvm);
hpa_t gpa_to_hpa(struct kvm_vcpu *vcpu, gpa_t gpa);
#define HPA_MSB ((sizeof(hpa_t) * 8) - 1)