summaryrefslogtreecommitdiff
path: root/arch/powerpc/kvm/booke.h
diff options
context:
space:
mode:
authorSuresh Warrier <warrier@linux.vnet.ibm.com>2015-03-20 09:39:47 (GMT)
committerAlexander Graf <agraf@suse.de>2015-04-21 13:21:30 (GMT)
commitb0221556dbd3c31c47f37703f856aeeffc78abd3 (patch)
tree1bc8e3c6ea9e03e1c1310d9798348c9cfa3d1e10 /arch/powerpc/kvm/booke.h
parent34cb7954c0aa7c8ad1591cb6cceae36432f55bb5 (diff)
downloadlinux-b0221556dbd3c31c47f37703f856aeeffc78abd3.tar.xz
KVM: PPC: Book3S HV: Move virtual mode ICP functions to real-mode
Interrupt-based hypercalls return H_TOO_HARD to inform KVM that it needs to switch to the host to complete the rest of hypercall function in virtual mode. This patch ports the virtual mode ICS/ICP reject and resend functions to be runnable in hypervisor real mode, thus avoiding the need to switch to the host to execute these functions in virtual mode. However, the hypercalls continue to return H_TOO_HARD for vcpu_wakeup and notify events - these events cannot be done in real mode and they will still need a switch to host virtual mode. There are sufficient differences between the real mode code and the virtual mode code for the ICS/ICP resend and reject functions that for now the code has been duplicated instead of sharing common code. In the future, we can look at creating common functions. Signed-off-by: Suresh Warrier <warrier@linux.vnet.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/booke.h')
0 files changed, 0 insertions, 0 deletions