Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit b12eeac

Browse files
committed
x86: enlarge KVM_MAX_CPUID_ENTRIES to 256
Since kernel commit "3f4e3eb4 KVM: x86: bump KVM_MAX_CPUID_ENTRIES", the KVM_MAX_CPUID_ENTRIES in linux kernel has been changed from 80 to 256. So change KVM_MAX_CPUID_ENTRIES to 256 too, it should also work with kernel prior to 5.9. Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
1 parent 87c194e commit b12eeac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/x86/fam_wrappers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use x86::bindings::*;
88
/// Maximum number of CPUID entries that can be returned by a call to KVM ioctls.
99
///
1010
/// See arch/x86/include/asm/kvm_host.h
11-
pub const KVM_MAX_CPUID_ENTRIES: usize = 80;
11+
pub const KVM_MAX_CPUID_ENTRIES: usize = 256;
1212

1313
/// Maximum number of MSRs KVM supports (See arch/x86/kvm/x86.c).
1414
pub const KVM_MAX_MSR_ENTRIES: usize = 256;

0 commit comments

Comments
 (0)