From 726c4eef5e767751123466d32e29724fc92c47b2 Mon Sep 17 00:00:00 2001 From: "iliya.saroukha" <iliya.saroukhanian@etu.hesge.ch> Date: Mon, 20 Jan 2025 20:36:14 +0100 Subject: [PATCH] wip: added vmxon inline assembly from the kernel's sources --- proto/hypervisor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proto/hypervisor.c b/proto/hypervisor.c index 3984043..1070b1f 100644 --- a/proto/hypervisor.c +++ b/proto/hypervisor.c @@ -70,6 +70,12 @@ static unsigned char vmxon(unsigned long long pa) { : [pa] "m"(pa) : "cc", "memory"); + /*asm goto("1: vmxon %[vmxon_pointer]\n\t" _ASM_EXTABLE(1b, % l[fault])*/ + /* :*/ + /* : [vmxon_pointer] "m"(vmxon_pointer)*/ + /* :*/ + /* : fault);*/ + unsigned long long rflags; __asm__ volatile("pushfq; popq %0" : "=r"(rflags)); -- GitLab