1 //go:build windows 2 3 package uvm 4 5 import ( 6 "context" 7 8 "github.com/Microsoft/hcsshim/internal/hcs/resourcepaths" 9 hcsschema "github.com/Microsoft/hcsshim/internal/hcs/schema2" 10 ) 11 12 // UpdateCPULimits updates the CPU limits of the utility vm 13 func (uvm *UtilityVM) UpdateCPULimits(ctx context.Context, limits *hcsschema.ProcessorLimits) error { 14 req := &hcsschema.ModifySettingRequest{ 15 ResourcePath: resourcepaths.CPULimitsResourcePath, 16 Settings: limits, 17 } 18 19 return uvm.modify(ctx, req) 20 } 21