Documentation
¶
Overview ¶
Package customvirtio provides experimental custom Virtio device helpers.
It is intended to wrap private custom Virtio device configuration types, including PCI identifiers, queue counts, feature bits, provider hookup, and plugin naming for device implementations outside the built-in Virtio set.
The package should expose the minimum surface needed to describe a custom device without hiding important low-level configuration choices.
Index ¶
- func NewConfig(cfg Config) (pvz.VZCustomVirtioDeviceConfiguration, error)
- func NewDelegateProvider(queue, delegate objectivec.IObject) (pvz.VZCustomVirtioDeviceDelegateProvider, error)
- func NewPluginProvider(name, personality string) (pvz.VZCustomVirtioDevicePluginProvider, error)
- func NewProvider() (pvz.VZCustomVirtioDeviceProvider, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶
func NewConfig(cfg Config) (pvz.VZCustomVirtioDeviceConfiguration, error)
NewConfig creates a custom Virtio device configuration and applies cfg.
func NewDelegateProvider ¶
func NewDelegateProvider(queue, delegate objectivec.IObject) (pvz.VZCustomVirtioDeviceDelegateProvider, error)
NewDelegateProvider creates a delegate-backed Virtio provider.
func NewPluginProvider ¶
func NewPluginProvider(name, personality string) (pvz.VZCustomVirtioDevicePluginProvider, error)
NewPluginProvider creates a plugin-backed Virtio provider.
func NewProvider ¶
func NewProvider() (pvz.VZCustomVirtioDeviceProvider, error)
NewProvider creates the base Virtio provider object.
Types ¶
type Config ¶
type Config struct {
PCIClassID byte
PCISubclassID byte
PCIDeviceID uint16
PCISubsystemID uint16
PCISubsystemVendorID uint16
PCIVendorID uint16
PluginName string
PluginPersonality string
DeviceID uint16
DeviceSpecificConfiguration objectivec.IObject
MandatoryFeatures []uint32
OptionalFeatures []uint32
Provider objectivec.IObject
VirtioQueueCount uint16
SupportsSaveRestore bool
}
Config describes a custom Virtio device configuration.