[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3dea8d70-9f04-4410-8063-d98c392c10c7@linux.ibm.com>
Date: Wed, 5 Jun 2024 18:43:02 +0530
From: Shivaprasad G Bhat <sbhat@...ux.ibm.com>
To: Nicholas Piggin <npiggin@...il.com>, kvm@...r.kernel.org,
linux-doc@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org
Cc: pbonzini@...hat.com, naveen.n.rao@...ux.ibm.com,
christophe.leroy@...roup.eu, corbet@....net, mpe@...erman.id.au,
namhyung@...nel.org, jniethe5@...il.com, atrajeev@...ux.vnet.ibm.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 6/6] KVM: PPC: Book3S HV: Add one-reg interface for
HASHKEYR register
On 6/4/24 11:37, Nicholas Piggin wrote:
> On Mon Jun 3, 2024 at 9:15 PM AEST, Shivaprasad G Bhat wrote:
>> The patch adds a one-reg register identifier which can be used to
>> read and set the virtual HASHKEYR for the guest during enter/exit
>> with KVM_REG_PPC_HASHKEYR. The specific SPR KVM API documentation
>> too updated.
>>
>> Signed-off-by: Shivaprasad G Bhat <sbhat@...ux.ibm.com>
>> ---
>> Documentation/virt/kvm/api.rst | 1 +
>> arch/powerpc/include/uapi/asm/kvm.h | 1 +
>> arch/powerpc/kvm/book3s_hv.c | 6 ++++++
>> tools/arch/powerpc/include/uapi/asm/kvm.h | 1 +
>> 4 files changed, 9 insertions(+)
>>
>> diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst
>> index 81077c654281..0c22cb4196d8 100644
>> --- a/Documentation/virt/kvm/api.rst
>> +++ b/Documentation/virt/kvm/api.rst
>> @@ -2439,6 +2439,7 @@ registers, find a list below:
>> PPC KVM_REG_PPC_PSSCR 64
>> PPC KVM_REG_PPC_DEC_EXPIRY 64
>> PPC KVM_REG_PPC_PTCR 64
>> + PPC KVM_REG_PPC_HASHKEYR 64
> Just looking at the QEMU side of this change made me think... AFAIKS
> we need to also set and get and migrate the HASHPKEY SPR.
Thanks Nick. I have posted the v2 with changes for HASHPKEYR
and your other suggestions at
171759276071.1480.9356137231993600304.stgit@...ux.ibm.com
Regards,
Shivaprasad
>
> The hashst/hashchk test cases might be "working" by chance if the SPR
> is always zero :/
>
> Thanks,
> Nick
Powered by blists - more mailing lists