Re: [Xen-devel] [PATCH 1/7] x86emul: add wrappers to check for AMD-like behavior

2020-03-25 Thread Andrew Cooper
On 24/03/2020 16:26, Jan Beulich wrote: > @@ -1995,7 +2007,7 @@ protmode_load_seg( > case x86_seg_tr: > goto raise_exn; > } > -if ( !(cp->x86_vendor & (X86_VENDOR_AMD | X86_VENDOR_HYGON)) || > +if ( !_amd_like(cp) || > !ops->read_segment

[Xen-devel] [PATCH 1/7] x86emul: add wrappers to check for AMD-like behavior

2020-03-24 Thread Jan Beulich
These are to aid readbility at their use sites, in particular because we're going to gain more of them. Suggested-by: Andrew Cooper Signed-off-by: Jan Beulich --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -1836,6 +1836,18 @@ in_protmode( retur