Skip to content
Snippets Groups Projects
Commit 726c4eef authored by iliya.saroukha's avatar iliya.saroukha :first_quarter_moon:
Browse files

wip: added vmxon inline assembly from the kernel's sources

parent 7fc74743
Branches
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment