|
@@ -8,15 +8,28 @@
|
|
|
*/
|
|
|
|
|
|
#ifdef CONFIG_X86
|
|
|
+
|
|
|
+#include <asm/jailhouse_para.h>
|
|
|
#include <asm/x86_init.h>
|
|
|
+
|
|
|
static inline void hypervisor_pin_vcpu(int cpu)
|
|
|
{
|
|
|
x86_platform.hyper.pin_vcpu(cpu);
|
|
|
}
|
|
|
-#else
|
|
|
+
|
|
|
+#else /* !CONFIG_X86 */
|
|
|
+
|
|
|
+#include <linux/of.h>
|
|
|
+
|
|
|
static inline void hypervisor_pin_vcpu(int cpu)
|
|
|
{
|
|
|
}
|
|
|
-#endif
|
|
|
+
|
|
|
+static inline bool jailhouse_paravirt(void)
|
|
|
+{
|
|
|
+ return of_find_compatible_node(NULL, NULL, "jailhouse,cell");
|
|
|
+}
|
|
|
+
|
|
|
+#endif /* !CONFIG_X86 */
|
|
|
|
|
|
#endif /* __LINUX_HYPEVISOR_H */
|