Skip to content

Commit

Permalink
feat: Bump KVM_MAX_CPUID_ENTRIES to 256
Browse files Browse the repository at this point in the history
From 5.10 this constant has been updated from 80 to 256. Update the
constant to reflect this.

Signed-off-by: Jack Thomson <[email protected]>
  • Loading branch information
JackThomson2 authored and ShadowCurse committed Jan 14, 2025
1 parent 824e205 commit e4c0ab4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions kvm-bindings/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

### Changed

- Updated KVM_MAX_CPUID_ENTRIES to 256.

### Removed

## [0.10.0]
Expand Down
2 changes: 1 addition & 1 deletion kvm-bindings/src/x86_64/fam_wrappers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use x86_64::bindings::*;
/// Maximum number of CPUID entries that can be returned by a call to KVM ioctls.
///
/// See arch/x86/include/asm/kvm_host.h
pub const KVM_MAX_CPUID_ENTRIES: usize = 80;
pub const KVM_MAX_CPUID_ENTRIES: usize = 256;

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

0 comments on commit e4c0ab4

Please sign in to comment.