diff --git a/hypervisor/src/hardware_vt/svm.rs b/hypervisor/src/hardware_vt/svm.rs index 541b6bb..5b47ac0 100644 --- a/hypervisor/src/hardware_vt/svm.rs +++ b/hypervisor/src/hardware_vt/svm.rs @@ -477,7 +477,7 @@ extern "efiapi" { /// Runs the guest until #VMEXIT occurs. fn run_vm_svm(registers: &mut GuestRegisters, guest_vmcb_pa: *mut Vmcb); } -global_asm!(include_str!("svm_run_vm.nasm")); +global_asm!(include_str!("svm_run_vm.S")); /// Returns the access rights of the given segment for SVM. fn get_segment_access_right(table_base: u64, selector: u16) -> u16 { diff --git a/hypervisor/src/hardware_vt/svm_run_vm.nasm b/hypervisor/src/hardware_vt/svm_run_vm.S similarity index 100% rename from hypervisor/src/hardware_vt/svm_run_vm.nasm rename to hypervisor/src/hardware_vt/svm_run_vm.S diff --git a/hypervisor/src/hardware_vt/vmx.rs b/hypervisor/src/hardware_vt/vmx.rs index 8676464..3bcbd59 100644 --- a/hypervisor/src/hardware_vt/vmx.rs +++ b/hypervisor/src/hardware_vt/vmx.rs @@ -739,7 +739,7 @@ extern "efiapi" { /// Runs the guest until VM-exit occurs. fn run_vm_vmx(registers: &mut GuestRegisters, launched: u64) -> u64; } -global_asm!(include_str!("vmx_run_vm.nasm")); +global_asm!(include_str!("vmx_run_vm.S")); /// The wrapper of the VMXON instruction. fn vmxon(vmxon_region: &mut Vmxon) { diff --git a/hypervisor/src/hardware_vt/vmx_run_vm.nasm b/hypervisor/src/hardware_vt/vmx_run_vm.S similarity index 100% rename from hypervisor/src/hardware_vt/vmx_run_vm.nasm rename to hypervisor/src/hardware_vt/vmx_run_vm.S