Documentation ¶
Index ¶
- func CreateHostDevices(vmi *v1.VirtualMachineInstance) ([]api.HostDevice, error)
- func CreateHostDevicesFromIfacesAndPool(ifaces []v1.Interface, pool hostdevice.AddressPooler) ([]api.HostDevice, error)
- func GetHostDevicesToAttach(vmi *v1.VirtualMachineInstance, domainSpec *api.DomainSpec) ([]api.HostDevice, error)
- func SafelyDetachHostDevices(domainSpec *api.DomainSpec, eventDetach hostdevice.EventRegistrar, ...) error
- type PCIAddressPool
- type PCIAddressWithNetworkStatusPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHostDevices ¶
func CreateHostDevices(vmi *v1.VirtualMachineInstance) ([]api.HostDevice, error)
func CreateHostDevicesFromIfacesAndPool ¶
func CreateHostDevicesFromIfacesAndPool(ifaces []v1.Interface, pool hostdevice.AddressPooler) ([]api.HostDevice, error)
func GetHostDevicesToAttach ¶
func GetHostDevicesToAttach(vmi *v1.VirtualMachineInstance, domainSpec *api.DomainSpec) ([]api.HostDevice, error)
func SafelyDetachHostDevices ¶
func SafelyDetachHostDevices(domainSpec *api.DomainSpec, eventDetach hostdevice.EventRegistrar, dom hostdevice.DeviceDetacher, timeout time.Duration) error
Types ¶
type PCIAddressPool ¶
type PCIAddressPool struct {
// contains filtered or unexported fields
}
func NewPCIAddressPool ¶
func NewPCIAddressPool(ifaces []v1.Interface) *PCIAddressPool
NewPCIAddressPool creates a PCI address pool based on the provided list of interfaces and the environment variables that describe the SRIOV devices.
func (*PCIAddressPool) Pop ¶
func (p *PCIAddressPool) Pop(networkName string) (string, error)
Pop gets the next PCI address available to a particular SR-IOV network. The function makes sure that the allocated address is not allocated to next callers, whether they request an address for the same network or another network that is backed by the same resourceName.
type PCIAddressWithNetworkStatusPool ¶ added in v0.55.2
type PCIAddressWithNetworkStatusPool struct {
// contains filtered or unexported fields
}
func NewPCIAddressPoolWithNetworkStatus ¶ added in v0.55.2
func NewPCIAddressPoolWithNetworkStatus(networkPCIMapBytes []byte) (*PCIAddressWithNetworkStatusPool, error)
NewPCIAddressPoolWithNetworkStatus creates a PCI address pool based on the networkPciMapPath volume
func (*PCIAddressWithNetworkStatusPool) Len ¶ added in v0.55.2
func (p *PCIAddressWithNetworkStatusPool) Len() int
Len returns the length of the pool.
func (*PCIAddressWithNetworkStatusPool) Pop ¶ added in v0.55.2
func (p *PCIAddressWithNetworkStatusPool) Pop(networkName string) (string, error)
Pop gets the next PCI address available to a particular SR-IOV network. The function makes sure that the allocated address is not allocated to other networks.