Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1031702pxb; Wed, 1 Sep 2021 15:48:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOPYIKXQUJ4rkYYpZVfvl9umDwGV7Jn5aLogtmlfJfYKKZX4BRN5k/F+NFJ6IyhwXzzFOb X-Received: by 2002:a17:906:d94:: with SMTP id m20mr175977eji.445.1630536497393; Wed, 01 Sep 2021 15:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630536497; cv=none; d=google.com; s=arc-20160816; b=lRNzkFgSwJ5Zrv8HTdXdmdEye0WleFXNvj4ZEAW5yQBBAyEnanf/wl7PaLqCXJZfeW nCiFO87/sb13+1Z83gMCb00y84QSjzjQpnBW0oSzXSfBw2Nqmi9kr4o2TLjC13eQ65/r XTdPpZRjh/oV6Nz7ZhnLR57cPylVvK12mUp/F5v1DY3sRGtJ5sR4Dw5d2nnT4aW2Ejnu E1cdg6h2S7q/82oFGVCM7XSxD1FpGmUgvZZZ/ohMyEQ+qMhQynQfOuZPln3YA22mq/3A L5TJ1IP3GJ1vGN0DyR/APN6d10NrC3jR4P5Srvb1NBaRSPofxAyO2OAyw0vQB7/q76IP ZJCQ== 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=U+r4CwgKG+yEodhHzC7nFI5Y9Wnbyo4zL9qFFX9zlnM=; b=pozBnAn7jpDfh4xWaAWD3Tgt+iHjKbXSdh94xqTBQlp2eAxQb8TryqB+cM/at59Hio DEILrc51DPqiP8VBqhgV4hBQSm/vjjl+h/Y++IzGx6Qo48Oal4SL1Au3W4Del98I/3bK qE2bvfhAWd6CxeEQVu4QJxYxO77p9mi9D7pdn1r1Vvmr2ZFXrU14HZlpayPcAB53TjZr nkAj8mEHcb9IxPlDOlMGxBNsChFLGAbE+ITEBPZGH4jSD2S5gRQraRWg5eBnb4thXEl3 GC50V1lL6bC7jTgDUZ/KILtza6p/INPOfBsPckGTGu71KoUd3LsBqHlsir50X8LEZ0PO W/DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JOkMP8RX; 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 w13si154277edx.20.2021.09.01.15.47.54; Wed, 01 Sep 2021 15:48:17 -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=JOkMP8RX; 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 S244759AbhIAWof (ORCPT + 99 others); Wed, 1 Sep 2021 18:44:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241890AbhIAWof (ORCPT ); Wed, 1 Sep 2021 18:44:35 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01088C061757 for ; Wed, 1 Sep 2021 15:43:38 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id k65so1663193yba.13 for ; Wed, 01 Sep 2021 15:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=U+r4CwgKG+yEodhHzC7nFI5Y9Wnbyo4zL9qFFX9zlnM=; b=JOkMP8RXO6jdIjIDD6ZH3jrv9UvB6l279lUpP6filw3CBk6k1N1Hwj4bB+HLyMDRma boD3ZbnLqtdnNwuqesuS2HLMkqRyrZHeaia+pvNPCT5BKtEqWOmyEyiXQxJAyJC7Tf9q 4ZnqybnkHfs+Ms/08GdCeE+nkY2Z4/6wD9jZtk51UPliBiGeD3r02osFUGdJfXWK+37N Rh2HJkrC41dh2GjZCh7Y9ajtEv3CGhIGQOw3dol55gzG/dj6A8DAPpPCYb1Sl+W+o/jy 0sCXMnz+HIYSyDRFWFsuXdBSq+fQWnvW9N3oN7tIEn+y26OGONWz2qjuMjcUCQuC9gw/ GLqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U+r4CwgKG+yEodhHzC7nFI5Y9Wnbyo4zL9qFFX9zlnM=; b=AEUxf0rgb2NMJzYMXxLDQnueJYaitOzAnM/+WBjwf/lNFekRdmcqja9TgQDxzPn5aG T3IJI61TMkNIfA7CEFwNAOyCOPFFlBNNyUWLxfEJy1kh/XAF/Bbapq40GChcOPiJ9YYc 3RwsazoEMZqFBljrfh+BHXPpZcL8mJR49kq6BO/EQLRFsadmdb4DIdYb2s4wmlU6P7/a 70D4QnYURA+TTYd6hAAY9DKwLp+qzgv/gprJy6dZ0r356vrby+nKEcRjMZfk22I7+ST+ XX9yZfOCoR9gcUUTGjD+xts2aEgHjuYpmCawW8LFy3IwXVFnrhZOaC/HzXv8ojkF2gi8 fzEQ== X-Gm-Message-State: AOAM531z10ewW/uuJRrbcnT4wXtk3V8V5fqT8MSyWFNr2zCaO4MYitIJ Oekm89hrSfrcFew34k9DIlBUS862j3Pyqopz5mWlRA== X-Received: by 2002:a25:6507:: with SMTP id z7mr276648ybb.439.1630536217085; Wed, 01 Sep 2021 15:43:37 -0700 (PDT) MIME-Version: 1.0 References: <20210901211412.4171835-1-rananta@google.com> <20210901211412.4171835-2-rananta@google.com> In-Reply-To: From: Raghavendra Rao Ananta Date: Wed, 1 Sep 2021 15:43:24 -0700 Message-ID: Subject: Re: [PATCH v3 01/12] KVM: arm64: selftests: Add MMIO readl/writel support To: Oliver Upton 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 1, 2021 at 2:23 PM Oliver Upton wrote: > > 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? > Oh no, that's intentional. Just trying to align with others below. Regards, Raghavendra > Otherwise: > > Reviewed-by: Oliver Upton