mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor: emulator: Format instructions on error paths
Formatting instructions might be costly, so we only want to do that on the emulation error paths. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
@@ -76,6 +76,9 @@ pub enum EmulationError<T: Debug> {
|
||||
|
||||
#[error("Platform emulation error: {0}")]
|
||||
PlatformEmulationError(PlatformError),
|
||||
|
||||
#[error(transparent)]
|
||||
EmulationError(#[from] anyhow::Error),
|
||||
}
|
||||
|
||||
/// The PlatformEmulator trait emulates a guest platform.
|
||||
|
||||
Reference in New Issue
Block a user