From 559a70913b10ff75c82d3bbc9129405acf6fe0c6 Mon Sep 17 00:00:00 2001
From: Peng Fan <peng.fan@nxp.com>
Date: Thu, 15 Nov 2018 13:15:24 +0800
Subject: [PATCH] MLK-20373-3 armv8: xen: introduce new hypercalls

Introduce new hypercalls

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit e1610fa574b20794c184e00d86c9d0f7505672f1)
(cherry picked from commit 6e9e957e8d0891e4ec3bfb4b6c2bbef747eb8812)
(cherry picked from commit 46a34b4456fb895786d25721b54a10e0182cb312)
---
 arch/arm/cpu/armv8/xen/hypercall.S | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/cpu/armv8/xen/hypercall.S b/arch/arm/cpu/armv8/xen/hypercall.S
index fb8d05a..4d800d2 100644
--- a/arch/arm/cpu/armv8/xen/hypercall.S
+++ b/arch/arm/cpu/armv8/xen/hypercall.S
@@ -7,8 +7,27 @@
 #include <xen.h>
 
 .globl HYPERVISOR_console_io;
+.globl HYPERVISOR_event_channel_op;
+.globl HYPERVISOR_hvm_op;
+.globl HYPERVISOR_sched_op;
+
 .align 4;
 HYPERVISOR_console_io:
 	mov x16, __HYPERVISOR_console_io;
 	hvc 0xEA1;
 	ret;
+
+HYPERVISOR_event_channel_op:
+	mov x16, __HYPERVISOR_event_channel_op;
+	hvc 0xEA1;
+	ret;
+
+HYPERVISOR_hvm_op:
+	mov x16, __HYPERVISOR_hvm_op;
+	hvc 0xEA1;
+	ret;
+
+HYPERVISOR_sched_op:
+	mov x16, __HYPERVISOR_sched_op;
+	hvc 0xEA1;
+	ret;
-- 
1.9.1