Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7534524rdb; Wed, 3 Jan 2024 22:07:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6alQ7VH69oF2Nke0Ukt0GcZ5XRalL3U6Whq1/gP5ATCJRU+ovVMcrHRWpYkHwoWCOiqaU X-Received: by 2002:a05:6a00:10cb:b0:6da:147d:dfe8 with SMTP id d11-20020a056a0010cb00b006da147ddfe8mr137422pfu.1.1704348439065; Wed, 03 Jan 2024 22:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704348439; cv=none; d=google.com; s=arc-20160816; b=qvmuqYz0PuT6Mdk486fKU8yjNfENiBQjE2+IefaeXGts9ECI0isu8pr1udBXNliB1N eJkuH9r55BqLApFApFsrnb2ytvGEpBdc133qXiv/Yay0h6NgeRwEMeRIrCO+s+7eMhFU O7gdyh0a76K+txjJuWzWnwyladsTqYotHMTu7eocAxQ+xYBJWTaci8uI2lTvjQIkgyO3 8VFwtYc4PaEgx/fZCLgWqokteKp8yDVb4xCiGTA4GFnkH5bQloUOY6K+mgVuMnjRS1Gp 4zIby3hnj/sl0iMzVqQ0ukBhzNRMjyvSo/+PM1i3GrbsPML+coynjJkag1hFRk+23DsN tPSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=WHH7EjkqAp4gv4LEq1uUq0Aky/vKU/3Flfj3XeBndLY=; fh=auTDBJLmZSdjE40rMR7CueRENjVABMbSM5am/t58k48=; b=k88vh0NYiaeC41yQNhbQfR7reNZ+RJQ+X7LV6XTE+ppM0QmepVXawXKqp8eJmduRF4 xMML9l8O4hJtEfGxjIEVmLalyEYl5E6AvrjoMAuaLNiE2Jy/4fCMFnSlUf5EPUhNrkEc ZIT3G0QNTgy9ZgpkbgNfMn2e7+7AI/sqGQ+aSfrOPzCa4jDtxzKDIAMkbFmMHs0mkQEg 9B0XFdKDoGLpOqDuqi6EIYCD/hOpjvJhcWqmOcN0psNWwUrWTuD7SXBqs47o31ft2aeA z/aLiTJCrFxUb4Q4hmDZ0DNgYjWrtJOmBfn/Qlb9CaR9Aue0a1naDjwiqxpEOOzz5Zml 7v2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1QRK1wQ2; spf=pass (google.com: domain of linux-kernel+bounces-16274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16274-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bw19-20020a056a00409300b006d9af1fcfbbsi17886762pfb.114.2024.01.03.22.07.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 22:07:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1QRK1wQ2; spf=pass (google.com: domain of linux-kernel+bounces-16274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16274-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7EBCFB21CFB for ; Thu, 4 Jan 2024 06:07:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF8FA1DFCB; Thu, 4 Jan 2024 06:06:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="1QRK1wQ2" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B2A01D68E; Thu, 4 Jan 2024 06:06:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=WHH7EjkqAp4gv4LEq1uUq0Aky/vKU/3Flfj3XeBndLY=; b=1QRK1wQ2+BzwBdOIALghzMO+ie k5F/PyUFVVzAw65jMQcC5zjWToU/ZB9UVwIw2fCLSsgZUxcPW18XhVJbps0TDRbq5GUEghbNHvc64 wZ30HAw+sZOJ/0LeZr6qKFTLKlDaoiOGSZhSFx19eYBQy6MLrmyoy3LZQ8CGmjpUfUy6Lb3+VW7xE b8dRsuddWyeE/DUf9ugMzsaS5nm9GC4NvnL9ZdO7vR4CTfg2JMzBBbT1mvugm6RPmweAg/tfgeWDd ZFRRKETsb/guzT3SJcisYK+vnIsH8VxX+qLBr1Y8a52urV37Oc3llxre/gkEKQfDlfbeUxsufHZbM 0Cw8TBFg==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rLGsX-00Cwt8-0b; Thu, 04 Jan 2024 06:06:53 +0000 Message-ID: <1ab4ff24-4e67-43d7-90b7-0131182b7e1f@infradead.org> Date: Wed, 3 Jan 2024 22:06:52 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: linux-next: Tree for Jan 2 (riscv & KVM problem) To: Andrew Jones Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , KVM list , linux-riscv References: <20240102165725.6d18cc50@canb.auug.org.au> <44907c6b-c5bd-4e4a-a921-e4d3825539d8@infradead.org> <20240103-d2201c92e97755a4bb438bc3@orel> Content-Language: en-US From: Randy Dunlap In-Reply-To: <20240103-d2201c92e97755a4bb438bc3@orel> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/3/24 07:18, Andrew Jones wrote: > On Tue, Jan 02, 2024 at 10:07:21AM -0800, Randy Dunlap wrote: >> >> >> On 1/1/24 21:57, Stephen Rothwell wrote: >>> Hi all, >>> >>> Changes since 20231222: >>> >> >> It is possible for a riscv randconfig to create a .config file with >> CONFIG_KVM enabled but CONFIG_HAVE_KVM is not set. >> Is that expected? >> >> CONFIG_HAVE_KVM_IRQCHIP=y >> CONFIG_HAVE_KVM_IRQ_ROUTING=y >> CONFIG_KVM_MMIO=y >> CONFIG_HAVE_KVM_MSI=y >> CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y >> CONFIG_HAVE_KVM_VCPU_ASYNC_IOCTL=y >> CONFIG_KVM_XFER_TO_GUEST_WORK=y >> CONFIG_KVM_GENERIC_HARDWARE_ENABLING=y >> CONFIG_KVM_GENERIC_MMU_NOTIFIER=y >> CONFIG_VIRTUALIZATION=y >> CONFIG_KVM=m >> >> Should arch/riscv/kvm/Kconfig: "config KVM" select HAVE_KVM >> along with the other selects there or should that "config KVM" >> depend on HAVE_KVM? > > We probably should add a patch which makes RISCV select HAVE_KVM and > KVM depend on HAVE_KVM in order for riscv kvm to be consistent with > the other KVM supporting architectures. > Yes, I agree. >> >> >> The problem .config file causes build errors because EVENTFD >> is not set: >> >> ../arch/riscv/kvm/../../../virt/kvm/eventfd.c: In function 'kvm_irqfd_assign': >> ../arch/riscv/kvm/../../../virt/kvm/eventfd.c:335:19: error: implicit declaration of function 'eventfd_ctx_fileget'; did you mean 'eventfd_ctx_fdget'? [-Werror=implicit-function-declaration] >> 335 | eventfd = eventfd_ctx_fileget(f.file); >> | ^~~~~~~~~~~~~~~~~~~ >> | eventfd_ctx_fdget >> ../arch/riscv/kvm/../../../virt/kvm/eventfd.c:335:17: warning: assignment to 'struct eventfd_ctx *' from 'int' makes pointer from integer without a cast [-Wint-conversion] >> 335 | eventfd = eventfd_ctx_fileget(f.file); >> | ^ >> > > Hmm. riscv kvm selects HAVE_KVM_EVENTFD, which selects EVENTFD. I'm > not sure how the lack of HAVE_KVM is leading to this. The "select HAVE_KVM_EVENTFD" is gone in linux-next. -- #Randy