ia64/xen-unstable

view linux-2.6-xen-sparse/include/xen/hvm.h @ 11101:22f278b5fcef

[HVM][LINUX] Add a header file with wrappers for hvm_op hypercall.
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
children 00a70786e550
line source
1 /* Simple wrappers around HVM functions */
2 #ifndef XEN_HVM_H__
3 #define XEN_HVM_H__
5 #include <xen/interface/hvm/params.h>
6 #include <asm/hypercall.h>
8 static inline unsigned long hvm_get_parameter(int idx)
9 {
10 struct xen_hvm_param xhv;
12 xhv.domid = DOMID_SELF;
13 xhv.index = idx;
14 return HYPERVISOR_hvm_op(HVMOP_get_param, &xhv);
15 }
17 #endif /* XEN_HVM_H__ */