1 /* Simple wrappers around HVM functions */
5 #include <xen/interface/hvm/params.h>
6 #include <asm/xen/hypercall.h>
8 static inline int hvm_get_parameter(int idx
, uint64_t *value
)
10 struct xen_hvm_param xhv
;
13 xhv
.domid
= DOMID_SELF
;
15 r
= HYPERVISOR_hvm_op(HVMOP_get_param
, &xhv
);
17 printk(KERN_ERR
"Cannot get hvm parameter %d: %d!\n",
25 #define HVM_CALLBACK_VIA_TYPE_VECTOR 0x2
26 #define HVM_CALLBACK_VIA_TYPE_SHIFT 56
27 #define HVM_CALLBACK_VECTOR(x) (((uint64_t)HVM_CALLBACK_VIA_TYPE_VECTOR)<<\
28 HVM_CALLBACK_VIA_TYPE_SHIFT | (x))
30 #endif /* XEN_HVM_H__ */
This page took 0.030155 seconds and 5 git commands to generate.