diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/exception-64s.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/kvm_book3s.h | 4 | ||||
-rw-r--r-- | arch/powerpc/include/asm/kvm_book3s_64.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/paca.h | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/exceptions-64s.S | 2 | ||||
-rw-r--r-- | arch/powerpc/kvm/Kconfig | 6 | ||||
-rw-r--r-- | arch/powerpc/kvm/trace.h | 10 |
9 files changed, 16 insertions, 16 deletions
diff --git a/arch/powerpc/include/asm/exception-64s.h b/arch/powerpc/include/asm/exception-64s.h index 402c1c466509..a22c9854a633 100644 --- a/arch/powerpc/include/asm/exception-64s.h +++ b/arch/powerpc/include/asm/exception-64s.h | |||
@@ -244,7 +244,7 @@ do_kvm_##n: \ | |||
244 | #define KVM_HANDLER_SKIP(area, h, n) | 244 | #define KVM_HANDLER_SKIP(area, h, n) |
245 | #endif | 245 | #endif |
246 | 246 | ||
247 | #ifdef CONFIG_KVM_BOOK3S_PR | 247 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
248 | #define KVMTEST_PR(n) __KVMTEST(n) | 248 | #define KVMTEST_PR(n) __KVMTEST(n) |
249 | #define KVM_HANDLER_PR(area, h, n) __KVM_HANDLER(area, h, n) | 249 | #define KVM_HANDLER_PR(area, h, n) __KVM_HANDLER(area, h, n) |
250 | #define KVM_HANDLER_PR_SKIP(area, h, n) __KVM_HANDLER_SKIP(area, h, n) | 250 | #define KVM_HANDLER_PR_SKIP(area, h, n) __KVM_HANDLER_SKIP(area, h, n) |
diff --git a/arch/powerpc/include/asm/kvm_book3s.h b/arch/powerpc/include/asm/kvm_book3s.h index 0ec00f4fef91..5c07d10e3c41 100644 --- a/arch/powerpc/include/asm/kvm_book3s.h +++ b/arch/powerpc/include/asm/kvm_book3s.h | |||
@@ -304,7 +304,7 @@ static inline ulong kvmppc_get_fault_dar(struct kvm_vcpu *vcpu) | |||
304 | return vcpu->arch.fault_dar; | 304 | return vcpu->arch.fault_dar; |
305 | } | 305 | } |
306 | 306 | ||
307 | #ifdef CONFIG_KVM_BOOK3S_PR | 307 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
308 | 308 | ||
309 | static inline unsigned long kvmppc_interrupt_offset(struct kvm_vcpu *vcpu) | 309 | static inline unsigned long kvmppc_interrupt_offset(struct kvm_vcpu *vcpu) |
310 | { | 310 | { |
@@ -339,7 +339,7 @@ static inline bool kvmppc_critical_section(struct kvm_vcpu *vcpu) | |||
339 | 339 | ||
340 | return crit; | 340 | return crit; |
341 | } | 341 | } |
342 | #else /* CONFIG_KVM_BOOK3S_PR */ | 342 | #else /* CONFIG_KVM_BOOK3S_PR_POSSIBLE */ |
343 | 343 | ||
344 | static inline unsigned long kvmppc_interrupt_offset(struct kvm_vcpu *vcpu) | 344 | static inline unsigned long kvmppc_interrupt_offset(struct kvm_vcpu *vcpu) |
345 | { | 345 | { |
diff --git a/arch/powerpc/include/asm/kvm_book3s_64.h b/arch/powerpc/include/asm/kvm_book3s_64.h index 86d638a3b359..e6ee7fd32d12 100644 --- a/arch/powerpc/include/asm/kvm_book3s_64.h +++ b/arch/powerpc/include/asm/kvm_book3s_64.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #ifndef __ASM_KVM_BOOK3S_64_H__ | 20 | #ifndef __ASM_KVM_BOOK3S_64_H__ |
21 | #define __ASM_KVM_BOOK3S_64_H__ | 21 | #define __ASM_KVM_BOOK3S_64_H__ |
22 | 22 | ||
23 | #ifdef CONFIG_KVM_BOOK3S_PR | 23 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
24 | static inline struct kvmppc_book3s_shadow_vcpu *svcpu_get(struct kvm_vcpu *vcpu) | 24 | static inline struct kvmppc_book3s_shadow_vcpu *svcpu_get(struct kvm_vcpu *vcpu) |
25 | { | 25 | { |
26 | preempt_disable(); | 26 | preempt_disable(); |
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index 4959ff1b5376..9e9f689106e2 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h | |||
@@ -257,7 +257,7 @@ struct kvm_arch { | |||
257 | struct kvmppc_vcore *vcores[KVM_MAX_VCORES]; | 257 | struct kvmppc_vcore *vcores[KVM_MAX_VCORES]; |
258 | int hpt_cma_alloc; | 258 | int hpt_cma_alloc; |
259 | #endif /* CONFIG_KVM_BOOK3S_64_HV */ | 259 | #endif /* CONFIG_KVM_BOOK3S_64_HV */ |
260 | #ifdef CONFIG_KVM_BOOK3S_PR | 260 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
261 | struct mutex hpt_mutex; | 261 | struct mutex hpt_mutex; |
262 | #endif | 262 | #endif |
263 | #ifdef CONFIG_PPC_BOOK3S_64 | 263 | #ifdef CONFIG_PPC_BOOK3S_64 |
diff --git a/arch/powerpc/include/asm/paca.h b/arch/powerpc/include/asm/paca.h index a5954cebbc55..b6ea9e068c13 100644 --- a/arch/powerpc/include/asm/paca.h +++ b/arch/powerpc/include/asm/paca.h | |||
@@ -166,7 +166,7 @@ struct paca_struct { | |||
166 | struct dtl_entry *dtl_curr; /* pointer corresponding to dtl_ridx */ | 166 | struct dtl_entry *dtl_curr; /* pointer corresponding to dtl_ridx */ |
167 | 167 | ||
168 | #ifdef CONFIG_KVM_BOOK3S_HANDLER | 168 | #ifdef CONFIG_KVM_BOOK3S_HANDLER |
169 | #ifdef CONFIG_KVM_BOOK3S_PR | 169 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
170 | /* We use this to store guest state in */ | 170 | /* We use this to store guest state in */ |
171 | struct kvmppc_book3s_shadow_vcpu shadow_vcpu; | 171 | struct kvmppc_book3s_shadow_vcpu shadow_vcpu; |
172 | #endif | 172 | #endif |
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index 95ba8095fc4a..29796559c2fb 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c | |||
@@ -533,7 +533,7 @@ int main(void) | |||
533 | DEFINE(VCPU_SLB_SIZE, sizeof(struct kvmppc_slb)); | 533 | DEFINE(VCPU_SLB_SIZE, sizeof(struct kvmppc_slb)); |
534 | 534 | ||
535 | #ifdef CONFIG_PPC_BOOK3S_64 | 535 | #ifdef CONFIG_PPC_BOOK3S_64 |
536 | #ifdef CONFIG_KVM_BOOK3S_PR | 536 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
537 | DEFINE(PACA_SVCPU, offsetof(struct paca_struct, shadow_vcpu)); | 537 | DEFINE(PACA_SVCPU, offsetof(struct paca_struct, shadow_vcpu)); |
538 | # define SVCPU_FIELD(x, f) DEFINE(x, offsetof(struct paca_struct, shadow_vcpu.f)) | 538 | # define SVCPU_FIELD(x, f) DEFINE(x, offsetof(struct paca_struct, shadow_vcpu.f)) |
539 | #else | 539 | #else |
diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 2a273bed1ec8..3d1c42b03c89 100644 --- a/arch/powerpc/kernel/exceptions-64s.S +++ b/arch/powerpc/kernel/exceptions-64s.S | |||
@@ -425,7 +425,7 @@ data_access_check_stab: | |||
425 | mfspr r9,SPRN_DSISR | 425 | mfspr r9,SPRN_DSISR |
426 | srdi r10,r10,60 | 426 | srdi r10,r10,60 |
427 | rlwimi r10,r9,16,0x20 | 427 | rlwimi r10,r9,16,0x20 |
428 | #ifdef CONFIG_KVM_BOOK3S_PR | 428 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
429 | lbz r9,HSTATE_IN_GUEST(r13) | 429 | lbz r9,HSTATE_IN_GUEST(r13) |
430 | rlwimi r10,r9,8,0x300 | 430 | rlwimi r10,r9,8,0x300 |
431 | #endif | 431 | #endif |
diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig index ffaef2cb101a..d0665f231e6f 100644 --- a/arch/powerpc/kvm/Kconfig +++ b/arch/powerpc/kvm/Kconfig | |||
@@ -34,7 +34,7 @@ config KVM_BOOK3S_64_HANDLER | |||
34 | bool | 34 | bool |
35 | select KVM_BOOK3S_HANDLER | 35 | select KVM_BOOK3S_HANDLER |
36 | 36 | ||
37 | config KVM_BOOK3S_PR | 37 | config KVM_BOOK3S_PR_POSSIBLE |
38 | bool | 38 | bool |
39 | select KVM_MMIO | 39 | select KVM_MMIO |
40 | select MMU_NOTIFIER | 40 | select MMU_NOTIFIER |
@@ -44,7 +44,7 @@ config KVM_BOOK3S_32 | |||
44 | depends on PPC_BOOK3S_32 && !SMP && !PTE_64BIT | 44 | depends on PPC_BOOK3S_32 && !SMP && !PTE_64BIT |
45 | select KVM | 45 | select KVM |
46 | select KVM_BOOK3S_32_HANDLER | 46 | select KVM_BOOK3S_32_HANDLER |
47 | select KVM_BOOK3S_PR | 47 | select KVM_BOOK3S_PR_POSSIBLE |
48 | ---help--- | 48 | ---help--- |
49 | Support running unmodified book3s_32 guest kernels | 49 | Support running unmodified book3s_32 guest kernels |
50 | in virtual machines on book3s_32 host processors. | 50 | in virtual machines on book3s_32 host processors. |
@@ -91,7 +91,7 @@ config KVM_BOOK3S_64_HV | |||
91 | config KVM_BOOK3S_64_PR | 91 | config KVM_BOOK3S_64_PR |
92 | def_bool y | 92 | def_bool y |
93 | depends on KVM_BOOK3S_64 && !KVM_BOOK3S_64_HV | 93 | depends on KVM_BOOK3S_64 && !KVM_BOOK3S_64_HV |
94 | select KVM_BOOK3S_PR | 94 | select KVM_BOOK3S_PR_POSSIBLE |
95 | 95 | ||
96 | config KVM_BOOKE_HV | 96 | config KVM_BOOKE_HV |
97 | bool | 97 | bool |
diff --git a/arch/powerpc/kvm/trace.h b/arch/powerpc/kvm/trace.h index a088e9a8c103..9e8368edf371 100644 --- a/arch/powerpc/kvm/trace.h +++ b/arch/powerpc/kvm/trace.h | |||
@@ -94,7 +94,7 @@ TRACE_EVENT(kvm_exit, | |||
94 | __field( unsigned long, pc ) | 94 | __field( unsigned long, pc ) |
95 | __field( unsigned long, msr ) | 95 | __field( unsigned long, msr ) |
96 | __field( unsigned long, dar ) | 96 | __field( unsigned long, dar ) |
97 | #ifdef CONFIG_KVM_BOOK3S_PR | 97 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
98 | __field( unsigned long, srr1 ) | 98 | __field( unsigned long, srr1 ) |
99 | #endif | 99 | #endif |
100 | __field( unsigned long, last_inst ) | 100 | __field( unsigned long, last_inst ) |
@@ -105,7 +105,7 @@ TRACE_EVENT(kvm_exit, | |||
105 | __entry->pc = kvmppc_get_pc(vcpu); | 105 | __entry->pc = kvmppc_get_pc(vcpu); |
106 | __entry->dar = kvmppc_get_fault_dar(vcpu); | 106 | __entry->dar = kvmppc_get_fault_dar(vcpu); |
107 | __entry->msr = vcpu->arch.shared->msr; | 107 | __entry->msr = vcpu->arch.shared->msr; |
108 | #ifdef CONFIG_KVM_BOOK3S_PR | 108 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
109 | __entry->srr1 = vcpu->arch.shadow_srr1; | 109 | __entry->srr1 = vcpu->arch.shadow_srr1; |
110 | #endif | 110 | #endif |
111 | __entry->last_inst = vcpu->arch.last_inst; | 111 | __entry->last_inst = vcpu->arch.last_inst; |
@@ -115,7 +115,7 @@ TRACE_EVENT(kvm_exit, | |||
115 | " | pc=0x%lx" | 115 | " | pc=0x%lx" |
116 | " | msr=0x%lx" | 116 | " | msr=0x%lx" |
117 | " | dar=0x%lx" | 117 | " | dar=0x%lx" |
118 | #ifdef CONFIG_KVM_BOOK3S_PR | 118 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
119 | " | srr1=0x%lx" | 119 | " | srr1=0x%lx" |
120 | #endif | 120 | #endif |
121 | " | last_inst=0x%lx" | 121 | " | last_inst=0x%lx" |
@@ -124,7 +124,7 @@ TRACE_EVENT(kvm_exit, | |||
124 | __entry->pc, | 124 | __entry->pc, |
125 | __entry->msr, | 125 | __entry->msr, |
126 | __entry->dar, | 126 | __entry->dar, |
127 | #ifdef CONFIG_KVM_BOOK3S_PR | 127 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
128 | __entry->srr1, | 128 | __entry->srr1, |
129 | #endif | 129 | #endif |
130 | __entry->last_inst | 130 | __entry->last_inst |
@@ -236,7 +236,7 @@ TRACE_EVENT(kvm_check_requests, | |||
236 | * Book3S trace points * | 236 | * Book3S trace points * |
237 | *************************************************************************/ | 237 | *************************************************************************/ |
238 | 238 | ||
239 | #ifdef CONFIG_KVM_BOOK3S_PR | 239 | #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE |
240 | 240 | ||
241 | TRACE_EVENT(kvm_book3s_reenter, | 241 | TRACE_EVENT(kvm_book3s_reenter, |
242 | TP_PROTO(int r, struct kvm_vcpu *vcpu), | 242 | TP_PROTO(int r, struct kvm_vcpu *vcpu), |