diff options
Diffstat (limited to 'include/xen/xen.h')
-rw-r--r-- | include/xen/xen.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/xen/xen.h b/include/xen/xen.h index a74d4362c4f8..0c0e3ef4c45d 100644 --- a/include/xen/xen.h +++ b/include/xen/xen.h | |||
@@ -29,4 +29,18 @@ extern enum xen_domain_type xen_domain_type; | |||
29 | #define xen_initial_domain() (0) | 29 | #define xen_initial_domain() (0) |
30 | #endif /* CONFIG_XEN_DOM0 */ | 30 | #endif /* CONFIG_XEN_DOM0 */ |
31 | 31 | ||
32 | #ifdef CONFIG_XEN_PVH | ||
33 | /* This functionality exists only for x86. The XEN_PVHVM support exists | ||
34 | * only in x86 world - hence on ARM it will be always disabled. | ||
35 | * N.B. ARM guests are neither PV nor HVM nor PVHVM. | ||
36 | * It's a bit like PVH but is different also (it's further towards the H | ||
37 | * end of the spectrum than even PVH). | ||
38 | */ | ||
39 | #include <xen/features.h> | ||
40 | #define xen_pvh_domain() (xen_pv_domain() && \ | ||
41 | xen_feature(XENFEAT_auto_translated_physmap) && \ | ||
42 | xen_have_vector_callback) | ||
43 | #else | ||
44 | #define xen_pvh_domain() (0) | ||
45 | #endif | ||
32 | #endif /* _XEN_XEN_H */ | 46 | #endif /* _XEN_XEN_H */ |