diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2008-11-05 10:36:18 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:52:22 -0500 |
commit | db93f5745d836f81cef0b4101a7c2685eeb55efb (patch) | |
tree | 970b0dfc93dbbe25eb988b008bbbeffd866f3f23 /arch/powerpc/kvm/booke_interrupts.S | |
parent | 5cbb5106f50b4515815cd32cf944958c0d4da83f (diff) |
KVM: ppc: create struct kvm_vcpu_44x and introduce container_of() accessor
This patch doesn't yet move all 44x-specific data into the new structure, but
is the first step down that path. In the future we may also want to create a
struct kvm_vcpu_booke.
Based on patch from Liu Yu <yu.liu@freescale.com>.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/booke_interrupts.S')
-rw-r--r-- | arch/powerpc/kvm/booke_interrupts.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kvm/booke_interrupts.S b/arch/powerpc/kvm/booke_interrupts.S index 95e165baf85f..8d6929b7fdb6 100644 --- a/arch/powerpc/kvm/booke_interrupts.S +++ b/arch/powerpc/kvm/booke_interrupts.S | |||
@@ -349,8 +349,8 @@ lightweight_exit: | |||
349 | lis r5, tlb_44x_hwater@ha | 349 | lis r5, tlb_44x_hwater@ha |
350 | lwz r5, tlb_44x_hwater@l(r5) | 350 | lwz r5, tlb_44x_hwater@l(r5) |
351 | mtctr r5 | 351 | mtctr r5 |
352 | addi r9, r4, VCPU_SHADOW_TLB | 352 | addi r9, r4, -VCPU_TO_44X + VCPU44x_SHADOW_TLB |
353 | addi r5, r4, VCPU_SHADOW_MOD | 353 | addi r5, r4, -VCPU_TO_44X + VCPU44x_SHADOW_MOD |
354 | li r3, 0 | 354 | li r3, 0 |
355 | 1: | 355 | 1: |
356 | lbzx r7, r3, r5 | 356 | lbzx r7, r3, r5 |
@@ -377,7 +377,7 @@ lightweight_exit: | |||
377 | /* Clear bitmap of modified TLB entries */ | 377 | /* Clear bitmap of modified TLB entries */ |
378 | li r5, PPC44x_TLB_SIZE>>2 | 378 | li r5, PPC44x_TLB_SIZE>>2 |
379 | mtctr r5 | 379 | mtctr r5 |
380 | addi r5, r4, VCPU_SHADOW_MOD - 4 | 380 | addi r5, r4, -VCPU_TO_44X + VCPU44x_SHADOW_MOD - 4 |
381 | li r6, 0 | 381 | li r6, 0 |
382 | 1: | 382 | 1: |
383 | stwu r6, 4(r5) | 383 | stwu r6, 4(r5) |