Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp320341pxb; Mon, 13 Sep 2021 20:35:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjQWuQ4AB9W0jKwCfayWDFhewZhS6mOlTX5r2EIRlKevgfFORg1QAShVSPp+Z3IpYCtIkj X-Received: by 2002:a17:906:2bcf:: with SMTP id n15mr16707075ejg.414.1631590554579; Mon, 13 Sep 2021 20:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631590554; cv=none; d=google.com; s=arc-20160816; b=X5DQqHILpj+7vY/Sh3VL2djGQqrdV5m78b9f4cy8HK9bFH4/2Vrou0cLrgf+HZI9Io xpxZ1M3IwOxkp4VFAvFtq5/h9+q5r2rzbfrOLy0NfDUwodHjrBjiZWP2QLA2h/Ta7IYz WXk+dZRZkb87G6oYlRRyXi4TJg1yxeJSxzFg/Kbn7VqObbdo9V81XXL+lyrJYOvDDypP 4NUizPVIFGh5htj/9xQqnsJMeppjz1q0fsQeofTJpl7zjQUS54k35Cs14jmvpUPSFEbY XA5KYSsdYEg3yzN0ud9aMtSb3EbEbKvsl0a5WBwLvj3otnimLNCq0LSDk8w4Wl6WJGWj D8pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vi+6Oqzw5KxlySzgQbdJRDGWe6tPJCzCtUhaRDBd7v0=; b=uZ84gKc1J57/MZ3F7SfjwoFObdXv5Z43jO0uu5bFdfiauZOAvizeuCGoRwlJMrZ1R0 GkIYsoRlY/e9e35UJhJ9QOOQ6ShXPekkoU+VB+XQm2ZvU9yB0UHRBbZR/55BtGTzWvo+ V3lX9NPSDTF1hSq3O90lwpSrAxYRmZlXJaCN4bjlgAX9nEl/srE2J3mXn03g7TgoCJUC nDVxuJJE7Omxnz7Suc8FdX+eYTlMCh8E/Nt6wNw4rBoVySBz6/UsQ0qtNJUMvZnA94OW kH0bE45tNJ7ADI+aLiAwfrFycK/dq9PJ9dO7EY0Piv0k5s85hlkxY2zSzTmT8h7pYDN+ u9Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=sx8egWgq; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 23si9115777edw.187.2021.09.13.20.35.30; Mon, 13 Sep 2021 20:35:54 -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=pass header.i=@google.com header.s=20210112 header.b=sx8egWgq; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239173AbhINDfR (ORCPT + 99 others); Mon, 13 Sep 2021 23:35:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239182AbhINDfD (ORCPT ); Mon, 13 Sep 2021 23:35:03 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57B06C061767 for ; Mon, 13 Sep 2021 20:33:47 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id f65so10842118pfb.10 for ; Mon, 13 Sep 2021 20:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vi+6Oqzw5KxlySzgQbdJRDGWe6tPJCzCtUhaRDBd7v0=; b=sx8egWgqFJdVg3oPrF2H/aMEWHH1fVFnCjLuhahKZJkxB5zim7av5ZHPiWAux7YLu4 /QvAsTtpu1bY2KFKwQDqqKT24Xq0gVO2HdvHIbTP5rwCfvYJmTA0XoYlhyqxIYGBGVSN b1GpiZRgPxOXmKBhyBae38JdmOZmVRqCovCyd9qO53zTFTK5IHN7J8Uu0/cupFgXB29O w1A65ec5e+yvYMP6d0uUdFg2bThTc8n8wbKrnDibWKb3ekrd4bghP4xEfTDwqFeZZrR4 55rUjD1IgbRJ5cqEPWjTHpFurBakE0mj0gF29cNihRJygPfjSZ4ViB3PWNbLTIX+O5Md +fPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vi+6Oqzw5KxlySzgQbdJRDGWe6tPJCzCtUhaRDBd7v0=; b=gKSDmfeZnMMwrHRQjCwtm4/YOIh8mbHD0fR/ynTMGPOcNJXfUCPmYh0nTPjXqw/4kP hlTrU+QDi9EUV/NnAjsoIR0rqMfPeozPw23cF6edQdEC+Lga9Qa2Hygj+Ex/XHrgEqL/ qqsoLcUAKp9jHSI9/pIjKuQWiihs/0xlRxP+fwdq6wTLod3oMvpwUR0cazAY4INtjqde Ut3knF8V6Xnm7IGuf0VmqUf27ts4VwBrbpCkS9OZWiiXzSGTw1Q71u0pDiyb1aeszWn0 ZOcQI73vRbswQushlf51cplC23/sedVrKlnhAI+3V8HTlXJOcfK7IaxRTsGiRUUFBUwc 223A== X-Gm-Message-State: AOAM530Ak+xfcy/QtfOgY290x2gH/BDVfGiZ0fI6997IkVpKBsNYsOlQ aoy+9DIhY80jy/IyEC6+3P+xMEYsRoAe8zTChuXMsQ== X-Received: by 2002:a63:d806:: with SMTP id b6mr13920055pgh.395.1631590426624; Mon, 13 Sep 2021 20:33:46 -0700 (PDT) MIME-Version: 1.0 References: <20210913230955.156323-1-rananta@google.com> <20210913230955.156323-10-rananta@google.com> In-Reply-To: <20210913230955.156323-10-rananta@google.com> From: Reiji Watanabe Date: Mon, 13 Sep 2021 20:33:30 -0700 Message-ID: Subject: Re: [PATCH v6 09/14] KVM: arm64: selftests: Add guest support to get the vcpuid To: Raghavendra Rao Ananta Cc: Paolo Bonzini , Marc Zyngier , Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Oliver Upton , Jing Zhang , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021 at 4:10 PM Raghavendra Rao Ananta wrote: > > At times, such as when in the interrupt handler, the guest wants > to get the vcpuid that it's running on to pull the per-cpu private > data. As a result, introduce guest_get_vcpuid() that returns the > vcpuid of the calling vcpu. The interface is architecture > independent, but defined only for arm64 as of now. > > Suggested-by: Reiji Watanabe > Signed-off-by: Raghavendra Rao Ananta > Reviewed-by: Ricardo Koller Reviewed-by: Reiji Watanabe Thank you for creating this utility ! Reiji