diff options
author | Avi Kivity <avi@qumranet.com> | 2007-07-17 06:04:56 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-20 13:16:29 -0400 |
commit | 90cb0529dd230548a7f0d6b315997be854caea1b (patch) | |
tree | 31aad8e119781b7df846a8f8d8522a82ff3e4b25 /drivers/kvm/kvm.h | |
parent | d55e2cb20123cdb5020ec4a2b2f1eace5038c292 (diff) |
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.h | 4 |
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); | |||
535 | int kvm_mmu_setup(struct kvm_vcpu *vcpu); | 535 | int kvm_mmu_setup(struct kvm_vcpu *vcpu); |
536 | 536 | ||
537 | int kvm_mmu_reset_context(struct kvm_vcpu *vcpu); | 537 | int kvm_mmu_reset_context(struct kvm_vcpu *vcpu); |
538 | void kvm_mmu_slot_remove_write_access(struct kvm_vcpu *vcpu, int slot); | 538 | void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot); |
539 | void kvm_mmu_zap_all(struct kvm_vcpu *vcpu); | 539 | void kvm_mmu_zap_all(struct kvm *kvm); |
540 | 540 | ||
541 | hpa_t gpa_to_hpa(struct kvm_vcpu *vcpu, gpa_t gpa); | 541 | hpa_t gpa_to_hpa(struct kvm_vcpu *vcpu, gpa_t gpa); |
542 | #define HPA_MSB ((sizeof(hpa_t) * 8) - 1) | 542 | #define HPA_MSB ((sizeof(hpa_t) * 8) - 1) |