Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307847
b: refs/heads/master
c: c0fe7b0
h: refs/heads/master
i:
  307845: ce30d4b
  307843: a14fd2f
  307839: ce8b474
v: v3
  • Loading branch information
Bharat Bhushan authored and Avi Kivity committed Apr 8, 2012
1 parent 89eec4a commit f255305
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0456ec4ff2b832ab9ff476ed687fea704500f1cd
refs/heads/master: c0fe7b099931c6c05c98a05c277185ee25254f35
11 changes: 8 additions & 3 deletions trunk/arch/powerpc/kvm/bookehv_interrupts.S
Original file line number Diff line number Diff line change
Expand Up @@ -580,22 +580,27 @@ lightweight_exit:
mtlr r3
mtxer r5
mtctr r6
mtcr r7
mtsrr0 r8
mtsrr1 r9

#ifdef CONFIG_KVM_EXIT_TIMING
/* save enter time */
1:
mfspr r6, SPRN_TBRU
mfspr r7, SPRN_TBRL
mfspr r9, SPRN_TBRL
mfspr r8, SPRN_TBRU
cmpw r8, r6
PPC_STL r7, VCPU_TIMING_LAST_ENTER_TBL(r4)
PPC_STL r9, VCPU_TIMING_LAST_ENTER_TBL(r4)
bne 1b
PPC_STL r8, VCPU_TIMING_LAST_ENTER_TBU(r4)
#endif

/*
* Don't execute any instruction which can change CR after
* below instruction.
*/
mtcr r7

/* Finish loading guest volatiles and jump to guest. */
PPC_LL r5, VCPU_GPR(r5)(r4)
PPC_LL r6, VCPU_GPR(r6)(r4)
Expand Down

0 comments on commit f255305

Please sign in to comment.