diff options
author | Mihai Caraman <mihai.caraman@freescale.com> | 2012-10-11 02:13:20 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-12-05 19:34:10 -0500 |
commit | ff594746845877c0a6402be23897df659188eacb (patch) | |
tree | bc22aab5d7519d5c97fdd95a5a693fe01c616c98 /arch/powerpc/kvm/bookehv_interrupts.S | |
parent | b50df19cccdd169d5345b5169699446b80ee051a (diff) |
KVM: PPC: bookehv: Remove GET_VCPU macro from exception handler
GET_VCPU define will not be implemented for 64-bit for performance reasons
so get rid of it also on 32-bit.
Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/bookehv_interrupts.S')
-rw-r--r-- | arch/powerpc/kvm/bookehv_interrupts.S | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/powerpc/kvm/bookehv_interrupts.S b/arch/powerpc/kvm/bookehv_interrupts.S index 099fe8272b57..fa6d5529ebfb 100644 --- a/arch/powerpc/kvm/bookehv_interrupts.S +++ b/arch/powerpc/kvm/bookehv_interrupts.S | |||
@@ -32,9 +32,6 @@ | |||
32 | 32 | ||
33 | #include "../kernel/head_booke.h" /* for THREAD_NORMSAVE() */ | 33 | #include "../kernel/head_booke.h" /* for THREAD_NORMSAVE() */ |
34 | 34 | ||
35 | #define GET_VCPU(vcpu, thread) \ | ||
36 | PPC_LL vcpu, THREAD_KVM_VCPU(thread) | ||
37 | |||
38 | #define LONGBYTES (BITS_PER_LONG / 8) | 35 | #define LONGBYTES (BITS_PER_LONG / 8) |
39 | 36 | ||
40 | #define VCPU_GUEST_SPRG(n) (VCPU_GUEST_SPRGS + (n * LONGBYTES)) | 37 | #define VCPU_GUEST_SPRG(n) (VCPU_GUEST_SPRGS + (n * LONGBYTES)) |
@@ -206,7 +203,7 @@ | |||
206 | */ | 203 | */ |
207 | .macro kvm_handler intno srr0, srr1, flags | 204 | .macro kvm_handler intno srr0, srr1, flags |
208 | _GLOBAL(kvmppc_handler_\intno\()_\srr1) | 205 | _GLOBAL(kvmppc_handler_\intno\()_\srr1) |
209 | GET_VCPU(r11, r10) | 206 | PPC_LL r11, THREAD_KVM_VCPU(r10) |
210 | PPC_STL r3, VCPU_GPR(R3)(r11) | 207 | PPC_STL r3, VCPU_GPR(R3)(r11) |
211 | mfspr r3, SPRN_SPRG_RSCRATCH0 | 208 | mfspr r3, SPRN_SPRG_RSCRATCH0 |
212 | PPC_STL r4, VCPU_GPR(R4)(r11) | 209 | PPC_STL r4, VCPU_GPR(R4)(r11) |
@@ -233,7 +230,7 @@ _GLOBAL(kvmppc_handler_\intno\()_\srr1) | |||
233 | .macro kvm_lvl_handler intno scratch srr0, srr1, flags | 230 | .macro kvm_lvl_handler intno scratch srr0, srr1, flags |
234 | _GLOBAL(kvmppc_handler_\intno\()_\srr1) | 231 | _GLOBAL(kvmppc_handler_\intno\()_\srr1) |
235 | mfspr r10, SPRN_SPRG_THREAD | 232 | mfspr r10, SPRN_SPRG_THREAD |
236 | GET_VCPU(r11, r10) | 233 | PPC_LL r11, THREAD_KVM_VCPU(r10) |
237 | PPC_STL r3, VCPU_GPR(R3)(r11) | 234 | PPC_STL r3, VCPU_GPR(R3)(r11) |
238 | mfspr r3, \scratch | 235 | mfspr r3, \scratch |
239 | PPC_STL r4, VCPU_GPR(R4)(r11) | 236 | PPC_STL r4, VCPU_GPR(R4)(r11) |