Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1030757pxb; Wed, 1 Sep 2021 15:46:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+smrRGUXH8vThir45QMIF+nrebxv++G15tYBpEwQxeSrjyJyKvKUMlgyQrYXD7jMR7k94 X-Received: by 2002:a17:906:2cd6:: with SMTP id r22mr210376ejr.398.1630536400524; Wed, 01 Sep 2021 15:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630536400; cv=none; d=google.com; s=arc-20160816; b=iTiW6WiSIyhXzHFd1WwIT60/d/rbYYqPJr4UX4jHcel6Z/CJb6VIdzUlyqqVsuo1Qv cXzXfZEzakxczp0UpPnKWowd9JbtWJoHFaxDN78Ic15OqpHgJMrFTUGg//yt7WFDtYEn y3TPVP1c0bKxFsnGLoeyn2t/LKX3QgWwCZM+LlsL6x2H5QTtDeCs6HG7AO+N1dRQeoG5 utJWlSdzpHjki6dkWB3vNJc48iuugcuzeIzpLYNBvBUFeOxHM5glpVbPOi/fmfD0wd65 fj9ktSrmfkGcFAmqEpuSCkOYlsr2l2uhzmbIX1mmPouf7gmYETtvtToYZkZMEhWChjGD SM3g== 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=U3KFrpxU4d2fmsa0Mn7hWzZCFQgA1sH9j0f2Swqi3I4=; b=E2e15v2VUKCUfOE39K3b367bJ7HfZ2ShJRw/RjOoVaPidtY3pAY30Yn5jEkkRBjdJ8 gpFaS4vMJfw5zbI2Iy1QuJun3oGBE0h7OCAeOlT75YEb7yGJhv6KsNqK/0S/WJiCz22p yZ3cf13hEnsfCY2DS60O7CmJAvfOJ9OXnmOndFlyMCkHPnHCHPFxB4f4FLlzirok9r7r OQ0Y0GmU7zSPUP0JSve2BNYQG5RsXxzwNEz/Eut45e83+tmCBxTH94SnGK4wWinAUS0n SOhSaoNy4Ed4LyCXnVovUWjmlP0Vga2BVrfdbCaH0wcrmD+eaOgtqs1VDVNcKy5MVz6n F7rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fRlBbRG0; 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 u4si130131edp.371.2021.09.01.15.46.17; Wed, 01 Sep 2021 15:46:40 -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=20161025 header.b=fRlBbRG0; 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 S1344241AbhIAVYc (ORCPT + 99 others); Wed, 1 Sep 2021 17:24:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232500AbhIAVY1 (ORCPT ); Wed, 1 Sep 2021 17:24:27 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2489C061575 for ; Wed, 1 Sep 2021 14:23:29 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id r6so687683ilt.13 for ; Wed, 01 Sep 2021 14:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=U3KFrpxU4d2fmsa0Mn7hWzZCFQgA1sH9j0f2Swqi3I4=; b=fRlBbRG00Jqh6wY8ay/vacNRJwhJuS8FG/s1/thQukVdCQCJZlOxZIPolWunH7C2aS akm7SCr0nYZMueozliPX04kjQ92ewCY0fr31acSvPe1QwCKnJCvV1jwaL0tMxKpEVxXy eI48fILum/Et8BgE8VkMExuJkjWvZcaUeP5lNHCm2rhQrDTujESJAzUdlAvLZgnYpI3q EGr23r8la80yjaBNhhUmog5qndDRkCqe8kDmXOEP8OzSm4v6/MqhrlrTMKGOq1MCr6tH 4YLtyc5X2l5XKqzojqkHgqdXzoz41yjcj9Z5WLNn9001mORzWwl5LchRCco5+T+7dEvp aNUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=U3KFrpxU4d2fmsa0Mn7hWzZCFQgA1sH9j0f2Swqi3I4=; b=l+IgCzdQicPoOfVfOLmKd7s4alf0ml3pAjWZp4F754D/zqrS6FNnRV4B/M2u0OgX9G P+bhFy8TtD7+onsEKFOPNiUrT6o4yvUR+5UPK4KSoBLRqUUsQNrPC2nYbXdxnTAKStHD a+48pzfbQBpLcIrmtk5HPrloLuJIcpeC2j4LGpzk4oF6MxGOR/QCQkdQiep017HbDTaF R6OTGNSYPjeH+UvHG1WsUUqgzysZA5JcJPPZgskU4InRwHCh0Q/xKe95cV17BSlExctH hAxh1AkuhdET36n9oUUBY1BvUWKly9hMCt6pHYMTitVUhcISj67N9uUmV7aGb5wFOGEH qvWg== X-Gm-Message-State: AOAM532odJ1XpYE5psIIl2O31AkexJmNVVdXSl/G2mPrquzq5ylDAbRc UcDeaY7mKhg0QqDDfUm0r9Mo/w== X-Received: by 2002:a05:6e02:531:: with SMTP id h17mr1051378ils.288.1630531409092; Wed, 01 Sep 2021 14:23:29 -0700 (PDT) Received: from google.com (194.225.68.34.bc.googleusercontent.com. [34.68.225.194]) by smtp.gmail.com with ESMTPSA id k21sm443809ioh.38.2021.09.01.14.23.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Sep 2021 14:23:28 -0700 (PDT) Date: Wed, 1 Sep 2021 21:23:25 +0000 From: Oliver Upton To: Raghavendra Rao Ananta Cc: Paolo Bonzini , Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Reiji Watanabe , Jing Zhang , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v3 01/12] KVM: arm64: selftests: Add MMIO readl/writel support Message-ID: References: <20210901211412.4171835-1-rananta@google.com> <20210901211412.4171835-2-rananta@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210901211412.4171835-2-rananta@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 01, 2021 at 09:14:01PM +0000, Raghavendra Rao Ananta wrote: > Define the readl() and writel() functions for the guests to > access (4-byte) the MMIO region. > > The routines, and their dependents, are inspired from the kernel's > arch/arm64/include/asm/io.h and arch/arm64/include/asm/barrier.h. > > Signed-off-by: Raghavendra Rao Ananta > --- > .../selftests/kvm/include/aarch64/processor.h | 45 ++++++++++++++++++- > 1 file changed, 44 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/kvm/include/aarch64/processor.h b/tools/testing/selftests/kvm/include/aarch64/processor.h > index c0273aefa63d..3cbaf5c1e26b 100644 > --- a/tools/testing/selftests/kvm/include/aarch64/processor.h > +++ b/tools/testing/selftests/kvm/include/aarch64/processor.h > @@ -130,6 +130,49 @@ void vm_install_sync_handler(struct kvm_vm *vm, > val; \ > }) > > -#define isb() asm volatile("isb" : : : "memory") > +#define isb() asm volatile("isb" : : : "memory") Is this a stray diff? Otherwise: Reviewed-by: Oliver Upton