Skip to content

Commit d2ce649

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 f68a2ef commit d2ce649

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
@@ -39,16 +39,8 @@ pub enum KvmVcpuError {
3939
ConvertCpuidType(#[from] cpuid::CpuidTryFromKvmCpuid),
4040
/// Failed FamStructWrapper operation: {0}
4141
Fam(#[from] utils::fam::Error),
42-
/// Error configuring the floating point related registers: {0}
43-
FpuConfiguration(crate::arch::x86_64::regs::RegsError),
4442
/// Failed to get dumpable MSR index list: {0}
4543
GetMsrsToDump(#[from] crate::arch::x86_64::msr::MsrError),
46-
/// Cannot set the local interruption due to bad configuration: {0}
47-
LocalIntConfiguration(crate::arch::x86_64::interrupts::InterruptError),
48-
/// Error configuring the general purpose registers: {0}
49-
RegsConfiguration(crate::arch::x86_64::regs::RegsError),
50-
/// Error configuring the special registers: {0}
51-
SregsConfiguration(crate::arch::x86_64::regs::RegsError),
5244
/// Cannot open the VCPU file descriptor: {0}
5345
VcpuFd(kvm_ioctls::Error),
5446
/// Failed to get KVM vcpu debug regs: {0}
@@ -97,10 +89,6 @@ pub enum KvmVcpuError {
9789
VcpuSetXcrs(kvm_ioctls::Error),
9890
/// Failed to set KVM vcpu xsave: {0}
9991
VcpuSetXsave(kvm_ioctls::Error),
100-
/// Failed to set KVM TSC frequency: {0}
101-
VcpuSetTsc(kvm_ioctls::Error),
102-
/// Failed to apply CPU template
103-
VcpuTemplateError,
10492
}
10593

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

0 commit comments

Comments
 (0)