[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 04/12] x86emul/test: use x86-vendors.h



>>> On 31.01.17 at 15:36, <wei.liu2@xxxxxxxxxx> wrote:
> On Tue, Jan 31, 2017 at 05:50:09AM -0700, Jan Beulich wrote:
>> >>> On 31.01.17 at 12:08, <wei.liu2@xxxxxxxxxx> wrote:
>> > --- a/tools/tests/x86_emulator/x86_emulate.h
>> > +++ b/tools/tests/x86_emulator/x86_emulate.h
>> > @@ -6,6 +6,8 @@
>> >  #include <string.h>
>> >  #include <xen/xen.h>
>> >  
>> > +#include "../../../xen/include/asm-x86/x86-vendors.h"
>> 
>> I think we'd better avoid includes of this style. May I suggest
>> symlinking the needed headers, just like we already do with the
>> x86_emulate/x86_emulate[ch] files (perhaps to an include/
>> subdirectory in the build tree)?
> 
> I will just link this (and later headers) to tools/tests/x86_emulator --
> using a dedicated directory is not strictly necessary.

Hmm, for consistency with hypervisor #include directives, linking
to asm/ (and adding -I. to CFLAGS) might be a good idea.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.