Skip to content

Commit 255f158

Browse files
Jonathan Woollett-Lightkalyazin
authored andcommitted
fix: NodesPerProcessor
Corrects access within `update_extended_apic_id_entry` to use the bit range 8..11 to set the `NodesPerProcessor` field. Signed-off-by: Jonathan Woollett-Light <[email protected]>
1 parent cd1ce9d commit 255f158

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vmm/src/guest_config/x86_64/cpuid/amd/normalize.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,11 @@ impl super::AmdCpuid {
405405
// processor resides. Node in this context corresponds to a processor die.
406406
// Encoding is N-1, where N is the number of nodes present in the socket.
407407
//
408-
// nodes_per_processor: 8..10,
408+
// nodes_per_processor: 8..11,
409409
//
410410
// SAFETY: We know the value always fits within the range and thus is always safe.
411411
// Set nodes per processor.
412-
set_range(&mut leaf_8000001e.result.ecx, 8..10, NODES_PER_PROCESSOR).unwrap();
412+
set_range(&mut leaf_8000001e.result.ecx, 8..11, NODES_PER_PROCESSOR).unwrap();
413413

414414
// Specifies the ID of the node containing the current logical processor. NodeId
415415
// values are unique across the system.

0 commit comments

Comments
 (0)