Skip to content

Commit

Permalink
Merge pull request #585 from msft-jlange/request_hlt
Browse files Browse the repository at this point in the history
requests: handle interrupts when halted in the request loop
  • Loading branch information
joergroedel authored Jan 7, 2025
2 parents 9acdcf4 + 3f89126 commit 3d25be0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kernel/src/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ pub fn update_mappings() -> Result<(), SvsmError> {
let mut ret = Ok(());

if !locked.needs_update() {
return Ok(());
// If there is no VMSA, then the update request must be considered a
// failure even though no work was required.
return match locked.vmsa_phys() {
Some(_) => Ok(()),
None => Err(SvsmError::MissingVMSA),
};
}

cpu.unmap_guest_vmsa();
Expand Down

0 comments on commit 3d25be0

Please sign in to comment.