# HG changeset patch # User kfraser@localhost.localdomain # Date 1155551757 -3600 # Node ID 22f278b5fcefa1bb2715436b8cff58c501f83898 # Parent 905ff6e616cc667a754d52c3017d8b82cc61a26d [HVM][LINUX] Add a header file with wrappers for hvm_op hypercall. Signed-off-by: Steven Smith diff -r 905ff6e616cc -r 22f278b5fcef linux-2.6-xen-sparse/include/xen/hvm.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-2.6-xen-sparse/include/xen/hvm.h Mon Aug 14 11:35:57 2006 +0100 @@ -0,0 +1,17 @@ +/* Simple wrappers around HVM functions */ +#ifndef XEN_HVM_H__ +#define XEN_HVM_H__ + +#include +#include + +static inline unsigned long hvm_get_parameter(int idx) +{ + struct xen_hvm_param xhv; + + xhv.domid = DOMID_SELF; + xhv.index = idx; + return HYPERVISOR_hvm_op(HVMOP_get_param, &xhv); +} + +#endif /* XEN_HVM_H__ */