microsoft / hcsshim

Windows - Host Compute Service Shim
MIT License
564 stars 253 forks source link

Create UVM honoring NUMA configuration parameters #2198

Closed apurv15 closed 1 month ago

apurv15 commented 1 month ago

Expose NUMA config to containers. Use HCS device affinity so that UVM is configured on same NUMA node as the device. Expose SLIT configuration to UVM to gather NUMA node distances.

Changes under internal/hcs/schema2 are for using new HCS APIs related to NUMA HCS parameters and its dependencies. These files are auto-generated and could be skipped for a thorough review. Other changes are business logic and should be reviewed thoroughly.

Some tests around device affinity and Hybrid/Virtual MemoryBackingType are pending. Creating PR to get early feedback.

katiewasnothere commented 1 month ago

Can we remove any schemas that aren't actively being used in this PR? I'm fine with including some extra fields for some of the leaf node schemas but for larger schemas like VirtualMachine I think we should remove anything we aren't using.