mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-23 03:53:26 +00:00
Revert "Merge Master"
This commit is contained in:
@ -264,7 +264,7 @@ extern "C" fn vmexit_handler() {
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub fn adjust_rip(rip: u64) -> Result<(), SystemError> {
|
||||
fn adjust_rip(rip: u64) -> Result<(), SystemError> {
|
||||
let instruction_length = vmx_vmread(VmcsFields::VMEXIT_INSTR_LEN as u32)?;
|
||||
vmx_vmwrite(VmcsFields::GUEST_RIP as u32, rip + instruction_length)?;
|
||||
Ok(())
|
||||
|
Reference in New Issue
Block a user