[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1af3cb52-4311-4375-b384-71b0adeb8a32@redhat.com>
Date: Wed, 29 May 2024 19:17:45 +0200
From: Eric Auger <eauger@...hat.com>
To: Sebastian Ott <sebott@...hat.com>
Cc: linux-arm-kernel@...ts.infradead.org, kvmarm@...ts.linux.dev,
linux-kernel@...r.kernel.org, Marc Zyngier <maz@...nel.org>,
Oliver Upton <oliver.upton@...ux.dev>, James Morse <james.morse@....com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Catalin Marinas <catalin.marinas@....com>, Will Deacon <will@...nel.org>
Subject: Re: [PATCH v3 5/6] KVM: arm64: rename functions for invariant sys
regs
Hi Sebastian,
On 5/29/24 17:29, Sebastian Ott wrote:
> Hej Eric,
>
> On Wed, 29 May 2024, Eric Auger wrote:
>> On 5/14/24 09:22, Sebastian Ott wrote:
>>> Invariant system id registers are populated with host values
>>> at initialization time using their .reset function cb.
>> get_##reg call read_sysreg(). I don't really understand the above
>> sentence. Please could you elaborate?
>>
>
> struct sys_reg_desc has 2 function pointers (among others):
> .reset and .get_user . The functions implementing these are
> usually named accordingly. For invariant registers only
> .reset is used but set to functions that are called get_*
> (which is usually used to implement .get_user).
>
> E.g.: invariant_sys_regs[0].reset == get_midr_el1
>
> When trying to figure out this code I was confused by this, hence
> this patch..
Ah OK, since ".reset=" was not used in the initilization I missed that.
feel free to add my
Reviewed-by: Eric Auger <eric.auger@...hat.com>
Eric
>
> Sebastian
>
Powered by blists - more mailing lists