ia64/xen-unstable

changeset 9875:4e0f2272fbcd

Bump Xen interface version number to 0x00030201 for new
structural guest handles.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Apr 27 14:03:22 2006 +0100 (2006-04-27)
parents ec61a8c25429
children 15788ab9fce2
files linux-2.6-xen-sparse/arch/ia64/Kconfig linux-2.6-xen-sparse/drivers/xen/Kconfig tools/Rules.mk xen/include/public/xen-compat.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/ia64/Kconfig	Thu Apr 27 13:58:50 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/ia64/Kconfig	Thu Apr 27 14:03:22 2006 +0100
     1.3 @@ -106,7 +106,7 @@ config XEN_SYSFS
     1.4  config XEN_INTERFACE_VERSION
     1.5  	hex
     1.6  	depends on XEN
     1.7 -	default 0x00030101
     1.8 +	default 0x00030201
     1.9  
    1.10  config SCHED_NO_NO_OMIT_FRAME_POINTER
    1.11  	bool
     2.1 --- a/linux-2.6-xen-sparse/drivers/xen/Kconfig	Thu Apr 27 13:58:50 2006 +0100
     2.2 +++ b/linux-2.6-xen-sparse/drivers/xen/Kconfig	Thu Apr 27 14:03:22 2006 +0100
     2.3 @@ -13,7 +13,7 @@ config XEN
     2.4  if XEN
     2.5  config XEN_INTERFACE_VERSION
     2.6  	hex
     2.7 -	default 0x00030101
     2.8 +	default 0x00030201
     2.9  
    2.10  menu "XEN"
    2.11  
     3.1 --- a/tools/Rules.mk	Thu Apr 27 13:58:50 2006 +0100
     3.2 +++ b/tools/Rules.mk	Thu Apr 27 14:03:22 2006 +0100
     3.3 @@ -12,7 +12,7 @@ XEN_LIBXENSTAT     = $(XEN_ROOT)/tools/x
     3.4  
     3.5  X11_LDPATH = -L/usr/X11R6/$(LIBDIR)
     3.6  
     3.7 -CFLAGS += -D__XEN_INTERFACE_VERSION__=0x00030101
     3.8 +CFLAGS += -D__XEN_INTERFACE_VERSION__=0x00030201
     3.9  
    3.10  %.opic: %.c
    3.11  	$(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
     4.1 --- a/xen/include/public/xen-compat.h	Thu Apr 27 13:58:50 2006 +0100
     4.2 +++ b/xen/include/public/xen-compat.h	Thu Apr 27 14:03:22 2006 +0100
     4.3 @@ -9,7 +9,7 @@
     4.4  #ifndef __XEN_PUBLIC_XEN_COMPAT_H__
     4.5  #define __XEN_PUBLIC_XEN_COMPAT_H__
     4.6  
     4.7 -#define __XEN_LATEST_INTERFACE_VERSION__ 0x00030101
     4.8 +#define __XEN_LATEST_INTERFACE_VERSION__ 0x00030201
     4.9  
    4.10  #if defined(__XEN__)
    4.11  /* Xen is built with matching headers and implements the latest interface. */
    4.12 @@ -23,9 +23,17 @@
    4.13  #error "These header files do not support the requested interface version."
    4.14  #endif
    4.15  
    4.16 +/* New sched_op hypercall introduced in 0x00030101. */
    4.17  #if __XEN_INTERFACE_VERSION__ < 0x00030101
    4.18  #undef __HYPERVISOR_sched_op
    4.19  #define __HYPERVISOR_sched_op __HYPERVISOR_sched_op_compat
    4.20  #endif
    4.21  
    4.22 +/* Structural guest handles introduced in 0x00030201. */
    4.23 +#if __XEN_INTERFACE_VERSION__ < 0x00030201
    4.24 +#undef __DEFINE_XEN_GUEST_HANDLE
    4.25 +#define __DEFINE_XEN_GUEST_HANDLE(name, type) \
    4.26 +    typedef type * __guest_handle_ ## name
    4.27 +#endif
    4.28 +
    4.29  #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */