diff options
author | Alexander Graf <agraf@suse.de> | 2012-02-16 09:34:55 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 05:55:08 -0400 |
commit | 73ede8d32be6adc298fe3c2716e77c352c504c8c (patch) | |
tree | bcdb5c6a80d11cc63715deef86866bc006756f6c /arch | |
parent | 8b3a00fcd3c9ea4e2cbae12af3cd8c9d7d1e109a (diff) |
KVM: PPC: bookehv: fix exit timing
When using exit timing stats, we clobber r9 in the NEED_EMU case,
so better move that part down a few lines and fix it that way.
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/bookehv_interrupts.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kvm/bookehv_interrupts.S b/arch/powerpc/kvm/bookehv_interrupts.S index e9e735057939..e4a117263357 100644 --- a/arch/powerpc/kvm/bookehv_interrupts.S +++ b/arch/powerpc/kvm/bookehv_interrupts.S | |||
@@ -83,10 +83,6 @@ | |||
83 | stw r10, VCPU_GUEST_PID(r4) | 83 | stw r10, VCPU_GUEST_PID(r4) |
84 | mtspr SPRN_PID, r8 | 84 | mtspr SPRN_PID, r8 |
85 | 85 | ||
86 | .if \flags & NEED_EMU | ||
87 | lwz r9, VCPU_KVM(r4) | ||
88 | .endif | ||
89 | |||
90 | #ifdef CONFIG_KVM_EXIT_TIMING | 86 | #ifdef CONFIG_KVM_EXIT_TIMING |
91 | /* save exit time */ | 87 | /* save exit time */ |
92 | 1: mfspr r7, SPRN_TBRU | 88 | 1: mfspr r7, SPRN_TBRU |
@@ -98,6 +94,10 @@ | |||
98 | PPC_STL r9, VCPU_TIMING_EXIT_TBU(r4) | 94 | PPC_STL r9, VCPU_TIMING_EXIT_TBU(r4) |
99 | #endif | 95 | #endif |
100 | 96 | ||
97 | .if \flags & NEED_EMU | ||
98 | lwz r9, VCPU_KVM(r4) | ||
99 | .endif | ||
100 | |||
101 | oris r8, r6, MSR_CE@h | 101 | oris r8, r6, MSR_CE@h |
102 | #ifndef CONFIG_64BIT | 102 | #ifndef CONFIG_64BIT |
103 | stw r6, (VCPU_SHARED_MSR + 4)(r11) | 103 | stw r6, (VCPU_SHARED_MSR + 4)(r11) |