...

Source file src/github.com/Microsoft/hcsshim/internal/uvm/constants.go

Documentation: github.com/Microsoft/hcsshim/internal/uvm

     1  package uvm
     2  
     3  import (
     4  	"errors"
     5  
     6  	"github.com/Microsoft/hcsshim/internal/memory"
     7  	"github.com/Microsoft/hcsshim/internal/protocol/guestrequest"
     8  )
     9  
    10  const (
    11  	// MaxVPMEMCount is the maximum number of VPMem devices that may be added to an LCOW
    12  	// utility VM
    13  	MaxVPMEMCount = 128
    14  
    15  	// DefaultVPMEMCount is the default number of VPMem devices that may be added to an LCOW
    16  	// utility VM if the create request doesn't specify how many.
    17  	DefaultVPMEMCount = 64
    18  
    19  	// DefaultVPMemSizeBytes is the default size of a VPMem device if the create request
    20  	// doesn't specify.
    21  	DefaultVPMemSizeBytes = 4 * memory.GiB // 4GB
    22  )
    23  
    24  var (
    25  	errNotSupported = errors.New("not supported")
    26  	errBadUVMOpts   = errors.New("UVM options incorrect")
    27  
    28  	// Maximum number of SCSI controllers allowed
    29  	MaxSCSIControllers = uint32(len(guestrequest.ScsiControllerGuids))
    30  )
    31  

View as plain text