Documentation ¶
Index ¶
Constants ¶
View Source
const ( // VirtioMmio indicates block driver is virtio-mmio based VirtioMmio string = "virtio-mmio" // VirtioBlock indicates block driver is virtio-blk based VirtioBlock string = "virtio-blk" // VirtioBlockCCW indicates block driver is virtio-blk-ccw based VirtioBlockCCW string = "virtio-blk-ccw" // VirtioSCSI indicates block driver is virtio-scsi based VirtioSCSI string = "virtio-scsi" // Nvdimm indicates block driver is nvdimm based Nvdimm string = "nvdimm" )
Variables ¶
View Source
var ( // ErrIDExhausted represents that devices are too many // and no more IDs can be generated ErrIDExhausted = errors.New("IDs are exhausted") // ErrDeviceNotExist represents device hasn't been created before ErrDeviceNotExist = errors.New("device with specified ID hasn't been created") // ErrDeviceNotAttached represents the device isn't attached ErrDeviceNotAttached = errors.New("device isn't attached") // ErrRemoveAttachedDevice represents the device isn't detached // so not allow to remove from list ErrRemoveAttachedDevice = errors.New("can't remove attached device") )
Functions ¶
func IsVFIOLargeBarSpaceDevice ¶
IsVFIOLargeBarSpaceDevice checks if the device is a large bar space device.
func NewDeviceManager ¶
func NewDeviceManager(blockDriver string, vhostUserStoreEnabled bool, vhostUserStorePath string, devices []api.Device) api.DeviceManager
NewDeviceManager creates a deviceManager object behaved as api.DeviceManager
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.