[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-crypto-vger
Subject: Re: [PATCH v2 10/25] x86/sev: Add helper functions for RMPUPDATE and PSMASH instruction
From: Borislav Petkov <bp () alien8 ! de>
Date: 2024-01-29 19:33:44
Message-ID: 20240129193344.GFZbf9mEIxZg7ZEb8f () fat_crate ! local
[Download RAW message or body]
On Mon, Jan 29, 2024 at 08:28:20PM +0100, Borislav Petkov wrote:
> On Mon, Jan 29, 2024 at 06:00:36PM +0000, Liam Merwick wrote:
> > asid is typically a u32 (or at least unsigned) - is it better to avoid
> > potential conversion issues with an 'int'?
>
> struct rmp_state.asid is already u32 but yeah, lemme fix that.
Btw,
static int sev_get_asid(struct kvm *kvm)
{
struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info;
return sev->asid;
}
whereas
struct kvm_sev_info {
...
unsigned int asid; /* ASID used for this guest */
so that function needs fixing too.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic