[PATCH v3] KVM: PPC: Book3S HV: Native usage of the XIVE interrupt controller

Paul Mackerras paulus at ozlabs.org
Wed Apr 26 22:13:30 AEST 2017


On Wed, Apr 26, 2017 at 12:07:30PM +1000, Michael Ellerman wrote:
> From: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> 
> This patch makes KVM capable of using the XIVE interrupt controller
> to provide the standard PAPR "XICS" style hypercalls. It is necessary
> for proper operations when the host uses XIVE natively.
> 
> This has been lightly tested on an actual system, including PCI
> pass-through with a TG3 device.
> 
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> [mpe: Cleanup pr_xxx(), unsplit pr_xxx() strings, etc., fix build
>  failures by adding KVM_XIVE which depends on KVM_XICS and XIVE, and
>  adding empty stubs for the kvm_xive_xxx() routines, fixup subject]
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>

The Kconfig stuff for KVM_XIVE is wrong, you need:

diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig
index 6498424..c56939e 100644
--- a/arch/powerpc/kvm/Kconfig
+++ b/arch/powerpc/kvm/Kconfig
@@ -200,7 +200,7 @@ config KVM_XICS
 config KVM_XIVE
 	bool
 	default y
-	depends on KVM_XICS && XIVE_NATIVE
+	depends on KVM_XICS && PPC_XIVE_NATIVE
 
 source drivers/vhost/Kconfig
 
on top of what you posted.

Paul.


More information about the Linuxppc-dev mailing list