File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ impl<H: AxVCpuHal> VmxVcpu<H> {
348348 if let Some ( hpa) = H :: EPTTranslator :: guest_phys_to_host_phys ( gpa) {
349349 let hva_ptr = H :: PagingHandler :: phys_to_virt ( hpa) . as_ptr ( ) ;
350350 for i in 0 ..read_size {
351- content. push ( unsafe { hva_ptr. add ( pgoff + i) . read ( ) } ) ;
351+ content. push ( unsafe { hva_ptr. add ( i) . read ( ) } ) ;
352352 }
353353 } else {
354354 return ax_err ! ( BadAddress ) ;
@@ -1382,7 +1382,7 @@ impl<H: AxVCpuHal> AxArchVCpu for VmxVcpu<H> {
13821382 }
13831383 }
13841384 }
1385- VmxExitReason :: EPT_VIOLATION => {
1385+ VmxExitReason :: EPT_VIOLATION | VmxExitReason :: TRIPLE_FAULT => {
13861386 let ept_info = self . nested_page_fault_info ( ) ?;
13871387
13881388 warn ! ( "VMX EPT-Exit: {:#x?} of {:#x?}" , ept_info, exit_info) ;
You can’t perform that action at this time.
0 commit comments