Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp418088pxb; Mon, 13 Sep 2021 23:53:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmt6E/XlcRH9+zHdmL3G/PdceW1wRkq+kV87HNbnsE5Gj+9Fe2Ev63NZ7hIgau0yFxbbHZ X-Received: by 2002:a5e:d60e:: with SMTP id w14mr12438634iom.135.1631602388849; Mon, 13 Sep 2021 23:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631602388; cv=none; d=google.com; s=arc-20160816; b=IbPBP6j4chQnmGMPjnc0Pu8l08RcE9DtclzhVdwxhrUHHhQa3uFzHxstQiqoA9D3ce qKNGcRWg2oAKyEK0NBTYAGq4C4BAlXjd4eyodaP1SLxbsDUQV3lsl5Ce8kM2tTOhZCUi MKzvEq/5UWWHuVRZ8oWqzgq3Z58anhQFrSg48+z132SIKFrk0sNuI94m0xfrhDyhezGq H6o86DQzk5s7tvW10Q4fffLuCGPVrWOaleZVss5Y4/PwSkRZV+Of5Co/oscWIt0MGJO0 BRMzWiHB17ky2ggsz9UnXlBoTxAjo6WY7mC/hN529M9W5xuOmCdFsHegbMgM2BBgmJ6P 0YkQ== 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=uo1ypxwE99K2K4JA/RxOGUNqzLACfvlm1lsSRFgGyDc=; b=XWLkyPlLLFU4/RbrlvdNzJaVkV0pbKzhu6LMZnWt8FHaSCgvEi5gKUPeJGaWlkVvOK MXhnyFdNYxFz/aeCPxw+oI0aBBOt+p07o4kIqmHaticEEQkhaAMXbHX8W1bBmbDJNloZ EtX+28fZiEyFIzg7D42cWTFnCp7hqhuia0VLhDwHXcCxK2vSlIFd+8PCqgrKpFl64AxI yEj2FkDGc9NBNmxkSFF+If750Iu4LCgO8bEfDapDCE94n00RA7hxnKYA2Pj27ZAKw5bT FBQS+bAM4SZLLb28REbO+tJmIXr6EwBedD1PIuGqxHUpwnbCd988JSVGQZqZg40FglLU FHxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cCjnWDX1; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b17si7922556ilc.122.2021.09.13.23.52.56; Mon, 13 Sep 2021 23:53:08 -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=@redhat.com header.s=mimecast20190719 header.b=cCjnWDX1; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240302AbhINGwY (ORCPT + 99 others); Tue, 14 Sep 2021 02:52:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:36679 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232570AbhINGwX (ORCPT ); Tue, 14 Sep 2021 02:52:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631602266; 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=cCjnWDX1eV7XLQalCYpMOmCVVYrt5qZKOeNqGZNOjisJQ7OxhSdMMZIIDhdjhrXyCH2bMO gl8GdKTJa+KBPVngIy/mcy3U3LCZaLji86PO1iAVf/I/cSCAmugnMypbqHawOmSndtPcrd w0E8pmyADZqXYCFYL9dg6ouIH6sYQaU= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-192-y21Sj3rBMwG5HLU4eeqkgA-1; Tue, 14 Sep 2021 02:51:02 -0400 X-MC-Unique: y21Sj3rBMwG5HLU4eeqkgA-1 Received: by mail-ej1-f72.google.com with SMTP id c25-20020a170906341900b005eea9bf6f4aso3375222ejb.12 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=OjA6b3l5QQclENwk8QsjY7JqI0BFOKmd0zlUVL4VswLdibQ5GUSqJFjs3pTeHPRNR9 qTGKdgKmAPjOcK2cGIFpoPYbxYzXkt4LvwL4iY6A3bJ9nZi59zaFNEe5QzKBSA80wnCh XttU16KEglGpsOf5El21aLJGrC2kRdJOjdPhwHqntJuw2JkBv4S4SYTLH2PQVs6QVZEU 1B7gzm8gkdIGQ5Re7yD4IAYsGbXb1IeTMOr1ARzjFxVJzSHaInCiawINwQ3VXtIZfxAH 1GngbwKCqWYEYifHSbm6P0IaH+wjAl4lckEhY7nrVy04S/AbekawjCcdJEV3lwuv/V6/ E+hw== X-Gm-Message-State: AOAM531aYF3KFO6j5SWfE398AdffOr4emUrOBp4Yb/bhBkQU8o62sswo knnk6cpB7HWwSIS8hCf01zmqjTngiUaCZzwP0nCR8AvTOikfdfZurudk9GR8ZvHNc3xldF6CP99 9Hxe+oJcHGyKqM5+YKGOM9O3K X-Received: by 2002:a17:906:686:: with SMTP id u6mr16587580ejb.569.1631602261019; Mon, 13 Sep 2021 23:51:01 -0700 (PDT) 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210913230955.156323-5-rananta@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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