From f63c2d896f88823022edb3a3287d0b017dedc5e2 Mon Sep 17 00:00:00 2001 From: Anirudh Rayabharam Date: Tue, 27 Aug 2024 15:40:55 +0530 Subject: [PATCH] hypervisor: mshv: implement get_guest_debug_hw_bps Implement get_guest_debug_hw_bps() for mshv and simply return 0 for now. This unblocks the usage of the crashdump feature with mshv. If left unimplemented, Cloud Hypervisor built with mshv and guest_debug features crashes immediately upon start due to unimplemented!() macro. Signed-off-by: Anirudh Rayabharam --- hypervisor/src/mshv/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index 5d23492fc..f93bef039 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -403,6 +403,10 @@ impl hypervisor::Hypervisor for MshvHypervisor { // but the ioctl API is limited to u8 256 } + + fn get_guest_debug_hw_bps(&self) -> usize { + 0 + } } /// Vcpu struct for Microsoft Hypervisor