ia64/xen-unstable
changeset 11101:22f278b5fcef
[HVM][LINUX] Add a header file with wrappers for hvm_op hypercall.
Signed-off-by: Steven Smith <ssmith@xensource.com>
Signed-off-by: Steven Smith <ssmith@xensource.com>
author | kfraser@localhost.localdomain |
---|---|
date | Mon Aug 14 11:35:57 2006 +0100 (2006-08-14) |
parents | 905ff6e616cc |
children | 9c953e1b6fad |
files | linux-2.6-xen-sparse/include/xen/hvm.h |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux-2.6-xen-sparse/include/xen/hvm.h Mon Aug 14 11:35:57 2006 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +/* Simple wrappers around HVM functions */ 1.5 +#ifndef XEN_HVM_H__ 1.6 +#define XEN_HVM_H__ 1.7 + 1.8 +#include <xen/interface/hvm/params.h> 1.9 +#include <asm/hypercall.h> 1.10 + 1.11 +static inline unsigned long hvm_get_parameter(int idx) 1.12 +{ 1.13 + struct xen_hvm_param xhv; 1.14 + 1.15 + xhv.domid = DOMID_SELF; 1.16 + xhv.index = idx; 1.17 + return HYPERVISOR_hvm_op(HVMOP_get_param, &xhv); 1.18 +} 1.19 + 1.20 +#endif /* XEN_HVM_H__ */