mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor: Use instruction emulator to handle unmapped gpa
Use the context from Unmapped Gpa exit from the hypervisor to initialize the MshvEmulatorContext and later call the emulator to decode the instruction. Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
@@ -28,7 +28,7 @@ impl<'a> Emulator<'a> {
|
||||
Emulator { context }
|
||||
}
|
||||
|
||||
/// Decode the instruction using the syndrome register.
|
||||
/// Decode & emulate the instruction using the syndrome register.
|
||||
pub fn emulate_with_syndrome(&mut self) -> Result<bool, PlatformError> {
|
||||
let esr_el2 = EsrEl2::from(self.context.syndrome);
|
||||
if !matches!(
|
||||
|
||||
Reference in New Issue
Block a user