1 /* Simple wrappers around HVM functions */
5 #include <xen/interface/hvm/params.h>
6 #ifndef HAVE_XEN_PLATFORM_COMPAT_H
7 #include <asm/xen/hypercall.h>
10 static inline int hvm_get_parameter(int idx, uint64_t *value)
12 struct xen_hvm_param xhv;
15 xhv.domid = DOMID_SELF;
17 r = HYPERVISOR_hvm_op(HVMOP_get_param, &xhv);
19 pr_err("Cannot get hvm parameter %d: %d!\n", idx, r);
26 #define HVM_CALLBACK_VIA_TYPE_VECTOR 0x2
27 #define HVM_CALLBACK_VIA_TYPE_SHIFT 56
28 #define HVM_CALLBACK_VECTOR(x) (((uint64_t)HVM_CALLBACK_VIA_TYPE_VECTOR)<<\
29 HVM_CALLBACK_VIA_TYPE_SHIFT | (x))
31 #endif /* XEN_HVM_H__ */