Skip to content

Commit a530a7a

Browse files
committed
fix: Remove unused error variants
Delete various error variants in the x86_64 version of KvmVcpuError that were never constructed/used. Signed-off-by: Patrick Roy <[email protected]>
1 parent cd113fa commit a530a7a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/vmm/src/vstate/vcpu/x86_64.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,8 @@ pub enum KvmVcpuError {
4040
ConvertCpuidType(#[from] cpuid::CpuidTryFromKvmCpuid),
4141
/// Failed FamStructWrapper operation: {0}
4242
Fam(#[from] utils::fam::Error),
43-
/// Error configuring the floating point related registers: {0}
44-
FpuConfiguration(crate::arch::x86_64::regs::RegsError),
4543
/// Failed to get dumpable MSR index list: {0}
4644
GetMsrsToDump(#[from] crate::arch::x86_64::msr::MsrError),
47-
/// Cannot set the local interruption due to bad configuration: {0}
48-
LocalIntConfiguration(crate::arch::x86_64::interrupts::InterruptError),
49-
/// Error configuring the general purpose registers: {0}
50-
RegsConfiguration(crate::arch::x86_64::regs::RegsError),
51-
/// Error configuring the special registers: {0}
52-
SregsConfiguration(crate::arch::x86_64::regs::RegsError),
5345
/// Failed to get KVM vcpu debug regs: {0}
5446
VcpuGetDebugRegs(kvm_ioctls::Error),
5547
/// Failed to get KVM vcpu lapic: {0}
@@ -96,10 +88,6 @@ pub enum KvmVcpuError {
9688
VcpuSetXcrs(kvm_ioctls::Error),
9789
/// Failed to set KVM vcpu xsave: {0}
9890
VcpuSetXsave(kvm_ioctls::Error),
99-
/// Failed to set KVM TSC frequency: {0}
100-
VcpuSetTsc(kvm_ioctls::Error),
101-
/// Failed to apply CPU template
102-
VcpuTemplateError,
10391
}
10492

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

0 commit comments

Comments
 (0)