Enum dbs_virtio_devices::Error
source · pub enum Error {
Show 19 variants
DescriptorChainTooShort,
DescriptorLengthTooSmall,
DescriptorLengthTooBig,
UnexpectedWriteOnlyDescriptor,
UnexpectedReadOnlyDescriptor,
InvalidInput,
InvalidOffset,
InternalError,
InvalidResource,
IOError(IOError),
VirtioQueueError(VqError),
ActivateError(ActivateError),
InterruptError(IOError),
GuestMemory(GuestMemoryError),
InvalidGuestAddress(GuestAddress),
NewMmapRegion(MmapRegionError),
SetUserMemoryRegion(Error),
InsertMmap(Error),
Madvise(Error),
}
Expand description
Error for virtio devices to handle requests from guests.
Variants§
DescriptorChainTooShort
Guest gave us too few descriptors in a descriptor chain.
DescriptorLengthTooSmall
Guest gave us a descriptor that was too short to use.
DescriptorLengthTooBig
Guest gave us a descriptor that was too big to use.
UnexpectedWriteOnlyDescriptor
Guest gave us a write only descriptor that protocol says to read from.
UnexpectedReadOnlyDescriptor
Guest gave us a read only descriptor that protocol says to write to.
InvalidInput
Invalid input parameter or status.
InvalidOffset
The requested operation would cause a seek beyond disk end.
InternalError
Internal unspecific error
InvalidResource
Device resource doesn’t match what requested
IOError(IOError)
Generic IO error
VirtioQueueError(VqError)
Error from virtio_queue
ActivateError(ActivateError)
Error from Device activate.
InterruptError(IOError)
Error from Interrupt.
GuestMemory(GuestMemoryError)
Guest gave us bad memory addresses.
InvalidGuestAddress(GuestAddress)
Guest gave us an invalid guest memory address.
NewMmapRegion(MmapRegionError)
Failed creating a new MmapRegion instance.
SetUserMemoryRegion(Error)
Failed setting kvm user memory region.
InsertMmap(Error)
Inserting mmap region failed.
Madvise(Error)
Failed to set madvise on guest memory region.