Skip to content

Commit 6b5f2af

Browse files
authored
lib: use correct MAXCPU value in CPUID specializer (#876)
1 parent cbb33fd commit 6b5f2af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/propolis/src/cpuid.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl Specializer {
7070

7171
/// Specify vCPU ID to specialize for
7272
pub fn with_vcpuid(self, vcpuid: i32) -> Self {
73-
assert!((vcpuid as usize) < bhyve_api::VM_MAXCPU);
73+
assert!((vcpuid as usize) < crate::vcpu::MAXCPU);
7474
Self { vcpuid: Some(vcpuid), ..self }
7575
}
7676

0 commit comments

Comments
 (0)