diff options
Diffstat (limited to 'include/xen/hvm.h')
-rw-r--r-- | include/xen/hvm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xen/hvm.h b/include/xen/hvm.h index 5dfe8fb86e67..b193fa2f9fdd 100644 --- a/include/xen/hvm.h +++ b/include/xen/hvm.h | |||
@@ -3,6 +3,7 @@ | |||
3 | #define XEN_HVM_H__ | 3 | #define XEN_HVM_H__ |
4 | 4 | ||
5 | #include <xen/interface/hvm/params.h> | 5 | #include <xen/interface/hvm/params.h> |
6 | #include <asm/xen/hypercall.h> | ||
6 | 7 | ||
7 | static inline int hvm_get_parameter(int idx, uint64_t *value) | 8 | static inline int hvm_get_parameter(int idx, uint64_t *value) |
8 | { | 9 | { |
@@ -21,4 +22,9 @@ static inline int hvm_get_parameter(int idx, uint64_t *value) | |||
21 | return r; | 22 | return r; |
22 | } | 23 | } |
23 | 24 | ||
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)) | ||
29 | |||
24 | #endif /* XEN_HVM_H__ */ | 30 | #endif /* XEN_HVM_H__ */ |