Skip to content

VMs should not have vCPU-many sockets #940

Open

Description

@iximeow

this is a bit silly:

debian@debian-11:~$ likwid-topology -g
--------------------------------------------------------------------------------
CPU name:	AMD EPYC 7713P 64-Core Processor
CPU type:	AMD K19 (Zen3) architecture
CPU stepping:	1
********************************************************************************
Hardware Thread Topology
********************************************************************************
Sockets:		8
Cores per socket:	1
Threads per core:	1

I (and I think everyone else) thought we're emulating a single-socket machine until we intend otherwise, with vCPU-many cores and one or two threads per core. Looking into #921 I noticed we discard leaf Ext1E and then never repopulate it for the VM's CPU count, but we never clear the TopologyExtensions bit, so the all-zero leftovers is declared to be faithful. That gets us vCPU-many sockets, oops.

RFD 314 and oxidecomputer/omicron#8728 in particular set leaf 8000_001E to have two threads per core, but I'm actually not sure that gets us to one socket with vCPU-many-(or vCPU/2) cores. Either way, out of the box Propolis should reconstruct the CPUID leaf StdB/Ext1E that it very eagerly discards.

This will change the CPUID profile of guests as-is, but I think that's good - I'm a little surprised that OSes are as nice about this as they are!

Activity

  1. self-assigned this
    on Sep 6, 2025
  2. iximeow commented on Sep 12, 2025

    @iximeow
    MemberAuthor

    #939 is one way that guests figure this out, and #941 will fix this as a result of fixing #939. (I'd initially thought it didn't through a comedy of using propolis-standalone but changing propolis-server.. otherwise it'd just be the one issue)

  3. iximeow commented on Sep 17, 2025

    @iximeow
    MemberAuthor

    well, this is fixed on Intel systems. I deferred including leaf B in with_cpu_topo so we don't go changing VMs that relied on default behavior on Gimlets. Once we've got Nexus sending explicit CPUID profiles I'll move propolis-server to specialize all supported leaves and this becomes a "Milan V1 specifies vCPU-many sockets" non-issue.

  4. added a commit that references this issue on Nov 13, 2025
  5. iximeow commented on Apr 13, 2026

    @iximeow
    MemberAuthor

    Trey saw that a Helios VM on colo has a mildly concerning-looking output related to this:

    Oxide Helios Version helios-2.0.23866 64-bit
    WARNING: There will be no MCA support on chip 32 core 0 strand 0
    
    WARNING: There will be no MCA support on chip 33 core 0 strand 0
    
    ... incrementing through other chips ...
    
    WARNING: There will be no MCA support on chip 63 core 0 strand 0
    

    at its heart this is a bit of illumos code expecting at most 32 chips in a system and refusing to init this module if the chip to init is beyond that. hence the logs above starting at 32, and continuing to <however many vCPUs>, but really this is all a confusion from the CPUID leaves alleging that there are vCPU-many single-core sockets.

    it's not immediately clear to me if things would be better or worse in this case with one "normal" socket, there's no support for presenting MCA/MCE through to guests so none of this would actually see use. but once this is sorted it'd be good to check that illumos no longer shouts warnings for >32 vCPU VMs.

  6. added
    customer
    on Oct 15, 2026
  7. hair-ant commented on Nov 2, 2026

    @hair-ant

    lets put this in P1

  8. added this to the 24 milestone on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

customer

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions