Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1892910pxb; Tue, 26 Oct 2021 18:54:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEBR69dIBifypN/3lFccrXtQY8hSwdwrnAr1A7rIt9UckKK3FRGqXH0IZRBL5euvr7df7V X-Received: by 2002:a17:90b:3e8e:: with SMTP id rj14mr2665203pjb.170.1635299686734; Tue, 26 Oct 2021 18:54:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635299686; cv=pass; d=google.com; s=arc-20160816; b=u+bcjeoTZlhTlt717uPSnaG2gZlQRIxyhB5WxgcmUyPMTg8cvyyMxqfTU+15sGQpJL r+9ySTs40LTEE+vGLy6ikvMnN5uWsDsXDlSqazqwUL9lk6ZNdP/zDr5OMynVsmoSB0Mm fnNGQuCuEvBQX8QCTmPk0f/pJFaKxpP1XwRmmuI0mHVUtFJ1MvJ571fY3+AAmgqOdW1+ v0ZVJZO4p0Ei0dOSmcb2sKwrVE/w/xt5ts57K3xxYL65XSsaQLVKdFliVt3TNsDH5Lu6 Dkjr78icaD1rnhtFVan9wdPvZEcQ0IR7z7+QpkG5Nv9jb7ORpJURk6k8UO2i4KuSNtff 0enw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:wdcipoutbound:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=MQfcLXej1QKeheX2IshEZ0/P5+ML7Vd669XAu9BsiuY=; b=RgKB9XXQ+HPvl8CPlGaqAlhBXlvmLeisVTWN6CAK0lt7ecKz7LCfhzWa2m7zZc2Boi eO8mdZuLfV/kG9P94qrPk0eQC5SkMu9p7gne9WaWXRO1sJTtq9gJJD6q1eLHurN5UHUU df0WIvmUfg0f7OJ/ZJ2uSy5AqhzR6TlHaUSdKtw2OYbcI4MT4QGZIEfL9kyKqjpjLgeW W1gr7NZ8SshBdNtTSKaSEGzIPqkfkXdxrQlik3N4cKFU3YLybXFzzhh5u8QDFqnhUjt3 7uSq8ZSmyqXXW1mR22Vy+unHL6HPqdYueB/ZbsmopklETxHLp1cgZIMVunmLHvf64Tts zJew== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=EKGlYJE3; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=XAECyDUD; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si3892704pgb.298.2021.10.26.18.54.01; Tue, 26 Oct 2021 18:54: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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=EKGlYJE3; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=XAECyDUD; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237695AbhJZRGR (ORCPT + 99 others); Tue, 26 Oct 2021 13:06:17 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:17062 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237672AbhJZRGQ (ORCPT ); Tue, 26 Oct 2021 13:06:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1635267832; x=1666803832; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=9ucWaaESS2CsdgeNVZ34STd8kfV1gwN6Hz4NHkKn+zo=; b=EKGlYJE3gvKQ15KURULNrxeo4Z4v/4NxqC1PBFiIEAzGRLthkNJeXLAv lyNJ0VnqQJyBk8kbkCydx3DKfwSROZctg9DW0pQOHzbfKmvJ1sxCrU9TH B4JK+GNmNS9Et9NXXaUyLJGqm0zu9CCsJi4jn77SgoUNSTW66ZHArkQ8z 7kY/QoBwFQ9Y8C8l0YsfselENQ+883W6bdgj7TLUM0u61Fgd8tss15PeC JlPiKXK1g/iHhUf+Vqh6ZKEp3JbvAh9aE3R+UvdjnMLgp1AvdsJWppat5 pzcR2rPr736ru6v1uexUfodvu1QxSk2s9ENCVzfRvcW0234ru1QXQmPm3 g==; X-IronPort-AV: E=Sophos;i="5.87,184,1631548800"; d="scan'208";a="295633709" Received: from mail-bn8nam12lp2175.outbound.protection.outlook.com (HELO NAM12-BN8-obe.outbound.protection.outlook.com) ([104.47.55.175]) by ob1.hgst.iphmx.com with ESMTP; 27 Oct 2021 01:03:01 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=agEbAJVtlsYKiJ/+0Xj8DEwDbUttgrm+iWIiiGY4zdkzH8cFQOKW/GsudR5QYpUhenIF8ipvBo/Qai4+aNFqL6f9aNbHVI8aFLOAKceEG7tEsVRKGLAlhp5AUKGx9z1PYGAWfZ2qk+NH2UqypYj3wFztqwVD2gCiPlX71CEykb2RPj1l+IOaFVKQX9wOHxb+btdnZSO6XCUZ5Qf/TK8zDhefM3i2uQ96NmAZ3vg2upAvCzh4jc5Wv0+KPgbZO7dOmQy2VJlWhE73KuLZHYsMi4+xsprYIR+PdD0KMUJ1LYkCPvklLvUHh5PPNv4XROqCgz7IDUtJZVD6eFUYHPyKRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MQfcLXej1QKeheX2IshEZ0/P5+ML7Vd669XAu9BsiuY=; b=Buaa7EUaD4KXgzpP0W8FaUJFinEbbS5BXj8iqP+o1qnktLay9XvDpNzjKENHP8xSe75JXNAFumFzc81TYgS1tpS/0WnhbNeWtXz/utfdGJGu3LfqoC4bshUr9luWd4C1/Kkzlosm3SH56Jl3KH0bo2C+h0nlxUGtp2KaKSZ7gp3Ks+hDotG/RkMlf1c1SMY5nFUc7vOpzx4VGI0gIFs5+a7AQN+b7R80l0peL7eC3xNopQWMJ8oDPWtYZGwSoJb+7+bFtvYoDacvCl0YJOhaKISgYZ1vWojKtDNeGLWld3CLtqWvCVCBba7b1d5IdFcg06SH8mMnJ+kthluurZWZFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MQfcLXej1QKeheX2IshEZ0/P5+ML7Vd669XAu9BsiuY=; b=XAECyDUDAXi36O0w3Y2tgde9ru2GWXk6ofJXuRKIsJnmjKBkCQQ8fhJeyU+xQ8oNBRDMPrYACHe97IZa1kiN8zDNJt/5+luWgw9YAv5GyC/1/ONTbK5AjHvta6AHrc2GRk6P4x6jh69yfnvLs4naoANiULkAnPMzhwzSfDs63Xw= Authentication-Results: dabbelt.com; dkim=none (message not signed) header.d=none;dabbelt.com; dmarc=none action=none header.from=wdc.com; Received: from CO6PR04MB7812.namprd04.prod.outlook.com (2603:10b6:303:138::6) by CO6PR04MB8314.namprd04.prod.outlook.com (2603:10b6:303:135::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.13; Tue, 26 Oct 2021 17:02:59 +0000 Received: from CO6PR04MB7812.namprd04.prod.outlook.com ([fe80::8100:4308:5b21:8d97]) by CO6PR04MB7812.namprd04.prod.outlook.com ([fe80::8100:4308:5b21:8d97%8]) with mapi id 15.20.4649.014; Tue, 26 Oct 2021 17:02:59 +0000 From: Anup Patel To: Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: Paolo Bonzini , Atish Patra , 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/3] RISC-V: KVM: Few assorted changes Date: Tue, 26 Oct 2021 22:31:33 +0530 Message-Id: <20211026170136.2147619-1-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MA1PR0101CA0018.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::28) To CO6PR04MB7812.namprd04.prod.outlook.com (2603:10b6:303:138::6) MIME-Version: 1.0 Received: from wdc.com (122.162.126.221) by MA1PR0101CA0018.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18 via Frontend Transport; Tue, 26 Oct 2021 17:02:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9a0c20d0-1f3a-4d02-f976-08d998a27685 X-MS-TrafficTypeDiagnostic: CO6PR04MB8314: X-Microsoft-Antispam-PRVS: WDCIPOUTBOUND: EOP-TRUE X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 06dOmV1e0EdELHTyRzijvsWYwMkLVTFbIFei1u3Z4Kso9VwfE/m4Hwe1KfOLMU+olJ1qTt73FEi9R4dagr8ZHlVX3I33PX+2inzISsdvXb2MIuEEjMABaZkS6Cp/XKPXIDI4iVo/Xb1vG2adcjR0XoVeGnle7cO0wvLFWD6gY1cj9kJ+F4xwPQdMq84FeOv0XrKnB9mx/gFaSaWIja7APB70gpcVAUbo+k5PdksZf5mkwFT6Zmry4U6uyR2mC1q6Oo73kgzEPPjYmN8a/0O/wqPzPQiXpR2ckzcWts4W2FDmFegAb4BOfh5dcCWFs5s1gBXklcoUT+XmUQFjAVAlxG/xhYSMCI5kqW+8VC1fgSwU/ZqBa8T9Zcf6sR7cTSG70EE0iIPQGwlnsfmkB589iyinJCiTvWfKdkuxYACR56Hf+u2GLCV4w8nkwMdi1C9Q984z2NyM8DnY3xs1mCRrqbzvA9At3E0zlRtxk4Xj8uA/ZusUhYc+MyxV65P2kU3FuKtrBKmYrxOCpIymkypnLCCjswl7vPYRgPcS1gP9nVXLLS5PilhuqdX08c55cAGgrxyboC9jKgCH2fUFtYAmx3iO7LwPaIKyUbu5ZTJdLIX780K/jc0IDUmOx5Id1/7xAVNFSi730BsVSMICl0wVM+vJS0r/owvWNLs+zVt1JuhaA6uxb8EGlmG6s/64Dvyx6sPwnDmNvLcsLSJ2tPjuZ3VB0gU0QotJmliFH/nSz+GjOxzPvVtdDIf3fSAj2QSUIGiem4kiUP1deU6zIVsM5jPNf+Xethyx3FKY5nvJRk8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR04MB7812.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(6666004)(4326008)(5660300002)(26005)(44832011)(2906002)(956004)(966005)(52116002)(2616005)(8886007)(38350700002)(7696005)(55016002)(83380400001)(186003)(4744005)(38100700002)(82960400001)(54906003)(110136005)(316002)(8676002)(8936002)(7416002)(36756003)(86362001)(66556008)(508600001)(66476007)(66946007)(1076003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?bQAtJvZuuYecxMLr1DELn7bK6x1I2myf5O419kFv0xfib7BzlRzSl5CqcEDN?= =?us-ascii?Q?z44JvNNu/LQOztJIKTAh3wQW2mImDr39E2LhV925FirxoJ1/HM8kR74pX2y/?= =?us-ascii?Q?oIAce5us0s6Zbvrt5DBnxwU5ETDuSxNWKmJURWm0FcU8G/3N/9Ji0NAS82oU?= =?us-ascii?Q?i5RhXcoaCX6yi783CvkBXKu/4r4uXoytkPgx0WzUUktlusQ9VxcxYPUo3R0A?= =?us-ascii?Q?Zr1qp8W8yj/cGjP04h0lhWFXAErI+JMrircFamz07yQuK/wv6+znQ7QYhjLf?= =?us-ascii?Q?u+ZKM3ru1ugOHyXyYK/AyayoFmyGa0neEAc6Xf8zdYFpbPgYSM/p9l6aIs5A?= =?us-ascii?Q?j5F5CZ3NPQjlwZ548XnHG0HB7r2SCM4YHb8iuyWbvs8uUGVEPmWYzPV7AIYO?= =?us-ascii?Q?WuQcQFwcHOJSI10qjRLf3JgTFaH8cvVyfc2VWXLkYBlUikRGzPO1pEln+Ezu?= =?us-ascii?Q?1rrzaLUy54ES8biQexbOpHOwXSY+dtViymNG5FE7UmbLi4BHGQkth1w4fQsD?= =?us-ascii?Q?aNV1r97AAchiuiSOmQnKWbQWJ6DeaL97nRa7xXrT+h8tkwsIDzDxCHbKbIWJ?= =?us-ascii?Q?u54tqfqJwFphytiVrRRzQgBcfflLDrQ8XfZ04+ORHpUD5jrfMSUdu3/7reKi?= =?us-ascii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UQfjt+64lrAnH3KW9s1v6wJ97L?= =?us-ascii?Q?M1CxtWbdlzzkYgF42puqu3dwQoqad7JhcABJcqVOR4eTA6+7tAFffBdPNdPs?= =?us-ascii?Q?gS0aWXMFiqXrPO5+DPyjQ7s=3D?= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a0c20d0-1f3a-4d02-f976-08d998a27685 X-MS-Exchange-CrossTenant-AuthSource: CO6PR04MB7812.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2021 17:02:59.4343 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0gh24R0bMZG0LLZOgZ1kXJKI31cyAFKL6V7c04XVwUfqkuzL/QFKhziQRa1FB4OYkfHpUr2NFeCcCT0bnMemEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR04MB8314 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I had a few assorted KVM RISC-V changes which I wanted to sent after KVM RISC-V was merged hence this series. These patches can also be found in riscv_kvm_assorted_v1 branch at: https://github.com/avpatel/linux.git Anup Patel (3): RISC-V: Enable KVM in RV64 and RV32 defconfigs as a module RISC-V: KVM: Factor-out FP virtualization into separate sources RISC-V: KVM: Fix GPA passed to __kvm_riscv_hfence_gvma_xyz() functions arch/riscv/configs/defconfig | 15 ++- arch/riscv/configs/rv32_defconfig | 8 +- arch/riscv/include/asm/kvm_host.h | 10 +- arch/riscv/include/asm/kvm_vcpu_fp.h | 59 +++++++++ arch/riscv/kvm/Makefile | 1 + arch/riscv/kvm/tlb.S | 4 +- arch/riscv/kvm/vcpu.c | 172 --------------------------- arch/riscv/kvm/vcpu_fp.c | 167 ++++++++++++++++++++++++++ 8 files changed, 244 insertions(+), 192 deletions(-) create mode 100644 arch/riscv/include/asm/kvm_vcpu_fp.h create mode 100644 arch/riscv/kvm/vcpu_fp.c -- 2.25.1