diff options
author | Alexander Graf <agraf@suse.de> | 2010-04-15 18:11:42 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:18:29 -0400 |
commit | 00c3a37ca332f54f2187720e51f7c0e18e91d7c9 (patch) | |
tree | c6544905f7b67d892596c03ccea38892efbc75a8 /arch/powerpc | |
parent | c14dea04a248a59fe01f1b49ac94615042016558 (diff) |
KVM: PPC: Use CONFIG_PPC_BOOK3S define
Upstream recently added a new name for PPC64: Book3S_64.
So instead of using CONFIG_PPC64 we should use CONFIG_PPC_BOOK3S consotently.
That makes understanding the code easier (I hope).
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 8 | ||||
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 6 | ||||
-rw-r--r-- | arch/powerpc/kvm/Kconfig | 2 | ||||
-rw-r--r-- | arch/powerpc/kvm/emulate.c | 6 |
4 files changed, 11 insertions, 11 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index 5869a487e2e0..22801f802312 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h | |||
@@ -66,7 +66,7 @@ struct kvm_vcpu_stat { | |||
66 | u32 dec_exits; | 66 | u32 dec_exits; |
67 | u32 ext_intr_exits; | 67 | u32 ext_intr_exits; |
68 | u32 halt_wakeup; | 68 | u32 halt_wakeup; |
69 | #ifdef CONFIG_PPC64 | 69 | #ifdef CONFIG_PPC_BOOK3S |
70 | u32 pf_storage; | 70 | u32 pf_storage; |
71 | u32 pf_instruc; | 71 | u32 pf_instruc; |
72 | u32 sp_storage; | 72 | u32 sp_storage; |
@@ -160,7 +160,7 @@ struct hpte_cache { | |||
160 | struct kvm_vcpu_arch { | 160 | struct kvm_vcpu_arch { |
161 | ulong host_stack; | 161 | ulong host_stack; |
162 | u32 host_pid; | 162 | u32 host_pid; |
163 | #ifdef CONFIG_PPC64 | 163 | #ifdef CONFIG_PPC_BOOK3S |
164 | ulong host_msr; | 164 | ulong host_msr; |
165 | ulong host_r2; | 165 | ulong host_r2; |
166 | void *host_retip; | 166 | void *host_retip; |
@@ -201,7 +201,7 @@ struct kvm_vcpu_arch { | |||
201 | #endif | 201 | #endif |
202 | 202 | ||
203 | ulong msr; | 203 | ulong msr; |
204 | #ifdef CONFIG_PPC64 | 204 | #ifdef CONFIG_PPC_BOOK3S |
205 | ulong shadow_msr; | 205 | ulong shadow_msr; |
206 | ulong shadow_srr1; | 206 | ulong shadow_srr1; |
207 | ulong hflags; | 207 | ulong hflags; |
@@ -283,7 +283,7 @@ struct kvm_vcpu_arch { | |||
283 | u64 dec_jiffies; | 283 | u64 dec_jiffies; |
284 | unsigned long pending_exceptions; | 284 | unsigned long pending_exceptions; |
285 | 285 | ||
286 | #ifdef CONFIG_PPC64 | 286 | #ifdef CONFIG_PPC_BOOK3S |
287 | struct hpte_cache hpte_cache[HPTEG_CACHE_NUM]; | 287 | struct hpte_cache hpte_cache[HPTEG_CACHE_NUM]; |
288 | int hpte_cache_offset; | 288 | int hpte_cache_offset; |
289 | #endif | 289 | #endif |
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index 957ceb7059c5..57a8c49c8830 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c | |||
@@ -426,8 +426,8 @@ int main(void) | |||
426 | DEFINE(VCPU_FAULT_DEAR, offsetof(struct kvm_vcpu, arch.fault_dear)); | 426 | DEFINE(VCPU_FAULT_DEAR, offsetof(struct kvm_vcpu, arch.fault_dear)); |
427 | DEFINE(VCPU_FAULT_ESR, offsetof(struct kvm_vcpu, arch.fault_esr)); | 427 | DEFINE(VCPU_FAULT_ESR, offsetof(struct kvm_vcpu, arch.fault_esr)); |
428 | 428 | ||
429 | /* book3s_64 */ | 429 | /* book3s */ |
430 | #ifdef CONFIG_PPC64 | 430 | #ifdef CONFIG_PPC_BOOK3S |
431 | DEFINE(VCPU_FAULT_DSISR, offsetof(struct kvm_vcpu, arch.fault_dsisr)); | 431 | DEFINE(VCPU_FAULT_DSISR, offsetof(struct kvm_vcpu, arch.fault_dsisr)); |
432 | DEFINE(VCPU_HOST_RETIP, offsetof(struct kvm_vcpu, arch.host_retip)); | 432 | DEFINE(VCPU_HOST_RETIP, offsetof(struct kvm_vcpu, arch.host_retip)); |
433 | DEFINE(VCPU_HOST_R2, offsetof(struct kvm_vcpu, arch.host_r2)); | 433 | DEFINE(VCPU_HOST_R2, offsetof(struct kvm_vcpu, arch.host_r2)); |
@@ -442,7 +442,7 @@ int main(void) | |||
442 | #else | 442 | #else |
443 | DEFINE(VCPU_CR, offsetof(struct kvm_vcpu, arch.cr)); | 443 | DEFINE(VCPU_CR, offsetof(struct kvm_vcpu, arch.cr)); |
444 | DEFINE(VCPU_XER, offsetof(struct kvm_vcpu, arch.xer)); | 444 | DEFINE(VCPU_XER, offsetof(struct kvm_vcpu, arch.xer)); |
445 | #endif /* CONFIG_PPC64 */ | 445 | #endif /* CONFIG_PPC_BOOK3S */ |
446 | #endif | 446 | #endif |
447 | #ifdef CONFIG_44x | 447 | #ifdef CONFIG_44x |
448 | DEFINE(PGD_T_LOG2, PGD_T_LOG2); | 448 | DEFINE(PGD_T_LOG2, PGD_T_LOG2); |
diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig index 8ef37664fda1..d864698860c6 100644 --- a/arch/powerpc/kvm/Kconfig +++ b/arch/powerpc/kvm/Kconfig | |||
@@ -31,7 +31,7 @@ config KVM_BOOK3S_64_HANDLER | |||
31 | 31 | ||
32 | config KVM_BOOK3S_64 | 32 | config KVM_BOOK3S_64 |
33 | tristate "KVM support for PowerPC book3s_64 processors" | 33 | tristate "KVM support for PowerPC book3s_64 processors" |
34 | depends on EXPERIMENTAL && PPC64 | 34 | depends on EXPERIMENTAL && PPC_BOOK3S_64 |
35 | select KVM | 35 | select KVM |
36 | select KVM_BOOK3S_64_HANDLER | 36 | select KVM_BOOK3S_64_HANDLER |
37 | ---help--- | 37 | ---help--- |
diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index c6db28cdc594..b608c0b0beb5 100644 --- a/arch/powerpc/kvm/emulate.c +++ b/arch/powerpc/kvm/emulate.c | |||
@@ -69,7 +69,7 @@ | |||
69 | #define OP_STH 44 | 69 | #define OP_STH 44 |
70 | #define OP_STHU 45 | 70 | #define OP_STHU 45 |
71 | 71 | ||
72 | #ifdef CONFIG_PPC64 | 72 | #ifdef CONFIG_PPC_BOOK3S |
73 | static int kvmppc_dec_enabled(struct kvm_vcpu *vcpu) | 73 | static int kvmppc_dec_enabled(struct kvm_vcpu *vcpu) |
74 | { | 74 | { |
75 | return 1; | 75 | return 1; |
@@ -86,7 +86,7 @@ void kvmppc_emulate_dec(struct kvm_vcpu *vcpu) | |||
86 | unsigned long dec_nsec; | 86 | unsigned long dec_nsec; |
87 | 87 | ||
88 | pr_debug("mtDEC: %x\n", vcpu->arch.dec); | 88 | pr_debug("mtDEC: %x\n", vcpu->arch.dec); |
89 | #ifdef CONFIG_PPC64 | 89 | #ifdef CONFIG_PPC_BOOK3S |
90 | /* mtdec lowers the interrupt line when positive. */ | 90 | /* mtdec lowers the interrupt line when positive. */ |
91 | kvmppc_core_dequeue_dec(vcpu); | 91 | kvmppc_core_dequeue_dec(vcpu); |
92 | 92 | ||
@@ -153,7 +153,7 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu) | |||
153 | 153 | ||
154 | switch (get_op(inst)) { | 154 | switch (get_op(inst)) { |
155 | case OP_TRAP: | 155 | case OP_TRAP: |
156 | #ifdef CONFIG_PPC64 | 156 | #ifdef CONFIG_PPC_BOOK3S |
157 | case OP_TRAP_64: | 157 | case OP_TRAP_64: |
158 | kvmppc_core_queue_program(vcpu, SRR1_PROGTRAP); | 158 | kvmppc_core_queue_program(vcpu, SRR1_PROGTRAP); |
159 | #else | 159 | #else |