From patchwork Wed Apr 26 12:13:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Mackerras X-Patchwork-Id: 9701289 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BA0C760245 for ; Wed, 26 Apr 2017 12:13:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A28992811E for ; Wed, 26 Apr 2017 12:13:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97677285F3; Wed, 26 Apr 2017 12:13:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B0E128159 for ; Wed, 26 Apr 2017 12:13:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2998512AbdDZMNh (ORCPT ); Wed, 26 Apr 2017 08:13:37 -0400 Received: from ozlabs.org ([103.22.144.67]:52663 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2993580AbdDZMNg (ORCPT ); Wed, 26 Apr 2017 08:13:36 -0400 Received: by ozlabs.org (Postfix, from userid 1003) id 3wCfB61pPXz9sCX; Wed, 26 Apr 2017 22:13:34 +1000 (AEST) Date: Wed, 26 Apr 2017 22:13:30 +1000 From: Paul Mackerras To: Michael Ellerman Cc: linuxppc-dev@ozlabs.org, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org, benh@kernel.crashing.org Subject: Re: [PATCH v3] KVM: PPC: Book3S HV: Native usage of the XIVE interrupt controller Message-ID: <20170426121330.GA12057@fergus.ozlabs.ibm.com> References: <1493172450-19636-1-git-send-email-mpe@ellerman.id.au> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1493172450-19636-1-git-send-email-mpe@ellerman.id.au> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Apr 26, 2017 at 12:07:30PM +1000, Michael Ellerman wrote: > From: Benjamin Herrenschmidt > > 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 > [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 The Kconfig stuff for KVM_XIVE is wrong, you need: on top of what you posted. Paul. 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