Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322258
b: refs/heads/master
c: 04f995a
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mackerras authored and Alexander Graf committed Aug 16, 2012
1 parent c552d52 commit 86f1e77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 439793d4b3c99e550daebd868bbd58967c93d0b3
refs/heads/master: 04f995a544d1289ffb8108849cd71b1325c5af6a
12 changes: 7 additions & 5 deletions trunk/arch/powerpc/kvm/book3s_hv_rmhandlers.S
Original file line number Diff line number Diff line change
Expand Up @@ -1421,13 +1421,13 @@ _GLOBAL(kvmppc_h_cede)
sync /* order setting ceded vs. testing prodded */
lbz r5,VCPU_PRODDED(r3)
cmpwi r5,0
bne 1f
bne kvm_cede_prodded
li r0,0 /* set trap to 0 to say hcall is handled */
stw r0,VCPU_TRAP(r3)
li r0,H_SUCCESS
std r0,VCPU_GPR(R3)(r3)
BEGIN_FTR_SECTION
b 2f /* just send it up to host on 970 */
b kvm_cede_exit /* just send it up to host on 970 */
END_FTR_SECTION_IFCLR(CPU_FTR_ARCH_206)

/*
Expand All @@ -1446,7 +1446,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_ARCH_206)
or r4,r4,r0
PPC_POPCNTW(R7,R4)
cmpw r7,r8
bge 2f
bge kvm_cede_exit
stwcx. r4,0,r6
bne 31b
li r0,1
Expand Down Expand Up @@ -1555,15 +1555,17 @@ kvm_end_cede:
b hcall_real_fallback

/* cede when already previously prodded case */
1: li r0,0
kvm_cede_prodded:
li r0,0
stb r0,VCPU_PRODDED(r3)
sync /* order testing prodded vs. clearing ceded */
stb r0,VCPU_CEDED(r3)
li r3,H_SUCCESS
blr

/* we've ceded but we want to give control to the host */
2: li r3,H_TOO_HARD
kvm_cede_exit:
li r3,H_TOO_HARD
blr

secondary_too_late:
Expand Down

0 comments on commit 86f1e77

Please sign in to comment.