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

refacto

parent 8b819fe8
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,10 @@ static int my_init(void) {
return -ENOMEM;
}
vmxon_regions[0] = vmxon_reg;
if (init_vcpu(&vcpus[0], vmxon_reg) != 0) {
pr_err("VCPU initialization failed\n");
return -EFAULT;
}
pr_info("VA of the allocated region = 0x%px\n", vmxon_reg);
pr_info("PA of the allocated region = 0x%lx\n", __pa(vmxon_reg));
......@@ -248,7 +251,7 @@ static void my_exit(void) {
}
pr_info("Freeing memory of the VMXON region\n");
kfree(vmxon_regions[0]);
kfree(vcpus[0].vmxon);
pr_info("vmbr.ko has exited\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment