From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3088AC83F2C for ; Mon, 4 Sep 2023 13:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DkaAjX+AkzYjscmd+rHAXNQpz0hlwqTDd6uJkYOSNPM=; b=KaCG7vx/6m1Q94 O/r7DNwoFr5q9JNLQZQLfGLaZrCRaxT4456QYmT4FDt3kZVpFR1G4ksOjQri2qvYSaCRszddMtOyp JcUpUdNtqMH4BvJcWkOdlURay61TnOTBf2hFes4H0e0ZfIVzH1WKXTCc3Z3fnj745QNl9NlbdG140 toy0vSBqL/8NVuqvV19tHZhm7+EGHqzvuYufX8BubU9147Rto56unYgWNIv/UdT2C/D/DmWaL1F7R E3TBUxdID7caTLv5HLiGBYE31yFEPRVvi7dVeWKiMaGAUbdGpNE357jNobrqfHe1pBLH9zQNGXMw2 x57Rjm5JYzK/Z1dDLcxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qd9wJ-004DLh-0n; Mon, 04 Sep 2023 13:48:27 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qd9wF-004DKV-2g for linux-arm-kernel@lists.infradead.org; Mon, 04 Sep 2023 13:48:25 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9a645e54806so175660666b.0 for ; Mon, 04 Sep 2023 06:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1693835302; x=1694440102; darn=lists.infradead.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=h3fvlfFXn3XSbLUjhzD0K7O7WyFDtRiY642hHRw1Uek=; b=T7H+BZOcWVBJZll49IApw5L0fhAsWRhIHzJAhdDKFaH/WxY0cZrvwKGHiHxYSMa3TG lEZP1BdgNPH/9L5Rhg2YccJSjod68lYlPrAVftJ0BmSr4C8qEp/6nmj+0LepwhQjxjCF pHKx2vAM19bYf5YHT5s5QhfebXmeH6RfkdAxmitnftd0Nl0tEErgiWWYzDmgVjEPpjeZ 6uqkGDl8pfis8Sl77q+QWl7mOjZiNZpw7+KP/2jyBVMtfo1+E24tjQXJOuiccHEggXE9 MUGU5QHC98SytaX6zasalqrJ/I9ZVTjOIal8PJ3SMkQzV3inlU2+kdQty4KTT8aP2KZg JMSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693835302; x=1694440102; 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=h3fvlfFXn3XSbLUjhzD0K7O7WyFDtRiY642hHRw1Uek=; b=W/mJlvyLMHitpEm3hymonUS9NkCMIlTND6K49vG3J6fW0YZR8/KxfNQkn2+mpMhUuM xleof5qCMXQdDYpbh+1iNmXnZVJzn4LHuosqrXrgRwMAy0oGF4kOs6ohhEIKmLl6PAH4 J1wu+e1eEfitkiq2TyRUWYUbwO2KAHSLrgTETjcyjvhzQzxWlqg7MWLlMIhF/nUrpM2l qN/yxz3H/R7tQTRZ7eO8ucG/y1K3+jKrTzoBuHsJmIsqrUi1fRv1l1huYsYLL//8vbhD CAe1xEMEhBFX3SGpA71Q2+4gCF2gQa+a3if3AzrPH9vWPJsSz+h3tlVhKuXImXFo/dgH 1HSA== X-Gm-Message-State: AOJu0YztUCuUgz3YxVwBc+FtY8lmsghZ4mTpC0/mkuAhMREsPaCYtxwe 7u0aoZB9mB7+1GS2IIDwGkpisA== X-Google-Smtp-Source: AGHT+IEdmuQ6wKTsIKPR4BXTBtwQWbUG0Viumxey9/oZVxntWMhJSLmNtJQgpZUnWcUIixf4ahyhVQ== X-Received: by 2002:a17:907:2e19:b0:9a1:ce57:8e47 with SMTP id ig25-20020a1709072e1900b009a1ce578e47mr7114400ejc.68.1693835302263; Mon, 04 Sep 2023 06:48:22 -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 h26-20020a1709062dda00b009a1fef32ce6sm6233554eji.177.2023.09.04.06.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Sep 2023 06:48:21 -0700 (PDT) Date: Mon, 4 Sep 2023 15:48:21 +0200 From: Andrew Jones To: Haibo Xu Cc: xiaobo55x@gmail.com, Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Shuah Khan , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anup Patel , Atish Patra , Guo Ren , Daniel Henrique Barboza , Greentime Hu , Sean Christopherson , Ricardo Koller , Vishal Annapurve , Aaron Lewis , David Matlack , Mingwei Zhang , Vitaly Kuznetsov , Ackerley Tng , Lei Wang , Vipin Sharma , Like Xu , Peter Gonda , Maxim Levitsky , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Thomas Huth , David Woodhouse , Michal Luczaj , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org Subject: Re: [PATCH v2 6/8] KVM: riscv: selftests: Add guest helper to get vcpu id Message-ID: <20230904-db7e8ba933a271ef6aafa4b3@orel> References: <23d13f60b5a2fd31b87ae78458507f46442fac3a.1693659382.git.haibo1.xu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <23d13f60b5a2fd31b87ae78458507f46442fac3a.1693659382.git.haibo1.xu@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230904_064823_865070_643221BB X-CRM114-Status: GOOD ( 12.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Sep 02, 2023 at 08:59:28PM +0800, Haibo Xu wrote: > Add guest_get_vcpuid() helper to simplify accessing to per-cpu > private data. The sscratch CSR was used to store the vcpu id. > > Signed-off-by: Haibo Xu > --- > tools/testing/selftests/kvm/include/aarch64/processor.h | 4 ---- > tools/testing/selftests/kvm/include/kvm_util_base.h | 2 ++ > tools/testing/selftests/kvm/lib/riscv/processor.c | 8 ++++++++ > 3 files changed, 10 insertions(+), 4 deletions(-) > Reviewed-by: Andrew Jones _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel