aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2009-12-23 11:35:23 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:35:45 -0500
commita983fb238728e1123177e8058d4f644b949a7d05 (patch)
tree55f9b26d8ace10a1233b293dd423eae2d0ff9046 /include/linux/kvm_host.h
parentb050b015abbef8225826eecb6f6b4d4a6dea7b79 (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/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h6
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,
266void kvm_disable_largepages(void); 266void kvm_disable_largepages(void);
267void kvm_arch_flush_shadow(struct kvm *kvm); 267void kvm_arch_flush_shadow(struct kvm *kvm);
268gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); 268gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn);
269gfn_t unalias_gfn_instantiation(struct kvm *kvm, gfn_t gfn);
270
269struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); 271struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn);
270unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn); 272unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn);
271void kvm_release_page_clean(struct page *page); 273void 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