a8f6ac0573
Move FreeBSD from interface version 0x00030204 to 0x00030208. Updates are required to our grant table implementation before we can bump this further. sys/xen/hvm.h: Replace the implementation of hvm_get_parameter(), formerly located in sys/xen/interface/hvm/params.h. Linux has a similar file which primarily stores this function. sys/xen/xenstore/xenstore.c: Include new xen/hvm.h header file to get hvm_get_parameter(). sys/amd64/include/xen/xen-os.h: sys/i386/include/xen/xen-os.h: Correctly protect function definition and variables from being included into assembly files in xen-os.h Xen memory barriers are now prefixed with "xen_" to avoid conflicts with OS native primatives. Define Xen memory barriers in terms of the native FreeBSD primatives. Sponsored by: Spectra Logic Corporation Reviewed by: Roger Pau Monné Tested by: Roger Pau Monné Obtained from: Roger Pau Monné (bug fixes)
95 lines
3.0 KiB
C
95 lines
3.0 KiB
C
/******************************************************************************
|
|
* version.h
|
|
*
|
|
* Xen version, type, and compile information.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* of this software and associated documentation files (the "Software"), to
|
|
* deal in the Software without restriction, including without limitation the
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
* sell copies of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*
|
|
* Copyright (c) 2005, Nguyen Anh Quynh <aquynh@gmail.com>
|
|
* Copyright (c) 2005, Keir Fraser <keir@xensource.com>
|
|
*/
|
|
|
|
#ifndef __XEN_PUBLIC_VERSION_H__
|
|
#define __XEN_PUBLIC_VERSION_H__
|
|
|
|
/* NB. All ops return zero on success, except XENVER_{version,pagesize} */
|
|
|
|
/* arg == NULL; returns major:minor (16:16). */
|
|
#define XENVER_version 0
|
|
|
|
/* arg == xen_extraversion_t. */
|
|
#define XENVER_extraversion 1
|
|
typedef char xen_extraversion_t[16];
|
|
#define XEN_EXTRAVERSION_LEN (sizeof(xen_extraversion_t))
|
|
|
|
/* arg == xen_compile_info_t. */
|
|
#define XENVER_compile_info 2
|
|
struct xen_compile_info {
|
|
char compiler[64];
|
|
char compile_by[16];
|
|
char compile_domain[32];
|
|
char compile_date[32];
|
|
};
|
|
typedef struct xen_compile_info xen_compile_info_t;
|
|
|
|
#define XENVER_capabilities 3
|
|
typedef char xen_capabilities_info_t[1024];
|
|
#define XEN_CAPABILITIES_INFO_LEN (sizeof(xen_capabilities_info_t))
|
|
|
|
#define XENVER_changeset 4
|
|
typedef char xen_changeset_info_t[64];
|
|
#define XEN_CHANGESET_INFO_LEN (sizeof(xen_changeset_info_t))
|
|
|
|
#define XENVER_platform_parameters 5
|
|
struct xen_platform_parameters {
|
|
unsigned long virt_start;
|
|
};
|
|
typedef struct xen_platform_parameters xen_platform_parameters_t;
|
|
|
|
#define XENVER_get_features 6
|
|
struct xen_feature_info {
|
|
unsigned int submap_idx; /* IN: which 32-bit submap to return */
|
|
uint32_t submap; /* OUT: 32-bit submap */
|
|
};
|
|
typedef struct xen_feature_info xen_feature_info_t;
|
|
|
|
/* Declares the features reported by XENVER_get_features. */
|
|
#include "features.h"
|
|
|
|
/* arg == NULL; returns host memory page size. */
|
|
#define XENVER_pagesize 7
|
|
|
|
/* arg == xen_domain_handle_t. */
|
|
#define XENVER_guest_handle 8
|
|
|
|
#define XENVER_commandline 9
|
|
typedef char xen_commandline_t[1024];
|
|
|
|
#endif /* __XEN_PUBLIC_VERSION_H__ */
|
|
|
|
/*
|
|
* Local variables:
|
|
* mode: C
|
|
* c-set-style: "BSD"
|
|
* c-basic-offset: 4
|
|
* tab-width: 4
|
|
* indent-tabs-mode: nil
|
|
* End:
|
|
*/
|