Skip to content

Commit

Permalink
fix: Remove unused error variants
Browse files Browse the repository at this point in the history
Delete various error variants in the x86_64 version of KvmVcpuError that
were never constructed/used.

Signed-off-by: Patrick Roy <[email protected]>
  • Loading branch information
roypat committed Apr 30, 2024
1 parent f68a2ef commit d2ce649
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/vmm/src/vstate/vcpu/x86_64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,8 @@ pub enum KvmVcpuError {
ConvertCpuidType(#[from] cpuid::CpuidTryFromKvmCpuid),
/// Failed FamStructWrapper operation: {0}
Fam(#[from] utils::fam::Error),
/// Error configuring the floating point related registers: {0}
FpuConfiguration(crate::arch::x86_64::regs::RegsError),
/// Failed to get dumpable MSR index list: {0}
GetMsrsToDump(#[from] crate::arch::x86_64::msr::MsrError),
/// Cannot set the local interruption due to bad configuration: {0}
LocalIntConfiguration(crate::arch::x86_64::interrupts::InterruptError),
/// Error configuring the general purpose registers: {0}
RegsConfiguration(crate::arch::x86_64::regs::RegsError),
/// Error configuring the special registers: {0}
SregsConfiguration(crate::arch::x86_64::regs::RegsError),
/// Cannot open the VCPU file descriptor: {0}
VcpuFd(kvm_ioctls::Error),
/// Failed to get KVM vcpu debug regs: {0}
Expand Down Expand Up @@ -97,10 +89,6 @@ pub enum KvmVcpuError {
VcpuSetXcrs(kvm_ioctls::Error),
/// Failed to set KVM vcpu xsave: {0}
VcpuSetXsave(kvm_ioctls::Error),
/// Failed to set KVM TSC frequency: {0}
VcpuSetTsc(kvm_ioctls::Error),
/// Failed to apply CPU template
VcpuTemplateError,
}

/// Error type for [`KvmVcpu::get_tsc_khz`] and [`KvmVcpu::is_tsc_scaling_required`].
Expand Down

0 comments on commit d2ce649

Please sign in to comment.