On 15.03.2023 23:10, Andrew Cooper wrote:
> This removes raw number manipulation, and makes the logic easier to follow.
> 
> No functional change.
> 
> Signed-off-by: Andrew Cooper <[email protected]>

Reviewed-by: Jan Beulich <[email protected]>

But I have a question:

> --- a/xen/arch/x86/include/asm/hvm/svm/vmcb.h
> +++ b/xen/arch/x86/include/asm/hvm/svm/vmcb.h
> @@ -436,6 +436,20 @@ struct vmcb_struct {
>              uint64_t exitinfo2; /* offset 0x80 */
>          };
>          union {
> +            struct {
> +                bool     in:1;
> +                bool     :1;
> +                bool     str:1;
> +                bool     /* rep */:1;
> +                uint16_t bytes:3;
> +                uint16_t /* asz */:3;
> +                uint16_t /* seg */:3;

Is there a particular reason you comment out some of the field names? I
can see that "asz" might be a little odd to use, but both "rep" and "seg"
are imo fine to have a name even if currently there's nothing accessing
these fields.

Jan

Reply via email to