diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-12-23 11:35:23 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:45 -0500 |
commit | a983fb238728e1123177e8058d4f644b949a7d05 (patch) | |
tree | 55f9b26d8ace10a1233b293dd423eae2d0ff9046 /include/linux | |
parent | b050b015abbef8225826eecb6f6b4d4a6dea7b79 (diff) |
KVM: x86: switch kvm_set_memory_alias to SRCU update
Using a similar two-step procedure as for memslots.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kvm_host.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 93bd30701ca7..20941c0f4045 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -266,6 +266,8 @@ void kvm_arch_commit_memory_region(struct kvm *kvm, | |||
266 | void kvm_disable_largepages(void); | 266 | void kvm_disable_largepages(void); |
267 | void kvm_arch_flush_shadow(struct kvm *kvm); | 267 | void kvm_arch_flush_shadow(struct kvm *kvm); |
268 | gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); | 268 | gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); |
269 | gfn_t unalias_gfn_instantiation(struct kvm *kvm, gfn_t gfn); | ||
270 | |||
269 | struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); | 271 | struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); |
270 | unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn); | 272 | unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn); |
271 | void kvm_release_page_clean(struct page *page); | 273 | void kvm_release_page_clean(struct page *page); |
@@ -539,6 +541,10 @@ static inline int mmu_notifier_retry(struct kvm_vcpu *vcpu, unsigned long mmu_se | |||
539 | } | 541 | } |
540 | #endif | 542 | #endif |
541 | 543 | ||
544 | #ifndef KVM_ARCH_HAS_UNALIAS_INSTANTIATION | ||
545 | #define unalias_gfn_instantiation unalias_gfn | ||
546 | #endif | ||
547 | |||
542 | #ifdef CONFIG_HAVE_KVM_IRQCHIP | 548 | #ifdef CONFIG_HAVE_KVM_IRQCHIP |
543 | 549 | ||
544 | #define KVM_MAX_IRQ_ROUTES 1024 | 550 | #define KVM_MAX_IRQ_ROUTES 1024 |