aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorSuresh Warrier <[email protected]>2016-08-19 15:35:46 +1000
committerPaul Mackerras <[email protected]>2016-09-09 16:25:25 +1000
commit37f55d30df2eef89b97d627e5830beb6983c4101 (patch)
tree18142e71cb5a8cb8f1cf418c4f9028d46176c2e9 /lib/test-string_helpers.c
parent99212c864e1f6d2800e62bc8c52d6335bfca029f (diff)
KVM: PPC: Book3S HV: Convert kvmppc_read_intr to a C function
Modify kvmppc_read_intr to make it a C function. Because it is called from kvmppc_check_wake_reason, any of the assembler code that calls either kvmppc_read_intr or kvmppc_check_wake_reason now has to assume that the volatile registers might have been modified. This also adds in the optimization of clearing saved_xirr in the case where we completely handle and EOI an IPI. Without this, the next device interrupt will require two trips through the host interrupt handling code. [[email protected] - made kvmppc_check_wake_reason create a stack frame when it is calling kvmppc_read_intr, which means we can set r12 to the trap number (0x500) after the call to kvmppc_read_intr, instead of using r31. Also moved the deliver_guest_interrupt label so as to restore XER and CTR, plus other minor tweaks.] Signed-off-by: Suresh Warrier <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions