Documentation ¶
Index ¶
- Constants
- func GetDeviceAlignedCPUs(pciAddress string) ([]int, error)
- func GetDeviceNumaNode(pciAddress string) (*uint32, error)
- func GetNumaNodeCPUList(numaNode int) ([]int, error)
- func GetNumberOfVCPUs(cpuSpec *v1.CPU) int64
- func LookupDeviceVCPUAffinity(pciAddress string, domainSpec *api.DomainSpec) ([]uint32, error)
- func ParseCPUSetLine(cpusetLine string, limit int) (cpusList []int, err error)
- func ParsePciAddress(pciAddress string) ([]string, error)
Constants ¶
View Source
const (
PCI_ADDRESS_PATTERN = `^([\da-fA-F]{4}):([\da-fA-F]{2}):([\da-fA-F]{2})\.([0-7]{1})$`
)
Variables ¶
This section is empty.
Functions ¶
func GetDeviceAlignedCPUs ¶ added in v0.50.0
func GetDeviceNumaNode ¶ added in v0.50.0
func GetNumaNodeCPUList ¶ added in v0.50.0
func GetNumberOfVCPUs ¶ added in v0.12.0
GetNumberOfVCPUs returns number of vCPUs It counts sockets*cores*threads
func LookupDeviceVCPUAffinity ¶ added in v0.50.0
func LookupDeviceVCPUAffinity(pciAddress string, domainSpec *api.DomainSpec) ([]uint32, error)
func ParseCPUSetLine ¶
Parse linux cpuset into an array of ints See: http://man7.org/linux/man-pages/man7/cpuset.7.html#FORMATS
func ParsePciAddress ¶ added in v0.38.0
ParsePciAddress returns an array of PCI DBSF fields (domain, bus, slot, function)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.