From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Kardashevskiy Subject: Re: [PATCH kernel 9/9] KVM: PPC: VFIO device: support SPAPR TCE Date: Fri, 8 Apr 2016 19:13:06 +1000 Message-ID: <57077622.4000002@ozlabs.ru> References: <1457322077-26640-1-git-send-email-aik@ozlabs.ru> <1457322077-26640-10-git-send-email-aik@ozlabs.ru> <20160309054544.GM22546@voom.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r; format=flowed Content-Transfer-Encoding: 7bit Cc: linuxppc-dev@lists.ozlabs.org, Paul Mackerras , Alex Williamson , kvm-ppc@vger.kernel.org, kvm@vger.kernel.org To: David Gibson Return-path: Received: from mail-pa0-f67.google.com ([209.85.220.67]:35707 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757550AbcDHJNO (ORCPT ); Fri, 8 Apr 2016 05:13:14 -0400 Received: by mail-pa0-f67.google.com with SMTP id zy2so8696873pac.2 for ; Fri, 08 Apr 2016 02:13:14 -0700 (PDT) In-Reply-To: <20160309054544.GM22546@voom.fritz.box> Sender: kvm-owner@vger.kernel.org List-ID: On 03/09/2016 04:45 PM, David Gibson wrote: >> diff --git a/arch/powerpc/kvm/Makefile b/arch/powerpc/kvm/Makefile >> index 7f7b6d8..71f577c 100644 >> --- a/arch/powerpc/kvm/Makefile >> +++ b/arch/powerpc/kvm/Makefile >> @@ -8,7 +8,7 @@ ccflags-y := -Ivirt/kvm -Iarch/powerpc/kvm >> KVM := ../../../virt/kvm >> >> common-objs-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o \ >> - $(KVM)/eventfd.o $(KVM)/vfio.o >> + $(KVM)/eventfd.o > > Please don't disable the VFIO device for the non-book3s case. I added > it (even though it didn't do anything until now) so that libvirt > wouldn't choke when it finds it's not available. Obviously the new > ioctl needs to be only for the right IOMMU setup, but the device > itself should be available always. After having a closer look, the statement above does not enable VFIO KVM device on book3s but does for everything else: common-objs-$(CONFIG_KVM_VFIO) += $(KVM)/vfio.o [...] kvm-e500-objs := \ $(common-objs-y) \ [...] kvm-objs-$(CONFIG_KVM_E500V2) := $(kvm-e500-objs) [...] kvm-e500mc-objs := \ $(common-objs-y) \ [...] kvm-objs-$(CONFIG_KVM_E500MC) := $(kvm-e500mc-objs) [...] kvm-book3s_32-objs := \ $(common-objs-y) \ [...] kvm-objs-$(CONFIG_KVM_BOOK3S_32) := $(kvm-book3s_32-objs) This is becaise CONFIG_KVM_BOOK3S_64 does not use "common-objs-y": kvm-objs-$(CONFIG_KVM_BOOK3S_64) := $(kvm-book3s_64-module-objs) So I will keep vfio.o in the "common-objs-y" list and add: +kvm-book3s_64-objs-$(CONFIG_KVM_VFIO) += \ + $(KVM)/vfio.o -- Alexey