ia64/xen-unstable

changeset 9565:b524714dfb66

Define __XEN_INTERFACE_VERSION__ when building Xen.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Sun Apr 02 09:48:04 2006 +0100 (2006-04-02)
parents 60071beccf18
children 99b2e765d643
files xen/include/public/xen-compat.h
line diff
     1.1 --- a/xen/include/public/xen-compat.h	Sat Apr 01 14:59:12 2006 +0100
     1.2 +++ b/xen/include/public/xen-compat.h	Sun Apr 02 09:48:04 2006 +0100
     1.3 @@ -9,10 +9,20 @@
     1.4  #ifndef __XEN_PUBLIC_XEN_COMPAT_H__
     1.5  #define __XEN_PUBLIC_XEN_COMPAT_H__
     1.6  
     1.7 -#ifndef __XEN_INTERFACE_VERSION__
     1.8 +#define __XEN_LATEST_INTERFACE_VERSION__ 0x00030101
     1.9 +
    1.10 +#if defined(__XEN__)
    1.11 +/* Xen is built with matching headers and implements the latest interface. */
    1.12 +#define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__
    1.13 +#elif !defined(__XEN_INTERFACE_VERSION__)
    1.14 +/* Guests which do not specify a version get the legacy interface. */
    1.15  #define __XEN_INTERFACE_VERSION__ 0x00000000
    1.16  #endif
    1.17  
    1.18 +#if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__
    1.19 +#error "These header files do not support the requested interface version."
    1.20 +#endif
    1.21 +
    1.22  #if __XEN_INTERFACE_VERSION__ < 0x00030101
    1.23  #undef __HYPERVISOR_sched_op
    1.24  #define __HYPERVISOR_sched_op __HYPERVISOR_sched_op_compat