Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2669153rwd; Wed, 14 Jun 2023 06:06:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7FLjhbWS3nlndyvOy6ayB6JEZaJFn7ltF1pRWXfsVGMqXD4Jtl0V0HH4dUhlHhLGZQA03+ X-Received: by 2002:aa7:da8f:0:b0:518:7913:c806 with SMTP id q15-20020aa7da8f000000b005187913c806mr3461634eds.30.1686747986470; Wed, 14 Jun 2023 06:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686747986; cv=none; d=google.com; s=arc-20160816; b=pCDeTRpx+S08bRwex/NzYhox56b7mPcjwn6r8xJhccv2kenRjLq/HpMGpATz/2ZYRf W6e/aYbv9nDV2Uka4BBlobXA/0Jsyc4i64H9ySjofvExhkxnv0uJ0iBC5BE4puebybTi AAYJ4c39t4hCDRexVJ/TY36X5kVjn7kKp9q6zppfQmIpzlfsjq/XZdMcpNuQcwLpOAkA 9OFXRtIWx4Ruigtqilye1YLHyhqFzdNeqbmiZH15pcrqF2Wd30OkJoNdYpxZFYlKU7Wj n9TdDKS440KCmEmHEXQpimQBTNHRmo/82pwSz+m6rd+mhpgryRAWQqo6Xe72JYX5B/cU H8mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=wQb4z5JVMfEidGknQD3xscf32z72ie53CeaTZ4MqnRo=; b=I6PvRtfpXvzSx0ogmkgTMTjuTHUKR/v4Aw8FYkLq39a+2jTSACEckCzOtGyH8zRsPT ov7P0N+D4uRq4MipLch4epRBXTpiWphd2EPG8V51QFbn8muNcIwLIn9CiyWobz65cZ1y RmHya767a4jOV/HNiXiEu8t+CZwlGKPo2QlrW4c8Okuh783er4uqEUq05nORIZ5eWpCg dzQ7JZovzwo9EkFe4eDxgkgvU2ZRtyGVJnY84fkdWH3S4jN/ZDbdV1oAoC+ciJgKgT84 l9wB++YnYife7sirIeWTN/7l3VTkg23NSHmwHIpwu/5FFrSBn7KwM6YLDeY4ITOZ+QEM an1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=VDJHBwbn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020aa7cf82000000b0051892aa662dsi764144edx.186.2023.06.14.06.05.07; Wed, 14 Jun 2023 06:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=VDJHBwbn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244529AbjFNMXs (ORCPT + 99 others); Wed, 14 Jun 2023 08:23:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244601AbjFNMXk (ORCPT ); Wed, 14 Jun 2023 08:23:40 -0400 Received: from out-58.mta0.migadu.com (out-58.mta0.migadu.com [IPv6:2001:41d0:1004:224b::3a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E55B519A5 for ; Wed, 14 Jun 2023 05:23:39 -0700 (PDT) Date: Wed, 14 Jun 2023 12:23:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1686745418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wQb4z5JVMfEidGknQD3xscf32z72ie53CeaTZ4MqnRo=; b=VDJHBwbnWvVpVV2I5wdZ1dSmkV4OW6DcXGB7WkRvbQbH6ER5gTv95Aul+DGOp3MA8pjOAX 0zLmfb5AUIxalCYMg97MGheRtghN8tPVWj5eSM3htLfyZm7zxBgdLPibhTnINAzEYZORpr wAQ4FhHqgISs2x21TFI+MTTB8WH2WY8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Sean Christopherson Cc: Wei Wang , pbonzini@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Zyngier , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH RESEND v2] KVM: move KVM_CAP_DEVICE_CTRL to the generic check Message-ID: References: <20230315101606.10636-1-wei.w.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 13, 2023 at 02:16:16PM -0700, Sean Christopherson wrote: > + > > Please use scripts/get_maintainer.pl to generate the To/Cc lists. This may be > trivial, but it still needs eyeballs from the relevant maintainers. +1000. I'd buy someone a beer if they made a bot that just ran get_maintainer on patches that hit the list :) > On Wed, Mar 15, 2023, Wei Wang wrote: > > KVM_CAP_DEVICE_CTRL allows userspace to check if the kvm_device > > framework (e.g. KVM_CREATE_DEVICE) is supported by KVM. Move > > KVM_CAP_DEVICE_CTRL to the generic check for the two reasons: > > 1) it already supports arch agnostic usages (i.e. KVM_DEV_TYPE_VFIO). > > For example, userspace VFIO implementation may needs to create > > KVM_DEV_TYPE_VFIO on x86, riscv, or arm etc. It is simpler to have it > > checked at the generic code than at each arch's code. > > 2) KVM_CREATE_DEVICE has been added to the generic code. > > > > Link: https://lore.kernel.org/all/20221215115207.14784-1-wei.w.wang@intel.com > > Signed-off-by: Wei Wang > > Reviewed-by: Sean Christopherson > > --- > > arch/arm64/kvm/arm.c | 1 - > > arch/powerpc/kvm/powerpc.c | 1 - > > arch/riscv/kvm/vm.c | 1 - > > arch/s390/kvm/kvm-s390.c | 1 - > > virt/kvm/kvm_main.c | 1 + > > 5 files changed, 1 insertion(+), 4 deletions(-) > > > > diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c > > index 3bd732eaf087..96329e675771 100644 > > --- a/arch/arm64/kvm/arm.c > > +++ b/arch/arm64/kvm/arm.c > > @@ -202,7 +202,6 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) > > r = vgic_present; > > break; > > case KVM_CAP_IOEVENTFD: > > - case KVM_CAP_DEVICE_CTRL: > > case KVM_CAP_USER_MEMORY: > > case KVM_CAP_SYNC_MMU: > > case KVM_CAP_DESTROY_MEMORY_REGION_WORKS: for arm64: Reviewed-by: Oliver Upton -- Thanks, Oliver