From: kfraser@localhost.localdomain Date: Mon, 14 Aug 2006 10:35:57 +0000 (+0100) Subject: [HVM][LINUX] Add a header file with wrappers for hvm_op hypercall. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15710^2~128 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c9edca86f1327ecebc565a27b96ac77589578d8f;p=xen.git [HVM][LINUX] Add a header file with wrappers for hvm_op hypercall. Signed-off-by: Steven Smith --- diff --git a/linux-2.6-xen-sparse/include/xen/hvm.h b/linux-2.6-xen-sparse/include/xen/hvm.h new file mode 100644 index 0000000000..25987ffee5 --- /dev/null +++ b/linux-2.6-xen-sparse/include/xen/hvm.h @@ -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__ */