Skip to content

Commit 4bba1de

Browse files
committed
Try gdb patch
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
1 parent a4b37be commit 4bba1de

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/hyperlight_host/src/hypervisor/hyperlight_vm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use crate::hypervisor::LinuxInterruptHandle;
4545
#[cfg(crashdump)]
4646
use crate::hypervisor::crashdump;
4747
#[cfg(gdb)]
48-
use crate::hypervisor::gdb::DebugError;
48+
use crate::hypervisor::gdb::{DebugError, DebugMemoryAccessError};
4949
#[cfg(gdb)]
5050
use crate::hypervisor::hyperlight_vm::debug::ProcessDebugRequestError;
5151
use crate::hypervisor::regs::CommonSpecialRegisters;
@@ -894,7 +894,7 @@ impl HyperlightVm {
894894
match result {
895895
Ok(response) => response,
896896
// Treat non fatal errors separately so the guest doesn't fail
897-
Err(ProcessDebugRequestError::Debug(DebugError::TranslateGva(
897+
Err(ProcessDebugRequestError::ReadMemory(DebugMemoryAccessError::TranslateGuestAddress(
898898
_,
899899
))) => DebugResponse::ErrorOccurred,
900900
Err(e) => {
@@ -938,7 +938,7 @@ impl HyperlightVm {
938938
let response = match result {
939939
Ok(response) => response,
940940
// Treat non fatal errors separately so the guest doesn't fail
941-
Err(ProcessDebugRequestError::Debug(DebugError::TranslateGva(_))) => {
941+
Err(ProcessDebugRequestError::ReadMemory(DebugMemoryAccessError::TranslateGuestAddress(_))) => {
942942
DebugResponse::ErrorOccurred
943943
}
944944
Err(e) => {

0 commit comments

Comments
 (0)