Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7585956rdb; Thu, 4 Jan 2024 00:45:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFx83YBGYgMx9d+ky+rAtt5Zhyv64xhTpbm6mp+7kcfcQ6sS60cASqLRVRckUqlm4LQoxDe X-Received: by 2002:a17:902:a3cd:b0:1d3:edd9:1f13 with SMTP id q13-20020a170902a3cd00b001d3edd91f13mr233220plb.67.1704357927827; Thu, 04 Jan 2024 00:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704357927; cv=none; d=google.com; s=arc-20160816; b=c/CKNt36XmfcM791aFeKaglgy4DFXz29dESgrPcA5qu3gcWGZfvVthc2v1cmzqEz5G TSuIlynslwLsic3csRVkBbDnUxJGECWiOEI82LcQVJHatfnldl9InInUAhI1e5DjBIW4 NBNOsCFtaI/M9l+6tkZcjJhgv++5Kgy7bIlGz9pv3z45aJyO9oxqQ6zxzHt112QtTcjZ ILQxfyAHluIReTHrbMcw0+tkDC8AVo/9C6dW3kvgQi8s3TqWkBVs7LNWHoKgIl7kh9mE Y/PtaQ5aI6tbGPAY5TG/leRFxIO377P0n7zDCpN5e+Tu1OEyTgtS2KuuEHCg+GcuvR9N EHEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4epjjtWpm5YSGmP4xrJiMs2lpLIiDHgjuHx9R0clTd0=; fh=/HF8JWQAGpb7L6CH91F6JbLC3vfuEyAHXj89B9jtoAo=; b=bldxMpMRVvjc58835Wz4GcNq96285WXZHrwZ7PZ7s5eYXS6AgRj07Mb8LYYO2jplnw IqOSY2EhyMSj/cURKvT7cNEIpfOVdj5tC8nQFgVqtwqe0QbyRfSBz9T+z3S74ct+sKMN JTSW62BuJHuzqxjOOCpY/EduD0AK/xxurWG2Js7v0MDguLbg1bUQGm30IzrF7rePVEYv i/+fqEZPSEDqV+/Qhv/L1GfSnGpj81keSm5J59twrfALvpA5gNDpclmdrbBQ/aJ4CTf1 jQxO7fqwTb43IA70/RHCUNoEHU+/+ffitKaofWrityTCnrcQqoj849PZeOSEXcrec6Tj JTLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=XWcNLihg; spf=pass (google.com: domain of linux-kernel+bounces-16389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16389-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o19-20020a170902779300b001d422836acasi20318708pll.460.2024.01.04.00.45.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 00:45:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=XWcNLihg; spf=pass (google.com: domain of linux-kernel+bounces-16389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16389-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F2A64285A78 for ; Thu, 4 Jan 2024 08:45:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5440220B04; Thu, 4 Jan 2024 08:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="XWcNLihg" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD3D8208D5 for ; Thu, 4 Jan 2024 08:44:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a28ec136715so14547466b.1 for ; Thu, 04 Jan 2024 00:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1704357850; x=1704962650; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4epjjtWpm5YSGmP4xrJiMs2lpLIiDHgjuHx9R0clTd0=; b=XWcNLihgoPOU5IF0tSPtEphDetwFJv86rqW7qH3B20GNpQvf30nx2qCqc+r1awmw0h dswcM8MiyNuPd8TWv6VbXSgRDFX33czq9n3xRa6ApB3T5aEmKMZjoW4ggYYiE1rGlAef fHX702aIZP1kbuWR7Do1isuPeyGpGRMsdi0wIYEcdI3QHBlroGfXgRs/I5PPyn0GQ15n vCqTZJPvsIhdCeom1cBdp0mEO461sbgg3OXWbMvM1Yg86imhnEn21/TeQkD3Glefz5GR EwypUfskmpOK00xNyGUSVVSSasnkfVnlxf22ErnJJ2N5BHT7hirzjRkaks6rGDpU1K2z hTUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704357850; x=1704962650; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4epjjtWpm5YSGmP4xrJiMs2lpLIiDHgjuHx9R0clTd0=; b=JLxwLBrciJCGZ1VzAOQ8R1Fv1CPc7RXPKpv/9JdFjJkHicoXdEbM/uh5217xiaN0vg 1zKlfM/5VRgv091aR5ZZg2LuEzfBTZIfPSPftrRKOqQdKRFdB4amrl0S9fOW0IVffZvj ym1+sXpsTpjwnAdvonaB3+5Brj8cC72qnwRsBjP3VwyoCi467UIeqHMTtt9Q6OmEegLE zJ+2at2/kTucb5A5gKyoA/+fuKMfXvKDZvHUzuqzSfYbl8TgU2q4VkA/TBVVcwIXcIk9 qatZhO5k7Mj+aHfFAfBbRJ7tNvF/Ka8tdqc6ypoLMXTwcifS5+ir5OXg6Qh/afJXmMg8 w+6Q== X-Gm-Message-State: AOJu0YzjA4SUDTLxujqa/eLca1crkNfaBlfMFLhbQJg7q1fAYLjF8LIR WCMtO0T4w8ovN8SHjmdWr53VOvhhOpHUrk2Ehqg7QgH0O4I= X-Received: by 2002:a17:906:a3d6:b0:a28:a940:5305 with SMTP id ca22-20020a170906a3d600b00a28a9405305mr122872ejb.6.1704357850151; Thu, 04 Jan 2024 00:44:10 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id d3-20020a1709063ec300b00a280944f775sm3460797ejj.153.2024.01.04.00.44.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 00:44:09 -0800 (PST) Date: Thu, 4 Jan 2024 09:44:08 +0100 From: Andrew Jones To: Randy Dunlap Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , KVM list , linux-riscv Subject: Re: Re: linux-next: Tree for Jan 2 (riscv & KVM problem) Message-ID: <20240104-b82c16721dab11facda797db@orel> References: <20240102165725.6d18cc50@canb.auug.org.au> <44907c6b-c5bd-4e4a-a921-e4d3825539d8@infradead.org> <20240103-d2201c92e97755a4bb438bc3@orel> <1ab4ff24-4e67-43d7-90b7-0131182b7e1f@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1ab4ff24-4e67-43d7-90b7-0131182b7e1f@infradead.org> On Wed, Jan 03, 2024 at 10:06:52PM -0800, Randy Dunlap wrote: > > > 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. Doh, sorry about looking at the wrong tree... I'll send a patch for riscv kvm now. Thanks, drew