This commit is contained in:
Masato Imai
2025-05-01 10:31:59 +00:00
parent e164a0d252
commit a1277fbae1
5 changed files with 2 additions and 4 deletions

BIN
bzImage Normal file

Binary file not shown.

View File

@ -103,7 +103,6 @@ impl EPT {
lv2_entry.set_read(true); lv2_entry.set_read(true);
lv2_entry.set_write(true); lv2_entry.set_write(true);
lv2_entry.set_exec_super(true); lv2_entry.set_exec_super(true);
info!("{:#x}", lv2_entry as *const _ as u64);
Ok(()) Ok(())
} }

1
src/vmm/linux.rs Normal file
View File

@ -0,0 +1 @@
pub const BZIMAGE: &'static [u8] = include_bytes!("../../bzImage");

View File

@ -1,5 +1,6 @@
pub mod ept; pub mod ept;
pub mod error; pub mod error;
pub mod linux;
pub mod register; pub mod register;
pub mod support; pub mod support;
pub mod vcpu; pub mod vcpu;

View File

@ -575,9 +575,6 @@ impl VCpu {
"mov r14, [rax+{14}]", "mov r14, [rax+{14}]",
"mov r15, [rax+{15}]", "mov r15, [rax+{15}]",
"mov rax, [rax+{16}]", "mov rax, [rax+{16}]",
"jz 2f",
"vmresume",
"2:",
"vmlaunch", "vmlaunch",
"mov ax, 1", "mov ax, 1",
"add rsp, 8", "add rsp, 8",