Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp979498rwp; Thu, 13 Jul 2023 04:25:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlFr4JlrJ6GR0DXAcajXduihkedXMx4laSbNW2wviXCww9azw/qUkr+a2oUaPpp/jV7jqSxf X-Received: by 2002:a05:6402:b26:b0:51d:92bf:e6ae with SMTP id bo6-20020a0564020b2600b0051d92bfe6aemr1539193edb.18.1689247550798; Thu, 13 Jul 2023 04:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689247550; cv=none; d=google.com; s=arc-20160816; b=al4nBmp5faDZfWnvOpyxkcQHbDTT5Zq4Hlh58KsFdf9nh8tywsPpbyy/2/teq1TfXy eBxcfLRtJv+i+qn4dLHk3uwuBLejAL0vRv1w2N5RpC9sZHvSnSt2fEuqqF7KMtjv8mOu mZaLDNeq7iVzmcV9/3Ukjz9aSMY3RsUshWtgTWUiWtPx8MXvm6v9LqW4Uxnfi64BPasm 6/keF7b0qnFZQUQ9ILTnV5YGKI0Qm40oiUMFc3qotK7xYJa6OxoBxf2JZXISTnkUQKCV R7eOaLyll1tz+3OX3pHGM/YHOCMDc1lZ6cVno+GGrm4DTDQnDEvyakCIbgYWi+w67nWz K2Tw== 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=c9NtgBLjv1J96zLCU/pO/Q7azYyogqr/cagIRcD64aI=; fh=XcJ5F4KXT7ms5nrZI9XeQqo7m2yZzX/dHdMuLdYn764=; b=U5c5Wiva25h+L11+R0I++sVtvJ3K51f587KPEGNAISgEyjS9c+FKDQ+ZaPdNRJakR/ XLR/5Lj0qdGFsaTsNnThklQCB25ERbXC0E5vYiimbSmhbxwI2dsoyri0bBwbybzb9HuA jdWEiR8HV2AqUUjS8TFC2h7FCToB6A6LBNw5pd33rcXL2W/Nuqs69iRIqSIuVMXLpoxp xfCgNAdZf1mE/XWV28qR1rLnKtayraa+LgHhAfQoQXifS8kjBT7eEIaN2qIGjmelFrcb mo2I9B1krVvG7eM3kAfJcwWR3oLM3Im6HDvV3Dkt6doBfrVSt6B/bS1kTh7L0jyA1VP6 JVMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=gj7kW8GV; 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 bm4-20020a0564020b0400b0051e16aa6441si6975126edb.191.2023.07.13.04.25.26; Thu, 13 Jul 2023 04:25:50 -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=gj7kW8GV; 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 S233464AbjGMK5N (ORCPT + 99 others); Thu, 13 Jul 2023 06:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232848AbjGMK5M (ORCPT ); Thu, 13 Jul 2023 06:57:12 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE49C199D for ; Thu, 13 Jul 2023 03:57:10 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-99384a80af7so82086966b.2 for ; Thu, 13 Jul 2023 03:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1689245829; x=1691837829; 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=c9NtgBLjv1J96zLCU/pO/Q7azYyogqr/cagIRcD64aI=; b=gj7kW8GV0O+RnxEUvB7Rzg92T+cWgaDBZOj/LehCMJmClgK/jAbkEyOOD74xx2BxB0 aU2wUxt3DFCdM9tzd5JjcJUPXSoZDtRPlYrKTsP3IcYQLSMBinBJV8suJ+v37y+DASZE VReqO0d0RaoyVVG+/RKukaeB4OzssFWjZKq1q5ZgSBTuwlof83ML2aYwvWOWYazMbx0R HotbzEFISAwilTgLj8Ap8pLnJta6CiLKzIKo9BRtfOM6Lk/dgcJa8rc/G0ojulEbvmyA 52usDTRQRfBRN9kkhvEVcjDK5u34uly8pnzMqz9C1JPnVLCvaFBdbzyVy2odpJySNsrP ii2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689245829; x=1691837829; 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=c9NtgBLjv1J96zLCU/pO/Q7azYyogqr/cagIRcD64aI=; b=V1ybN+p5tmsEA1nWZ/rq6Z3Z2Jv01kPFePJ51fRnTtlgKDALpu3Y9wph10WmAoNSFy Uvb4JK12+705V4DI0hJ7XM1F+il0K6ktO5mqSKFqpR3zr43FeRxoAeWREGcqtBejL1Oz Z6UL4I3wicYto/mHPEF/SHHk+1/Zv0yMqgH8k4njWtlgT5sbNGQY8wrjuYCqX3QAF/bf PfvAwdmooDJ2cA9bMjI0mkmXobyEuiXPLHjI/rcdqXoOYF37+lVm05nEI46mq+KiNctG gYyATzQFu/uRUAYADCF9qqTcSsuwC3ZgeTaM7T6zZm1rsfMJr3icK2Vsm8x6MPAS7bVQ 2k4g== X-Gm-Message-State: ABy/qLaG0H+MhL7njtZ9Ku0ir+3jGqekSSXKAtYm5zDEeRGkGU0BWGDC SghFbHlEy4fYZMzsUcF+hPCGMw== X-Received: by 2002:a17:906:30d3:b0:982:82aa:86b1 with SMTP id b19-20020a17090630d300b0098282aa86b1mr920230ejb.43.1689245829265; Thu, 13 Jul 2023 03:57:09 -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 ay9-20020a170906d28900b00992bea2e9d2sm3835016ejb.62.2023.07.13.03.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 03:57:08 -0700 (PDT) Date: Thu, 13 Jul 2023 12:57:07 +0200 From: Andrew Jones To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Heiko Stuebner , Samuel Ortiz , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/7] RISC-V: KVM: Factor-out ONE_REG related code to its own source file Message-ID: <20230713-40f6804b248987add29f83aa@orel> References: <20230712161047.1764756-1-apatel@ventanamicro.com> <20230712161047.1764756-2-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230712161047.1764756-2-apatel@ventanamicro.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Jul 12, 2023 at 09:40:41PM +0530, Anup Patel wrote: > The VCPU ONE_REG interface has grown over time and it will continue > to grow with new ISA extensions and other features. Let us move all > ONE_REG related code to its own source file so that vcpu.c only > focuses only on high-level VCPU functions. > > Signed-off-by: Anup Patel > --- > arch/riscv/include/asm/kvm_host.h | 6 + > arch/riscv/kvm/Makefile | 1 + > arch/riscv/kvm/vcpu.c | 529 +---------------------------- > arch/riscv/kvm/vcpu_onereg.c | 547 ++++++++++++++++++++++++++++++ > 4 files changed, 555 insertions(+), 528 deletions(-) > create mode 100644 arch/riscv/kvm/vcpu_onereg.c > Reviewed-by: Andrew Jones