Versions in this module Expand all Collapse all v0 v0.1.1 Jun 9, 2026 v0.1.0 Jun 9, 2026 Changes in this version + const AcceptedFeatures + const CIDAny + const CIDHost + const CIDHypervisor + const EventQueueIdx + const EventRingSize + const OpCreditRequest + const OpCreditUpdate + const OpInvalid + const OpRW + const OpRequest + const OpResponse + const OpRst + const OpShutdown + const RxQueueIdx + const RxRingSize + const TxPollIterations + const TxQueueIdx + const TxRingSize + const TypeSeqpacket + const TypeStream + const VsockHdrSize + var ErrFeaturesNotOK = commonVsockError(...) + var ErrInitWrongDeviceID = commonVsockError("go-virtio/vsock: PCI device ID is not 0x1053 (modern vsock device)") + var ErrNotModernDevice = commonVsockError("go-virtio/vsock: device doesn't offer VIRTIO_F_VERSION_1 (legacy-only)") + var ErrPacketTooLarge = commonVsockError("go-virtio/vsock: header + payload exceeds one page") + var ErrQueueNotAvailable = commonVsockError("go-virtio/vsock: device reports QueueSize=0 for a required queue") + var ErrReceiveTimeout = commonVsockError("go-virtio/vsock: RX poll timeout (no packet received within budget)") + var ErrShortPacket = commonVsockError("go-virtio/vsock: received buffer shorter than virtio_vsock_hdr (44 bytes)") + var ErrTransmitTimeout = commonVsockError("go-virtio/vsock: TX poll timeout (device did not return descriptor)") + func AcceptFeatures(deviceFeatures uint64) (uint64, error) + type Packet struct + BufAlloc uint32 + Data []byte + DstCID uint64 + DstPort uint32 + Flags uint32 + FwdCnt uint32 + Op uint16 + SrcCID uint64 + SrcPort uint32 + Type uint16 + type VirtioVsock struct + Cfg *common.ModernConfig + GuestCID uint64 + NegotiatedFeatures uint64 + func OpenVirtioVsock(t common.Transport) (*VirtioVsock, error) + func (v *VirtioVsock) EventQueue() *common.Virtqueue + func (v *VirtioVsock) ReceivePacket(pollIterations int) (Packet, error) + func (v *VirtioVsock) RxQueue() *common.Virtqueue + func (v *VirtioVsock) SendPacket(p Packet) error + func (v *VirtioVsock) TxQueue() *common.Virtqueue