]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: PPC: Book3S HV: Use XICS hypercalls when running as a nested hypervisor
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 8 Oct 2018 05:31:05 +0000 (16:31 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Oct 2018 05:04:27 +0000 (16:04 +1100)
commitf3c18e9342a443528137a303f3c391d42d3bb394
tree688bbc803689e5c06bb38d29a9807d1084826dd9
parent360cae313702cdd0b90f82c261a8302fecef030a
KVM: PPC: Book3S HV: Use XICS hypercalls when running as a nested hypervisor

This adds code to call the H_IPI and H_EOI hypercalls when we are
running as a nested hypervisor (i.e. without the CPU_FTR_HVMODE cpu
feature) and we would otherwise access the XICS interrupt controller
directly or via an OPAL call.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_builtin.c
arch/powerpc/kvm/book3s_hv_rm_xics.c