]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/xen/xen.h
Merge branches 'for-4.11/upstream-fixes', 'for-4.12/accutouch', 'for-4.12/cp2112...
[mirror_ubuntu-artful-kernel.git] / include / xen / xen.h
index f0f0252cff9aab2442e8df64430ec118a2f391aa..6e8b7fc798017e4c13188339cf83b1e68fcd16e4 100644 (file)
@@ -30,16 +30,10 @@ extern enum xen_domain_type xen_domain_type;
 #endif /* CONFIG_XEN_DOM0 */
 
 #ifdef CONFIG_XEN_PVH
-/* This functionality exists only for x86. The XEN_PVHVM support exists
- * only in x86 world - hence on ARM it will be always disabled.
- * N.B. ARM guests are neither PV nor HVM nor PVHVM.
- * It's a bit like PVH but is different also (it's further towards the H
- * end of the spectrum than even PVH).
- */
-#include <xen/features.h>
-#define xen_pvh_domain() (xen_pv_domain() && \
-                         xen_feature(XENFEAT_auto_translated_physmap))
+extern bool xen_pvh;
+#define xen_pvh_domain()       (xen_hvm_domain() && xen_pvh)
 #else
 #define xen_pvh_domain()       (0)
 #endif
+
 #endif /* _XEN_XEN_H */