Skip to content

Commit 005c4ee

Browse files
committed
Cleanup unnecessary vmcs fields
1 parent 6c26bd7 commit 005c4ee

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

mythril/src/vcpu.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -310,16 +310,14 @@ impl VCpu {
310310
vmcs.write_with_fixed(
311311
vmcs::VmcsField::VmExitControls,
312312
(vmcs::VmExitCtrlFlags::IA32E_MODE
313-
| vmcs::VmExitCtrlFlags::LOAD_HOST_EFER
314-
| vmcs::VmExitCtrlFlags::SAVE_GUEST_EFER
315313
| vmcs::VmExitCtrlFlags::ACK_INTR_ON_EXIT)
316314
.bits(),
317315
msr::IA32_VMX_EXIT_CTLS,
318316
)?;
319317

320318
vmcs.write_with_fixed(
321319
vmcs::VmcsField::VmEntryControls,
322-
vmcs::VmEntryCtrlFlags::LOAD_GUEST_EFER.bits(),
320+
0,
323321
msr::IA32_VMX_ENTRY_CTLS,
324322
)?;
325323

@@ -506,14 +504,6 @@ impl VCpu {
506504
)?;
507505
self.skip_emulated_instruction()?;
508506
}
509-
vmexit::ExitInformation::WrMsr => {
510-
info!(
511-
"wrmsr: {:x}:{:x} to register 0x{:x}",
512-
guest_cpu.rdx as u32,
513-
guest_cpu.rax as u32,
514-
guest_cpu.rcx as u32
515-
);
516-
}
517507
vmexit::ExitInformation::InterruptWindow => {}
518508
vmexit::ExitInformation::ExternalInterrupt(info) => unsafe {
519509
match info.vector {

0 commit comments

Comments
 (0)