Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4430150rwl; Mon, 3 Apr 2023 05:04:36 -0700 (PDT) X-Google-Smtp-Source: AKy350byN2RYV+NXIvBleA5yK1kHoshp4o8CCe2aH8DF8I9gv0DKUCWb/6XF+BoREmYYgZC3w+2m X-Received: by 2002:a05:6402:5149:b0:4fa:8aa4:8d8b with SMTP id n9-20020a056402514900b004fa8aa48d8bmr31218153edd.7.1680523476628; Mon, 03 Apr 2023 05:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680523476; cv=none; d=google.com; s=arc-20160816; b=PBo/GznxwxWGP9SPKgUTcLh/2HEXoDqJz+bpI/UKezePkTq0Ts6WkYvPD/dpwnPRil njFmK6Sz0pzNgreKAC/4T32aNJKIbwbRuNz/vi8YvMA9MyjHsjDXrlRm+l4iINyWjuIm ZoXw/ys71lkg+Yvw4iNmhU3H3TFS6RfMkrhiE5jAC57tF7C6wKTK+PDB0SPB9nQu/DSS SDQEiFtBPyS3p3XsLszJYNBVdOC/LWshcJADmetR1psGnT8ghCDZKLtLHjRF8sENAr7V yuW611CRkcDcTVQQBIe32Z0cZBpzDilnch2cMdZsGFtR9kp3xNVIdVPVMpMsaJAK7og4 fKxQ== 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:date:dkim-signature; bh=cXOk+fnfr4jL/j1ia/s9JVKXSdrK1PkwEI4HTOkD6GA=; b=afKy7Kt3JJIxllbSGb0YQxdyRwz45VewyFy0QmHQIMR16p2VQRTriM//aO+M9q7Xeg 218v7LuovxPSHJWWC8rpLpSi4fsMhYh0KppyBbNXZ5iyeayGKBKvUfp6fHjvAuKBu77S hDxJl1H3SHRoUYd8TX6QYBuLRfGiK0ghkyAZ/+n3ktu05MxLh0fZPKaBXrlHuiUvq+tU rQh4fxV9TJtcAA63jNlK8h34nRO2IEeA2jCeFe9aoxTCGGjvFwhx9LyA9Hnp/hGZAUJc RLstqlKWycJrTbxZn/m0Qgt0I3Irk77RyLKj46rcfkeuTF/rq6X20Ueb+ngeSP1NrNvo gLcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=Aiyl6AAy; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x10-20020aa7daca000000b00502259be703si7158081eds.434.2023.04.03.05.04.11; Mon, 03 Apr 2023 05:04:36 -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=@ventanamicro.com header.s=google header.b=Aiyl6AAy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232251AbjDCMA4 (ORCPT + 99 others); Mon, 3 Apr 2023 08:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjDCMAw (ORCPT ); Mon, 3 Apr 2023 08:00:52 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52E4193F9 for ; Mon, 3 Apr 2023 05:00:51 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id n10-20020a05600c4f8a00b003ee93d2c914so19334702wmq.2 for ; Mon, 03 Apr 2023 05:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1680523250; 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=cXOk+fnfr4jL/j1ia/s9JVKXSdrK1PkwEI4HTOkD6GA=; b=Aiyl6AAyRbBt5w0rsfEa85x8cuTauU+/JxQJwXYkwafXZXGnKlUf0Gp0IXrnu7TeZ1 9K3WCHmVt5IM6Cn3dAkIs2IZmocG0PkOYE3cXt4X25eU6VuLThHari/ghOqiEKga0rr+ I2n3jXj5c5Poaeolks2xVGHbQAY1A/PfL4Is9a9VRSfwvEfnlfEqk4hZLac+QHxwFLjf 3Ymg9hWUOKUpUH9AaSZLjVxbRy7qRy2d1iiPK1RxWAJOW3XkU0VyLPXN3JgHHYWsSE7N vtSYfpZk8N/z4oSvdgaLSvq/NahW1rAISSabz7CdpDbCuiTqL6dVweY3Q9CN87xie2Gg GmbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680523250; 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=cXOk+fnfr4jL/j1ia/s9JVKXSdrK1PkwEI4HTOkD6GA=; b=B/a0IHOjW1hMR9mL1GrVMZHcKQo5QPOEQhAozaYzwbu/nXxW3PIsZkNHVGVREDGmce +pD/lWVOt3BK+OCtNtdB81hzGFVQNoYHJWQVoGJEyrsqjRnfEu9fPJnoN3t3wolFOGeF uzKt2KaxR75EPRVS4cSvkQCM8ERkiAC4i4xx3JLPX+O1E/icDBvIDbHxf4NlbMe5Shi9 n/ZGCVzLaqYyNk43KbbLV4E6wXplrQ1njVdsEPfqcFlFtgk1R/ndmpcKOwIfoXLxiQP7 M1sfMnU8jS0ZAybUc4pSURZZNWyIdQWihFtR/nRPv2XUIV841XVuizPJNweVq9l4m41O NMqw== X-Gm-Message-State: AAQBX9fsMkufZvVrLcIH5oX9QQS0upWp/NQh4vGjndd/HsbC0yK825bH +fpWa8BsXj2YfmrHkLWoKgig1w== X-Received: by 2002:a1c:7215:0:b0:3ef:d8c6:4bc0 with SMTP id n21-20020a1c7215000000b003efd8c64bc0mr13027828wmc.40.1680523249871; Mon, 03 Apr 2023 05:00:49 -0700 (PDT) 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 v8-20020a05600c470800b003ef71d7d64asm19405599wmo.6.2023.04.03.05.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 05:00:49 -0700 (PDT) Date: Mon, 3 Apr 2023 14:00:48 +0200 From: Andrew Jones To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Atish Patra Subject: Re: [PATCH v3 4/8] RISC-V: KVM: Initial skeletal support for AIA Message-ID: <3v5mew46z4kfa3kq4c5gdx72k7qh35qtk3tez26jthnbuygf2t@zy2lukq75ugv> References: <20230403093310.2271142-1-apatel@ventanamicro.com> <20230403093310.2271142-5-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230403093310.2271142-5-apatel@ventanamicro.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Mon, Apr 03, 2023 at 03:03:06PM +0530, Anup Patel wrote: > To incrementally implement AIA support, we first add minimal skeletal > support which only compiles and detects AIA hardware support at the > boot-time but does not provide any functionality. > > Signed-off-by: Anup Patel > Reviewed-by: Atish Patra > --- > arch/riscv/include/asm/hwcap.h | 6 ++ > arch/riscv/include/asm/kvm_aia.h | 109 ++++++++++++++++++++++++++++++ > arch/riscv/include/asm/kvm_host.h | 7 ++ > arch/riscv/kvm/Makefile | 1 + > arch/riscv/kvm/aia.c | 66 ++++++++++++++++++ > arch/riscv/kvm/main.c | 22 +++++- > arch/riscv/kvm/vcpu.c | 40 ++++++++++- > arch/riscv/kvm/vcpu_insn.c | 1 + > arch/riscv/kvm/vm.c | 4 ++ > 9 files changed, 252 insertions(+), 4 deletions(-) > create mode 100644 arch/riscv/include/asm/kvm_aia.h > create mode 100644 arch/riscv/kvm/aia.c > Reviewed-by: Andrew Jones Thanks, drew