]> 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)
commit321d9fc3dc4a9c4769446c676e5c6f5c6c9baa73
tree688bbc803689e5c06bb38d29a9807d1084826dd9
parentf1e67fa047b189573a3e458d11f8e3baf75282a2
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