]> git.baikalelectronics.ru Git - kernel.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)
commit38a6865dcb0005c80e15a2d85f25e72f48b4e98e
tree688bbc803689e5c06bb38d29a9807d1084826dd9
parentab4fb3f9301288180b15abcd6b77efc095423e44
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