1 /* Simple wrappers around HVM functions */
5 #include <xen/interface/hvm/params.h>
6 #include <asm/xen/hypercall.h>
8 static const char *param_name(int op
)
10 #define PARAM(x) [HVM_PARAM_##x] = #x
11 static const char *const names
[] = {
26 PARAM(CONSOLE_EVTCHN
),
30 if (op
>= ARRAY_SIZE(names
))
38 static inline int hvm_get_parameter(int idx
, uint64_t *value
)
40 struct xen_hvm_param xhv
;
43 xhv
.domid
= DOMID_SELF
;
45 r
= HYPERVISOR_hvm_op(HVMOP_get_param
, &xhv
);
47 pr_err("Cannot get hvm parameter %s (%d): %d!\n",
48 param_name(idx
), idx
, r
);
55 #define HVM_CALLBACK_VIA_TYPE_VECTOR 0x2
56 #define HVM_CALLBACK_VIA_TYPE_SHIFT 56
57 #define HVM_CALLBACK_VECTOR(x) (((uint64_t)HVM_CALLBACK_VIA_TYPE_VECTOR)<<\
58 HVM_CALLBACK_VIA_TYPE_SHIFT | (x))
60 #endif /* XEN_HVM_H__ */
This page took 0.032603 seconds and 5 git commands to generate.