aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-06-21 04:44:20 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 03:47:00 -0400
commita1f4d39500ad8ed61825eff061debff42386ab5b (patch)
tree58b72188b1356329e78951773f4be41e66b11d21 /include
parentfc34531db3cf8c422f2ff7cf4ef507a3ca672cd2 (diff)
KVM: Remove memory alias support
As advertised in feature-removal-schedule.txt. Equivalent support is provided by overlapping memory regions. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm.h1
-rw-r--r--include/linux/kvm_host.h6
2 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 6fd40f540a8e..636fc381c897 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -619,6 +619,7 @@ struct kvm_clock_data {
619 */ 619 */
620#define KVM_CREATE_VCPU _IO(KVMIO, 0x41) 620#define KVM_CREATE_VCPU _IO(KVMIO, 0x41)
621#define KVM_GET_DIRTY_LOG _IOW(KVMIO, 0x42, struct kvm_dirty_log) 621#define KVM_GET_DIRTY_LOG _IOW(KVMIO, 0x42, struct kvm_dirty_log)
622/* KVM_SET_MEMORY_ALIAS is obsolete: */
622#define KVM_SET_MEMORY_ALIAS _IOW(KVMIO, 0x43, struct kvm_memory_alias) 623#define KVM_SET_MEMORY_ALIAS _IOW(KVMIO, 0x43, struct kvm_memory_alias)
623#define KVM_SET_NR_MMU_PAGES _IO(KVMIO, 0x44) 624#define KVM_SET_NR_MMU_PAGES _IO(KVMIO, 0x44)
624#define KVM_GET_NR_MMU_PAGES _IO(KVMIO, 0x45) 625#define KVM_GET_NR_MMU_PAGES _IO(KVMIO, 0x45)
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 2d96555cd4ed..240e460777bc 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -286,8 +286,6 @@ void kvm_arch_commit_memory_region(struct kvm *kvm,
286 int user_alloc); 286 int user_alloc);
287void kvm_disable_largepages(void); 287void kvm_disable_largepages(void);
288void kvm_arch_flush_shadow(struct kvm *kvm); 288void kvm_arch_flush_shadow(struct kvm *kvm);
289gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn);
290gfn_t unalias_gfn_instantiation(struct kvm *kvm, gfn_t gfn);
291 289
292struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); 290struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn);
293unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn); 291unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn);
@@ -564,10 +562,6 @@ static inline int mmu_notifier_retry(struct kvm_vcpu *vcpu, unsigned long mmu_se
564} 562}
565#endif 563#endif
566 564
567#ifndef KVM_ARCH_HAS_UNALIAS_INSTANTIATION
568#define unalias_gfn_instantiation unalias_gfn
569#endif
570
571#ifdef CONFIG_HAVE_KVM_IRQCHIP 565#ifdef CONFIG_HAVE_KVM_IRQCHIP
572 566
573#define KVM_MAX_IRQ_ROUTES 1024 567#define KVM_MAX_IRQ_ROUTES 1024