On Fri, May 25, 2018 at 11:31:17AM +0200, Roger Pau Monné wrote:
> On Thu, May 24, 2018 at 05:05:18PM +0100, Wei Liu wrote:
> > This is a step towards consolidating relevant data structures and
> > defines to one location.
> > 
> > It then requires defining cpuid_leaf in user space harness headers to
> > make them continue to compile.
> > 
> > No functional change.
> > 
> > Signed-off-by: Wei Liu <wei.l...@citrix.com>
> > ---
> > Cc: Jan Beulich <jbeul...@suse.com>
> > Cc: Andrew Cooper <andrew.coop...@citrix.com>
> > ---
> >  tools/tests/x86_emulator/x86-emulate.h | 6 ++++++
> >  xen/arch/x86/x86_emulate/x86_emulate.h | 6 +-----
> >  xen/include/asm-x86/cpuid.h            | 4 ++++
> >  3 files changed, 11 insertions(+), 5 deletions(-)
> > 
> > diff --git a/tools/tests/x86_emulator/x86-emulate.h 
> > b/tools/tests/x86_emulator/x86-emulate.h
> > index c5e85de3a2..8ae31a2f9a 100644
> > --- a/tools/tests/x86_emulator/x86-emulate.h
> > +++ b/tools/tests/x86_emulator/x86-emulate.h
> > @@ -79,6 +79,12 @@ WRAP(puts);
> >  
> >  #undef WRAP
> >  
> > +#ifndef cpuid_leaf
> > +struct cpuid_leaf {
> > +    uint32_t a, b, c, d;
> > +};
> > +#endif
> 
> Do you really need the ifndef? AFAICT this header will always be
> included from the test harness, which has no definition of cpuid_leaf.

It is not strictly required.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to