Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp271615lqg; Thu, 11 Apr 2024 02:14:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIFtssk++2Ptl6zxPV/GZHP3tUrpWxYPsMZozaXm2EKFMsGV8GjUBYWsX1nprjj+pJha4Ub0zE5tB4L9ImSl5H75y+5jKpSFfYLChDLg== X-Google-Smtp-Source: AGHT+IHo1U5lekoPmZSL2jVbqvO2A0ldcypIUakOts2YcdfpBpxHiuKl3I9oT1kBmOVt0pdaOLaU X-Received: by 2002:a17:906:6d0:b0:a51:cde7:4130 with SMTP id v16-20020a17090606d000b00a51cde74130mr3003090ejb.52.1712826840529; Thu, 11 Apr 2024 02:14:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712826840; cv=pass; d=google.com; s=arc-20160816; b=vHbj3AFGBf1BmXa+xFFmlR1z/zT/2wXvSQjBAnkuhJDePlvppJbUkalV6ruBkcL1CZ 5VnK9r7FvNWz3oUQ8G9GBa2WdY+M0aEqSaVUutk5y8PegGO8gAYU2/NZ9dNDw555KCYz ybuQgow3BVJuH3eZnFXAwGJB68qn4Pbkmd7L8g0CEeqHLQpGzQZbUaTF8NE+SKdxo5Pb kuhi3se4KkWWfXOwuuc/ewqjs2ijLWdPqRPQ7sv8HXsvICQEyGomdslzxD64yDRqqi1D 3FhdEhayGhmd5Lb2XHHqLYjQu8oqoJAylK0VZremcVhLnQLtoNEFLKXxVV43oKf8r/ZP e/YA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=CBhqQGQ9V37via17GNYW/9Ko6M+5Uqp4L2VsS7G79oA=; fh=16tTHTXlDmB+pkR0jKqNe5y2OHM8S4Pu2meuAfgLFfc=; b=WdLnTF3+9C0zP4ZMn2VnyWMFHdTJlbObN0kUFzDfpBSxWeZaBoKTE9DTa6FzurH32E 3OmhNxwqrmEL+k+XSgkE1N8jekSDc7RZ4rhPKNgVF3RPPVWMTDYpOTnJI3lvukOjQEq6 fdP7FGbIGRoYy5duMeCEJSZkAi+QHE2IuJxGii8Z9c7UsFsHnuN6ZOQSWW03G8LwCtJ+ M8JnxlOqDrh10sX74hbWZwU82SjMT3cC+CfCISN9uOhidi2AJmPjKvN7uzBNgpMJz+Qf OMa9mFym0dSIop2m9JqszfmSS1HRIui69hJu+aiKr6+d+Myc//+6ufoNK+hprez10IKU Psng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="RlREm/a+"; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-140136-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140136-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gt37-20020a1709072da500b00a51c4d610e5si587870ejc.641.2024.04.11.02.14.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 02:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140136-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="RlREm/a+"; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-140136-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140136-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4538C1F277B6 for ; Thu, 11 Apr 2024 09:06:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7C78143C62; Thu, 11 Apr 2024 09:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="RlREm/a+" Received: from mail-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) (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 6FC2A13DDC3 for ; Thu, 11 Apr 2024 09:06:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712826410; cv=none; b=r9xc9hKPeamRy0R/xNQjUii0Pq/bsy6+CM4hqFhSteXJ1g1jSLXFEy9IK3YA3aenXKH+PMvvCiOoT76uH5ImvEP3VAB58/STf0oLY6WKk34sn3py+rcKCQNVHv2tv4FNNZmX+OvdgveZU1JTjIrpqY5gCi8j1/6hFrYgB9a5af8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712826410; c=relaxed/simple; bh=6DbO2IfX4foKh9Xb3n4eNqJb7FJipbHuEUEhvFPlwPc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ihfArm9yVLB3q//TBJem2OfZ9VzU5lK22r6G55aW8poIelLYxl+RZCVQzMD4hOtbvCp0SVi9P9M225VRRjKnc+mOsGbQZ4wejMScm1L4baYDjD4awVmIFjNsYNqR1dOWPdGLgsZ/xxw/Q3TXqcEXXustYRjwenU60wCi7Nc3VDw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=RlREm/a+; arc=none smtp.client-ip=209.85.160.46 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-oa1-f46.google.com with SMTP id 586e51a60fabf-22a96054726so6179013fac.0 for ; Thu, 11 Apr 2024 02:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1712826408; x=1713431208; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CBhqQGQ9V37via17GNYW/9Ko6M+5Uqp4L2VsS7G79oA=; b=RlREm/a+ZFZ67ldxqDWSLX0njC+wMkESc9RDwWLmT+TgPzD0ReMrHav/xfTvBNZOsi VhHvIH3kRagoWCO4QOJuLOO+9uVrq5SvsWKJTZ//b/ShwVJZpax0eBYG1DW9P6WXHMVt KcfAgScxDtdj9UYoI+4kN9xlBZ2su7qBGgqSIcXyvpghy3Y4YH7JG93EH3DWvBBdkoe5 DNpmgjkqDS1stZRt3qDE7s9hJov2HVLozBJLAJTvjOIpo9UQa8xftWUsJP0Z4JFasH9x lWpfgcr1pO1CWqEBVSpGlddspXcGHzXuQPN3I8M6zrjf6fmPJ3jPT84Um0z8jGyhq1m1 o1OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712826408; x=1713431208; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CBhqQGQ9V37via17GNYW/9Ko6M+5Uqp4L2VsS7G79oA=; b=b0jg3hsxeXtUDHHmT/Ma3yhAF27zGuzIdS6FnkBNuYCpPR58AP/GRf7NSq2ynoFdKj 8kLYJ9NleIb1AGuPeoonel82LEB3c9RrTHB0WHlZauUsgunHBKppWQSbtXT23nHV5itr qj4m+C5pJGF5q0LmF9WCPbl5jZx0nS47XE8bWIdB4aUtu/wZiqFoFQfbsj7M2+EFfn2R djrCffbwRF9TbioBXFB+A74jH6Zg0dMazGlKk4XAsIWvM37KRAwsQ//qkX2bayxtHHiV hLhFB3qMdagBsSJ1Q+E9Cxty3qoiRlwzudRggv5eV5lR7zF+gunVlwhx6grJJyZBVRP/ 2RdA== X-Forwarded-Encrypted: i=1; AJvYcCVYJuLSQF9IqGRl71kEMSPuvpJFgoTHOvFJoAAHxo+1YzxOfQIlxB3CqpfbjD8LuG1poZIiXuUNYxIvwTcoa+eUkFwH33OenpPgMRm3 X-Gm-Message-State: AOJu0Yzdx6bB0q1VeauA+S8SCG7AlMYYWoUrWPlSaU56zjLn+LWHzBgY XaloLSlTPqro/QvLzC6u81B1c+/Rqk1feqN9nTlP1fVDirC2wPmS/VY5YJLVe78= X-Received: by 2002:a05:6871:5c6:b0:22e:c48a:bfda with SMTP id v6-20020a05687105c600b0022ec48abfdamr5675910oan.28.1712826408430; Thu, 11 Apr 2024 02:06:48 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([171.76.82.118]) by smtp.gmail.com with ESMTPSA id e21-20020aa78c55000000b006e729dd12d5sm816738pfd.48.2024.04.11.02.06.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 02:06:48 -0700 (PDT) From: Anup Patel To: Palmer Dabbelt , Paul Walmsley Cc: Atish Patra , Andrew Jones , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [PATCH 0/2] KVM RISC-V HW IMSIC guest files Date: Thu, 11 Apr 2024 14:36:37 +0530 Message-Id: <20240411090639.237119-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series extends the HWACCEL and AUTO modes of AIA in-kernel irqchip to use HW IMSIC guest files whenever underlying host supports it. This series depends upon the "Linux RISC-V AIA support" series which is already queued for Linux-6.10. (Refer, https://lore.kernel.org/lkml/20240307140307.646078-1-apatel@ventanamicro.com/) These patches can also be found in the riscv_kvm_aia_hwaccel_v1 branch at: https://github.com/avpatel/linux.git Anup Patel (2): RISC-V: KVM: Share APLIC and IMSIC defines with irqchip drivers RISC-V: KVM: Use IMSIC guest files when available arch/riscv/include/asm/kvm_aia_aplic.h | 58 -------------------------- arch/riscv/include/asm/kvm_aia_imsic.h | 38 ----------------- arch/riscv/kvm/aia.c | 35 +++++++++------- arch/riscv/kvm/aia_aplic.c | 2 +- arch/riscv/kvm/aia_device.c | 2 +- arch/riscv/kvm/aia_imsic.c | 2 +- 6 files changed, 24 insertions(+), 113 deletions(-) delete mode 100644 arch/riscv/include/asm/kvm_aia_aplic.h delete mode 100644 arch/riscv/include/asm/kvm_aia_imsic.h -- 2.34.1