Re: [PATCH Part2 v6 05/49] x86/sev: Add RMP entry lookup helpers

From: Borislav Petkov
Date: Mon Jul 25 2022 - 10:32:22 EST


On Mon, Jun 20, 2022 at 11:02:33PM +0000, Ashish Kalra wrote:
> +/*
> + * The RMP entry format is not architectural. The format is defined in PPR
> + * Family 19h Model 01h, Rev B1 processor.
> + */
> +struct __packed rmpentry {

That __packed goes...

> + union {
> + struct {
> + u64 assigned : 1,
> + pagesize : 1,
> + immutable : 1,
> + rsvd1 : 9,
> + gpa : 39,
> + asid : 10,
> + vmsa : 1,
> + validated : 1,
> + rsvd2 : 1;
> + } info;
> + u64 low;
> + };
> + u64 high;
> +};

... here, at the end.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette