aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-02-15 18:40:00 -0500
committerAvi Kivity <avi@redhat.com>2012-04-08 05:54:57 -0400
commitbf7ca4bdcb8f1eb15d11879efa824b45443ddb69 (patch)
treeda2e532462cadb2121badb1f477972ecda3dc911 /arch
parent1d628af78a28c77143bcdd4ed09e93bb235d4198 (diff)
KVM: PPC: rename CONFIG_KVM_E500 -> CONFIG_KVM_E500V2
The CONFIG_KVM_E500 option really indicates that we're running on a V2 machine, not on a machine of the generic E500 class. So indicate that properly and change the config name accordingly. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kvm/Kconfig8
-rw-r--r--arch/powerpc/kvm/Makefile4
-rw-r--r--arch/powerpc/kvm/booke.c2
-rw-r--r--arch/powerpc/kvm/e500.h6
-rw-r--r--arch/powerpc/kvm/e500_tlb.c2
-rw-r--r--arch/powerpc/kvm/powerpc.c8
6 files changed, 15 insertions, 15 deletions
diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig
index 58f6e6817924..44a998dc8399 100644
--- a/arch/powerpc/kvm/Kconfig
+++ b/arch/powerpc/kvm/Kconfig
@@ -109,7 +109,7 @@ config KVM_440
109 109
110config KVM_EXIT_TIMING 110config KVM_EXIT_TIMING
111 bool "Detailed exit timing" 111 bool "Detailed exit timing"
112 depends on KVM_440 || KVM_E500 || KVM_E500MC 112 depends on KVM_440 || KVM_E500V2 || KVM_E500MC
113 ---help--- 113 ---help---
114 Calculate elapsed time for every exit/enter cycle. A per-vcpu 114 Calculate elapsed time for every exit/enter cycle. A per-vcpu
115 report is available in debugfs kvm/vm#_vcpu#_timing. 115 report is available in debugfs kvm/vm#_vcpu#_timing.
@@ -118,14 +118,14 @@ config KVM_EXIT_TIMING
118 118
119 If unsure, say N. 119 If unsure, say N.
120 120
121config KVM_E500 121config KVM_E500V2
122 bool "KVM support for PowerPC E500 processors" 122 bool "KVM support for PowerPC E500v2 processors"
123 depends on EXPERIMENTAL && E500 123 depends on EXPERIMENTAL && E500
124 select KVM 124 select KVM
125 select KVM_MMIO 125 select KVM_MMIO
126 ---help--- 126 ---help---
127 Support running unmodified E500 guest kernels in virtual machines on 127 Support running unmodified E500 guest kernels in virtual machines on
128 E500 host processors. 128 E500v2 host processors.
129 129
130 This module provides access to the hardware capabilities through 130 This module provides access to the hardware capabilities through
131 a character device node named /dev/kvm. 131 a character device node named /dev/kvm.
diff --git a/arch/powerpc/kvm/Makefile b/arch/powerpc/kvm/Makefile
index 62febd730ba4..25225aea4c39 100644
--- a/arch/powerpc/kvm/Makefile
+++ b/arch/powerpc/kvm/Makefile
@@ -36,7 +36,7 @@ kvm-e500-objs := \
36 e500.o \ 36 e500.o \
37 e500_tlb.o \ 37 e500_tlb.o \
38 e500_emulate.o 38 e500_emulate.o
39kvm-objs-$(CONFIG_KVM_E500) := $(kvm-e500-objs) 39kvm-objs-$(CONFIG_KVM_E500V2) := $(kvm-e500-objs)
40 40
41kvm-e500mc-objs := \ 41kvm-e500mc-objs := \
42 $(common-objs-y) \ 42 $(common-objs-y) \
@@ -98,7 +98,7 @@ kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs)
98kvm-objs := $(kvm-objs-m) $(kvm-objs-y) 98kvm-objs := $(kvm-objs-m) $(kvm-objs-y)
99 99
100obj-$(CONFIG_KVM_440) += kvm.o 100obj-$(CONFIG_KVM_440) += kvm.o
101obj-$(CONFIG_KVM_E500) += kvm.o 101obj-$(CONFIG_KVM_E500V2) += kvm.o
102obj-$(CONFIG_KVM_E500MC) += kvm.o 102obj-$(CONFIG_KVM_E500MC) += kvm.o
103obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o 103obj-$(CONFIG_KVM_BOOK3S_64) += kvm.o
104obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o 104obj-$(CONFIG_KVM_BOOK3S_32) += kvm.o
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index fcbe9281543f..9fcc7607a54e 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -762,7 +762,7 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,
762 gpa_t gpaddr; 762 gpa_t gpaddr;
763 gfn_t gfn; 763 gfn_t gfn;
764 764
765#ifdef CONFIG_KVM_E500 765#ifdef CONFIG_KVM_E500V2
766 if (!(vcpu->arch.shared->msr & MSR_PR) && 766 if (!(vcpu->arch.shared->msr & MSR_PR) &&
767 (eaddr & PAGE_MASK) == vcpu->arch.magic_page_ea) { 767 (eaddr & PAGE_MASK) == vcpu->arch.magic_page_ea) {
768 kvmppc_map_magic(vcpu); 768 kvmppc_map_magic(vcpu);
diff --git a/arch/powerpc/kvm/e500.h b/arch/powerpc/kvm/e500.h
index 31430852ba74..7967f3f10a16 100644
--- a/arch/powerpc/kvm/e500.h
+++ b/arch/powerpc/kvm/e500.h
@@ -39,7 +39,7 @@ struct tlbe_priv {
39 struct tlbe_ref ref; /* TLB0 only -- TLB1 uses tlb_refs */ 39 struct tlbe_ref ref; /* TLB0 only -- TLB1 uses tlb_refs */
40}; 40};
41 41
42#ifdef CONFIG_KVM_E500 42#ifdef CONFIG_KVM_E500V2
43struct vcpu_id_table; 43struct vcpu_id_table;
44#endif 44#endif
45 45
@@ -89,7 +89,7 @@ struct kvmppc_vcpu_e500 {
89 u64 *g2h_tlb1_map; 89 u64 *g2h_tlb1_map;
90 unsigned int *h2g_tlb1_rmap; 90 unsigned int *h2g_tlb1_rmap;
91 91
92#ifdef CONFIG_KVM_E500 92#ifdef CONFIG_KVM_E500V2
93 u32 pid[E500_PID_NUM]; 93 u32 pid[E500_PID_NUM];
94 94
95 /* vcpu id table */ 95 /* vcpu id table */
@@ -136,7 +136,7 @@ void kvmppc_get_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
136int kvmppc_set_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs); 136int kvmppc_set_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs);
137 137
138 138
139#ifdef CONFIG_KVM_E500 139#ifdef CONFIG_KVM_E500V2
140unsigned int kvmppc_e500_get_sid(struct kvmppc_vcpu_e500 *vcpu_e500, 140unsigned int kvmppc_e500_get_sid(struct kvmppc_vcpu_e500 *vcpu_e500,
141 unsigned int as, unsigned int gid, 141 unsigned int as, unsigned int gid,
142 unsigned int pr, int avoid_recursion); 142 unsigned int pr, int avoid_recursion);
diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c
index e232bb464a80..279e10aaf7b3 100644
--- a/arch/powerpc/kvm/e500_tlb.c
+++ b/arch/powerpc/kvm/e500_tlb.c
@@ -156,7 +156,7 @@ static inline void write_host_tlbe(struct kvmppc_vcpu_e500 *vcpu_e500,
156 } 156 }
157} 157}
158 158
159#ifdef CONFIG_KVM_E500 159#ifdef CONFIG_KVM_E500V2
160void kvmppc_map_magic(struct kvm_vcpu *vcpu) 160void kvmppc_map_magic(struct kvm_vcpu *vcpu)
161{ 161{
162 struct kvmppc_vcpu_e500 *vcpu_e500 = to_e500(vcpu); 162 struct kvmppc_vcpu_e500 *vcpu_e500 = to_e500(vcpu);
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index 14bf8d59bc2a..58ad8609bb43 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -79,7 +79,7 @@ int kvmppc_kvm_pv(struct kvm_vcpu *vcpu)
79 } 79 }
80 case HC_VENDOR_KVM | KVM_HC_FEATURES: 80 case HC_VENDOR_KVM | KVM_HC_FEATURES:
81 r = HC_EV_SUCCESS; 81 r = HC_EV_SUCCESS;
82#if defined(CONFIG_PPC_BOOK3S) || defined(CONFIG_KVM_E500) 82#if defined(CONFIG_PPC_BOOK3S) || defined(CONFIG_KVM_E500V2)
83 /* XXX Missing magic page on 44x */ 83 /* XXX Missing magic page on 44x */
84 r2 |= (1 << KVM_FEATURE_MAGIC_PAGE); 84 r2 |= (1 << KVM_FEATURE_MAGIC_PAGE);
85#endif 85#endif
@@ -235,7 +235,7 @@ int kvm_dev_ioctl_check_extension(long ext)
235 case KVM_CAP_PPC_PAIRED_SINGLES: 235 case KVM_CAP_PPC_PAIRED_SINGLES:
236 case KVM_CAP_PPC_OSI: 236 case KVM_CAP_PPC_OSI:
237 case KVM_CAP_PPC_GET_PVINFO: 237 case KVM_CAP_PPC_GET_PVINFO:
238#if defined(CONFIG_KVM_E500) || defined(CONFIG_KVM_E500MC) 238#if defined(CONFIG_KVM_E500V2) || defined(CONFIG_KVM_E500MC)
239 case KVM_CAP_SW_TLB: 239 case KVM_CAP_SW_TLB:
240#endif 240#endif
241 r = 1; 241 r = 1;
@@ -629,7 +629,7 @@ static int kvm_vcpu_ioctl_enable_cap(struct kvm_vcpu *vcpu,
629 r = 0; 629 r = 0;
630 vcpu->arch.papr_enabled = true; 630 vcpu->arch.papr_enabled = true;
631 break; 631 break;
632#if defined(CONFIG_KVM_E500) || defined(CONFIG_KVM_E500MC) 632#if defined(CONFIG_KVM_E500V2) || defined(CONFIG_KVM_E500MC)
633 case KVM_CAP_SW_TLB: { 633 case KVM_CAP_SW_TLB: {
634 struct kvm_config_tlb cfg; 634 struct kvm_config_tlb cfg;
635 void __user *user_ptr = (void __user *)(uintptr_t)cap->args[0]; 635 void __user *user_ptr = (void __user *)(uintptr_t)cap->args[0];
@@ -706,7 +706,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
706 break; 706 break;
707 } 707 }
708 708
709#if defined(CONFIG_KVM_E500) || defined(CONFIG_KVM_E500MC) 709#if defined(CONFIG_KVM_E500V2) || defined(CONFIG_KVM_E500MC)
710 case KVM_DIRTY_TLB: { 710 case KVM_DIRTY_TLB: {
711 struct kvm_dirty_tlb dirty; 711 struct kvm_dirty_tlb dirty;
712 r = -EFAULT; 712 r = -EFAULT;