customvirtio

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 4 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL