On 02.10.2020 13:30, Andrew Cooper wrote:
> The error message is wrong (given AMD's older interpretation of what a NUL
> segment should contain, attribute wise), and actively unhelpful because you
> only get it in response to a hypercall where the one piece of information you
> cannot provide is the segment selector.
> 
> Fix the message to talk about segment attributes, rather than the selector.
> 
> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>

Acked-by: Jan Beulich <jbeul...@suse.com>
albeit ...

> --- a/xen/arch/x86/hvm/domain.c
> +++ b/xen/arch/x86/hvm/domain.c
> @@ -39,7 +39,7 @@ static int check_segment(struct segment_register *reg, enum 
> x86_segment seg)
>      {
>          if ( seg != x86_seg_ds && seg != x86_seg_es )
>          {
> -            gprintk(XENLOG_ERR, "Null selector provided for CS, SS or TR\n");
> +            gprintk(XENLOG_ERR, "Empty segment attributes for CS, SS or 
> TR\n");

... may I suggest "Null" or "Zero" instead of "Empty"?

Jan

Reply via email to