debuggers.hg

view xen/include/public/version.h @ 10986:49dcd838b7df

[HVMLOADER] HVM loader initialises hypercall shim and uses
it to interrogate Xen version information. Also add support
for HVM hypercall execution on 64-bit host.

Signed-off-by: Steven Smith <ssmith@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Aug 04 20:30:12 2006 +0100 (2006-08-04)
parents 6604238412be
children 8d0e06c38c0c
line source
1 /******************************************************************************
2 * version.h
3 *
4 * Xen version, type, and compile information.
5 *
6 * Copyright (c) 2005, Nguyen Anh Quynh <aquynh@gmail.com>
7 * Copyright (c) 2005, Keir Fraser <keir@xensource.com>
8 */
10 #ifndef __XEN_PUBLIC_VERSION_H__
11 #define __XEN_PUBLIC_VERSION_H__
13 /* NB. All ops return zero on success, except XENVER_{version,pagesize} */
15 /* arg == NULL; returns major:minor (16:16). */
16 #define XENVER_version 0
18 /* arg == xen_extraversion_t. */
19 #define XENVER_extraversion 1
20 typedef char xen_extraversion_t[16];
21 #define XEN_EXTRAVERSION_LEN (sizeof(xen_extraversion_t))
23 /* arg == xen_compile_info_t. */
24 #define XENVER_compile_info 2
25 struct xen_compile_info {
26 char compiler[64];
27 char compile_by[16];
28 char compile_domain[32];
29 char compile_date[32];
30 };
31 typedef struct xen_compile_info xen_compile_info_t;
33 #define XENVER_capabilities 3
34 typedef char xen_capabilities_info_t[1024];
35 #define XEN_CAPABILITIES_INFO_LEN (sizeof(xen_capabilities_info_t))
37 #define XENVER_changeset 4
38 typedef char xen_changeset_info_t[64];
39 #define XEN_CHANGESET_INFO_LEN (sizeof(xen_changeset_info_t))
41 #define XENVER_platform_parameters 5
42 struct xen_platform_parameters {
43 unsigned long virt_start;
44 };
45 typedef struct xen_platform_parameters xen_platform_parameters_t;
47 #define XENVER_get_features 6
48 struct xen_feature_info {
49 unsigned int submap_idx; /* IN: which 32-bit submap to return */
50 uint32_t submap; /* OUT: 32-bit submap */
51 };
52 typedef struct xen_feature_info xen_feature_info_t;
54 /* Declares the features reported by XENVER_get_features. */
55 #include "features.h"
57 /* arg == NULL; returns host memory page size. */
58 #define XENVER_pagesize 7
60 /* arg == xen_domain_handle_t. */
61 #define XENVER_guest_handle 8
63 #endif /* __XEN_PUBLIC_VERSION_H__ */
65 /*
66 * Local variables:
67 * mode: C
68 * c-set-style: "BSD"
69 * c-basic-offset: 4
70 * tab-width: 4
71 * indent-tabs-mode: nil
72 * End:
73 */