Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp840300pxb; Thu, 2 Sep 2021 16:52:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzihDZD+CzPu5/siNWFP5v8ay5xJr0Pc3b6L0U/4hW6f4eUFJ9uO8RkVhYkhCwP6UgPWu4s X-Received: by 2002:a17:906:3589:: with SMTP id o9mr859627ejb.150.1630626767646; Thu, 02 Sep 2021 16:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630626767; cv=none; d=google.com; s=arc-20160816; b=b9kdMVJ+hOEb9o1KrVANJrQDOnlIPGHyMvya5/KOfZSDTjdMFNpiQXNh8dl3YhkKpO /8oXc8W5OUsvCAFOhFJX8APNaWfFmP6kTXMgS7t54qE3PILqLFH22Fd23lC8cNcD8mo/ /izDe7fwD6a8gdYcvpT3xmBMHPL1Bz5+kCnEjnHH9CiPSageJlceBOi0eWk7tTdw4BSV P2MrkIHZFHAAJa5E52OfgA9IjrJ/HaBdPzKdV++ZSB5OUfGZI+bRBUnLzyL2n/VUDwMk co2ihU3rgo/wgluil6gkh1GqCoTgyksd5h9wTlICGm1PIuJ8D4Rxt9TLIzJv9oDaEg7f z8Vg== 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=kzEtkuBtgfdvovJGx2vNeyWTM6t8k4a79v7QJawW9b8=; b=CctjQbGrFtw9P7MZx6PJ73oYRRvneqpzk6JU0Iqy5ZUabYpXGdzmx5VpMdsYvHk1zu 0acd1GJJUFOU1c31aqr5PfoW/zMUJC340AU8VEE++AXTjK0jYNxg2ayaL2Y6bnIwTFvV feP0WdJp/R4nn9ZmZqNzShtx6yx65030P2dwxsZYY5xRpHRXcLwratlHwdc2Srf1FGeP mGz8At7MKeZrC3YdSC27SgaO2p/WWJRPmlnjNkpLqyrSSw3DkLbTGxXlTZRmYHKo887F 5SGaLwFEVQEz4wpUfOE9qNU/ssHait954IYLqSYtmj/SLt1qNEvjkDSDCQyb9HFn1KOl 6fQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=czGzwIMY; 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 bi15si4041114edb.459.2021.09.02.16.52.24; Thu, 02 Sep 2021 16:52:47 -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=czGzwIMY; 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 S1345918AbhIBUTG (ORCPT + 99 others); Thu, 2 Sep 2021 16:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231559AbhIBUTE (ORCPT ); Thu, 2 Sep 2021 16:19:04 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1D4AC061757 for ; Thu, 2 Sep 2021 13:18:05 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id t19so6933270lfe.13 for ; Thu, 02 Sep 2021 13:18:05 -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=kzEtkuBtgfdvovJGx2vNeyWTM6t8k4a79v7QJawW9b8=; b=czGzwIMYk81Mo1UJ4KLBEMDUAJvz72+tHL59F2iqeJk960mlsaXhCo6R022M2B07In duNGe9KfQKyTsvzzYDEE/6gpDpJScLS3A22Ghj96PHMr8rHTCQBBGbl41GBkkuIH0/bC aIpH1wwpwOHtICD6ACln6eiZiMIz45skiZ40YUinZUOhCBApaFAZJOCiHd1r4WWJm/o1 7QsFY/sTTBnpybIyL0Xz0VGaPF9lVWBtEoOwLm+P8CNil6/2RGI8w24dBMv7qFwq3jAM lz/+xaiQHFvLPsxv2B3l2NkKzpM66+Qt5K1VslIIIf23xOqBi9Y4kM+tJsi1OjA6+ES4 +RLg== 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=kzEtkuBtgfdvovJGx2vNeyWTM6t8k4a79v7QJawW9b8=; b=oeJDurjsbmhVbQp/vXg4wxpOjXQJS1EEwPkEcxcdZrJWxRZPX7ePgInmwuC4LD57Lo roUEN69DvEV+4Fqz7pVrJoUvMVabTormMxAQQd8GgvDLkjAqiYg2yFWjJ4+7rlixR2sY MPoXozYtiewbT96Go8OJVg8spqKBWaK8LRoLuOR76B6H7/SGftgF6u4U0+LEargLhS5c 5rRjwUIc9YOI76KEShZ4sif52kglJ6TxAUt80rD595gOFDeHiBcDIkBxQYy1Xvyi66ys JXTIulVzH6TfJb2+k8AsV1cF+Ajy5izTavJ9MefevMpM4lwK/AALFShDQskpXElkQ8Tz MKTw== X-Gm-Message-State: AOAM5311lnluFnKitI2OS2OUuGghkC8a7KU3LKMi4++F8Zd3yhd4QYtK n1Teijg84coJIXaEeq9zA+CRja8mzEynevLUH9fMew== X-Received: by 2002:ac2:43b6:: with SMTP id t22mr4052lfl.0.1630613883673; Thu, 02 Sep 2021 13:18:03 -0700 (PDT) MIME-Version: 1.0 References: <20210901211412.4171835-1-rananta@google.com> <20210901211412.4171835-2-rananta@google.com> In-Reply-To: From: Oliver Upton Date: Thu, 2 Sep 2021 13:17:49 -0700 Message-ID: Subject: Re: [PATCH v3 01/12] KVM: arm64: selftests: Add MMIO readl/writel support 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 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 3:43 PM Raghavendra Rao Ananta wrote: > > 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. You are of course right, I read the diff wrong and didn't think it was correctly aligned. Thanks, Oliver