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 X-Spam-Level: X-Spam-Status: No, score=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B751FC433F5 for ; Tue, 14 Sep 2021 06:53:11 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8114F610CE for ; Tue, 14 Sep 2021 06:53:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8114F610CE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=Qxc2br+AU2xneBcs71YzisRsUGcG6rbC3mLCCaqG/MI=; b=VI4gSiMlugaKuo Aos0inbEAMUyy+JZbLRv49XWLasre7GDp6ssPVfZ6Kq3NvqbChdiChb3TieNSxaCI9rb1UGF+Nqpx DqHwAuOM5iEjB8Y7YsouA3FBNs7QN8vDMmhxwSFJTd4TGhu/jf1umohaHoewGWUanQwfz2075PtFy R2Xs/KoXrtryGaeQtzsIHu68TLGJTDuwZUXFTjj65dWAmFHT3S833dYVio/4ZoLGEik3hQlcyB7lT AgXGKIu2MEMSKmp1298atmCwkQJSRCOV+IHLqHUBVdeonuD3VbBuo5RTXi00QuHy9Oa+IMlT/oW6K 8swExjHnNzU1t/7hMVfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQ2Hh-004KXY-HH; Tue, 14 Sep 2021 06:51:13 +0000 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQ2Hd-004KW6-Dd for linux-arm-kernel@lists.infradead.org; Tue, 14 Sep 2021 06:51:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631602267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uo1ypxwE99K2K4JA/RxOGUNqzLACfvlm1lsSRFgGyDc=; b=EQNsBltrWWf5LjAjwIqxvMllIzfBntk5QeIWJmTozRL+7vXjw98Ep7PWnSrgm/ulcf6AcB UKE33BOijLPOfa3LMIMLZysKj5uUAA1xdBlJx7bF4/IsJTmoHHLb0Z0v9/ZBIBv3nwCPwB Qb05mqN4aJgzF5hqXxwNInzuEGl/mwY= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-403-_O2MO4z3M2iTaty6mi9WXw-1; Tue, 14 Sep 2021 02:51:02 -0400 X-MC-Unique: _O2MO4z3M2iTaty6mi9WXw-1 Received: by mail-ej1-f71.google.com with SMTP id dt18-20020a170907729200b005c701c9b87cso4859407ejc.8 for ; Mon, 13 Sep 2021 23:51:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=uo1ypxwE99K2K4JA/RxOGUNqzLACfvlm1lsSRFgGyDc=; b=ycjdUmHEbR0JeEo6cg4XAsCynZOkqxZO/ZEf+iCxOERly7r1hhVWcHV3vI1vFJ6LSb BNsUQRCFo3tW4lpCc/yTMpG1JJUZtC9BgdhFx0Jmy9E5TahinxFLDk8aPpWSL/7U3Y6Z N+p7Z0g40vSM1wREYXcEeBVrz3fQaR7V+65xtMT/ACxw37lvsb61z15QUYPdJ8SMumkt XFJDSbpDunGEX5ayJ6CS1dAVvLORQJggOrFkSzJSukhomxzjBZkrYYMsfRvJ3cTJARL3 ooO6IjMZa9rog/0vdAkRG0KbZzLOrFqm6FaZFiT/350UEuA831/iNgHDfQzMTDwm9XpM CMPA== X-Gm-Message-State: AOAM530O6CXhS4u1Th01BE9rZSOapv24KpuhYNeb6fOJuONBFlwS5S16 oSwJYLv8eSiSqmWXy8I8WsBl/zLEDTN5nT8jkqoKtLgOaqbQWgp83P1LeBps9O8GKUANcWdVSyQ U32v3V/MQEBmiPxGBVbTQSXNRGYzv/49Ceyw= X-Received: by 2002:a17:906:686:: with SMTP id u6mr16587572ejb.569.1631602261016; Mon, 13 Sep 2021 23:51:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylIm78jMF8rvHMhD/z1+b0Q3pmhqeY5KYi6PHEiggzRATGOoFe+gFNpkPigFiX6dd/K2Nvxw== X-Received: by 2002:a17:906:686:: with SMTP id u6mr16587561ejb.569.1631602260877; Mon, 13 Sep 2021 23:51:00 -0700 (PDT) Received: from gator.home (cst2-174-132.cust.vodafone.cz. [31.30.174.132]) by smtp.gmail.com with ESMTPSA id k21sm4417460ejj.55.2021.09.13.23.50.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 23:51:00 -0700 (PDT) Date: Tue, 14 Sep 2021 08:50:58 +0200 From: Andrew Jones To: Raghavendra Rao Ananta Cc: Paolo Bonzini , Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Oliver Upton , 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 v6 04/14] KVM: arm64: selftests: Introduce ARM64_SYS_KVM_REG Message-ID: <20210914065058.3ujet4nesbzxy4vr@gator.home> References: <20210913230955.156323-1-rananta@google.com> <20210913230955.156323-5-rananta@google.com> MIME-Version: 1.0 In-Reply-To: <20210913230955.156323-5-rananta@google.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=drjones@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210913_235109_584247_898BCF3C X-CRM114-Status: GOOD ( 14.80 ) 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 Mon, Sep 13, 2021 at 11:09:45PM +0000, Raghavendra Rao Ananta wrote: > With the inclusion of sysreg.h, that brings in system register > encodings, it would be redundant to re-define register encodings > again in processor.h to use it with ARM64_SYS_REG for the KVM > functions such as set_reg() or get_reg(). Hence, add helper macro, > ARM64_SYS_KVM_REG, that converts SYS_* definitions in sysreg.h > into ARM64_SYS_REG definitions. > > Also replace all the users of ARM64_SYS_REG, relying on > the encodings created in processor.h, with ARM64_SYS_KVM_REG and > remove the definitions. > > Signed-off-by: Raghavendra Rao Ananta > Reviewed-by: Ricardo Koller > --- > .../selftests/kvm/aarch64/debug-exceptions.c | 2 +- > .../selftests/kvm/aarch64/psci_cpu_on_test.c | 2 +- > .../selftests/kvm/include/aarch64/processor.h | 20 ++++++++++--------- > .../selftests/kvm/lib/aarch64/processor.c | 16 +++++++-------- > 4 files changed, 21 insertions(+), 19 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