Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp324328ybg; Sun, 26 Jul 2020 05:49:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+xTySc+UA7yJ/pA2phCGHuZP0iah2lFGYXs3JknmoL/OCRODoxeqIDsuscnTW/g0ZHz4f X-Received: by 2002:a17:906:af43:: with SMTP id ly3mr16640738ejb.381.1595767786787; Sun, 26 Jul 2020 05:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595767786; cv=none; d=google.com; s=arc-20160816; b=mNMCO8fq0LbMPbkZU51vlopUQBbyqBdJJiBjVCDd5AIoHZbn/vhhNGFVd3rjGozRXY fo39dE6aOwL+50eNrOQRJ4OLorVuKhDuWInh+Sp3GNekQawspmUm+Uv5fIOaV9vkDu/d dbRb6PfPPSgXibvBM/G57kNMT892M44zOg2noES777EXqZs4PFXm0rL83mVj3JgYmZK0 Oqz8il6hYUasPLqkNN8mRR0ilKez7pTAmrKJBaRl4IOY2xw8x4nj1ZBodE0gqT63/OJh vK977YjsiXGzi8xMm/ki1ZlahdCtwEARpxgy6tMuX95S3RKPHz5Z+QJKoOBIOXYL68J0 TLLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rCLczGQIxWKiTkxHU6NiarIhxc9Z+JmjQxED80qEJss=; b=ziHqgoGfbiyypSdU1ol3nXhSzMMxdLzsLo/LKg7PataC5P/j34luznHdhUVBFG4HBr 8KgP/T6f51PLWpWQOBtUsx8VZdIs7UTnyOA8XBcSNT+vrnxXU8MO0um14wFXXmkU3nHC ekYwjg7UcreRfnA26ZDonTjQKhD4KIiUgyzBzNVvkS/VKp4JZ4L2Hck2qRYWmK4UsJT0 YxnRu1UFdQFeacJifB2ECYqXLXN7csP7sxud6EMfgjzpReJgFMY3O4mM0mQpnNVq+kWl EYuL8AS+UY1IfLVitS63zT0BP1J3aX1/6fjXZQspDQMic8fDbvuAQqbfjMEQgGI5buOC t+vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=gwsElXHX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si3686331ejk.745.2020.07.26.05.49.24; Sun, 26 Jul 2020 05:49:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=gwsElXHX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbgGZMsw (ORCPT + 99 others); Sun, 26 Jul 2020 08:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726956AbgGZMsw (ORCPT ); Sun, 26 Jul 2020 08:48:52 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2D2FC0619D4 for ; Sun, 26 Jul 2020 05:48:51 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id 3so5202632wmi.1 for ; Sun, 26 Jul 2020 05:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rCLczGQIxWKiTkxHU6NiarIhxc9Z+JmjQxED80qEJss=; b=gwsElXHX2E2bUDww3ab3IoZnn76R5AZW2fLMad++U/SfNz2BQysjn9tmQWLc68si09 vjvfu12vgyKudVHKrUiZ5jfldqlKc8Wj28ZbK0upIQvgG5/tXeW3EpZimmGZGW2ExcKJ qP553zFfDrJdUvHw8f0LhdqsapqLZD7UtlzRre2tgNZMRe2O+1x8zy1B8/0hCRv1kHxv YPkUSzFVgMQNOnLyjSHr+G4o/H9zQ9UtallmpbnPciV2SfNw8hqZ5/VHB4SBaosZh/vD 01OTENe/iN0DPo/jtmvNS4QD/YrdszGynX1Fb+bIQnmFxhzWGbsV1U1nzbekl4PX/7Qr NIcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rCLczGQIxWKiTkxHU6NiarIhxc9Z+JmjQxED80qEJss=; b=r3t6EziME14sbfy9rzSkt5W+tGo6SJIapHdFd0cUXCs2sqt1yTbeX/eseL0MtupJuA eFbMt9KvhJGyXLYJoUBPbZPw06DoCLsSL1QODGGG+uyPvRkaFsrIHYSpIC/pj/maIzP+ ttt8zflZT3Yq/atL3svrXD76Mutdi+KVsZH/YI+/jnWN3Pz15nQo7AgrKVBrlEhX2Col vVRiDdsxulo8pf5dRQp5R/7mFJAT1u7zgQqouZ8N5QZw552cve2yaCqz3e1L8axLNz1n v4SDEPDUVeDFLtQYI17g5ts8aiRYunca9qY5BtjwP9ROeumJuaiRTxyTuKShPzwCFkCM CwGQ== X-Gm-Message-State: AOAM533rYVNq77EdHYW6kf4Ag8I2tyGIRA87Q/QP7tOV6vd7182qVSky 6xQqZfldWNX71c7kKLlzkuTV49giCTM3EqTCsRQ5uw== X-Received: by 2002:a1c:6689:: with SMTP id a131mr5266820wmc.157.1595767730427; Sun, 26 Jul 2020 05:48:50 -0700 (PDT) MIME-Version: 1.0 References: <20200724085441.1514-1-jiangyifei@huawei.com> <20200724085441.1514-2-jiangyifei@huawei.com> In-Reply-To: <20200724085441.1514-2-jiangyifei@huawei.com> From: Anup Patel Date: Sun, 26 Jul 2020 18:18:38 +0530 Message-ID: Subject: Re: [RFC 1/2] RISC-V: KVM: enable ioeventfd capability and compile for risc-v To: Yifei Jiang Cc: Paolo Bonzini , Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , KVM General , kvm-riscv@lists.infradead.org, linux-riscv , "linux-kernel@vger.kernel.org List" , "Zhangxiaofeng (F)" , wu.wubin@huawei.com, Zhanghailiang , "dengkai (A)" , limingwang@huawei.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please change subject to: "RISC-V: KVM: enable ioeventfd capability" Also add 1-2 sentences of commit description. On Fri, Jul 24, 2020 at 2:25 PM Yifei Jiang wrote: > > Signed-off-by: Yifei Jiang > Signed-off-by: Mingwang Li > --- > arch/riscv/kvm/Kconfig | 2 ++ > arch/riscv/kvm/Makefile | 2 +- > arch/riscv/kvm/vm.c | 1 + > 3 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/arch/riscv/kvm/Kconfig b/arch/riscv/kvm/Kconfig > index 2356dc52ebb3..95d85d893ab6 100644 > --- a/arch/riscv/kvm/Kconfig > +++ b/arch/riscv/kvm/Kconfig > @@ -4,6 +4,7 @@ > # > > source "virt/kvm/Kconfig" > +source "drivers/vhost/Kconfig" > > menuconfig VIRTUALIZATION > bool "Virtualization" > @@ -26,6 +27,7 @@ config KVM > select KVM_MMIO > select HAVE_KVM_VCPU_ASYNC_IOCTL > select SRCU > + select HAVE_KVM_EVENTFD > help > Support hosting virtualized guest machines. > > diff --git a/arch/riscv/kvm/Makefile b/arch/riscv/kvm/Makefile > index b56dc1650d2c..3ad46fe44900 100644 > --- a/arch/riscv/kvm/Makefile > +++ b/arch/riscv/kvm/Makefile > @@ -2,7 +2,7 @@ > # Makefile for RISC-V KVM support > # > > -common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o) > +common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o eventfd.o) > > ccflags-y := -Ivirt/kvm -Iarch/riscv/kvm > > diff --git a/arch/riscv/kvm/vm.c b/arch/riscv/kvm/vm.c > index 4f2498198cb5..473299e71f68 100644 > --- a/arch/riscv/kvm/vm.c > +++ b/arch/riscv/kvm/vm.c > @@ -52,6 +52,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) > int r; > > switch (ext) { > + case KVM_CAP_IOEVENTFD: > case KVM_CAP_DEVICE_CTRL: > case KVM_CAP_USER_MEMORY: > case KVM_CAP_SYNC_MMU: > -- > 2.19.1 > > Regards, Anup