From 2f40db1d5079e3344759093e6730ba9e6de94737 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Fri, 26 May 2017 16:46:48 +0200 Subject: [PATCH] forward only guest physical address to the hypervisor --- kernel/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/syscall.c b/kernel/syscall.c index 094186164..ea106d2f7 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -90,7 +90,7 @@ typedef struct { void NORETURN sys_exit(int arg) { if (is_uhyve()) { - uhyve_send(UHYVE_PORT_EXIT, (unsigned) (size_t) &arg); + uhyve_send(UHYVE_PORT_EXIT, (unsigned) virt_to_phys((size_t) &arg)); } else { sys_exit_t sysargs = {__NR_exit, arg};