patches and low-level development discussion
 help / color / mirror / code / Atom feed
99d8e651f608f7d4acd4fb52928c6bdbb97ba55c blob 2644 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
 
// Copyright 2019 Intel Corporation. All Rights Reserved.
// Copyright 2020 Alyssa Ross <hi@alyssa.is>
// SPDX-License-Identifier: Apache-2.0

pub mod cloud_hypervisor;

mod handler;
mod net;
mod vu_common_ctrl;

pub use net::Net;
pub use vu_common_ctrl::VhostUserConfig;

use std::io;
use sys_util::guest_memory;

use vhost_rs::Error as VhostError;
use vm_memory::Error as MmapError;
#[derive(Debug)]
pub enum Error {
    /// Invalid available address.
    AvailAddress(guest_memory::Error),
    /// Queue number  is not correct
    BadQueueNum,
    /// Creating kill eventfd failed.
    CreateKillEventFd(io::Error),
    /// Cloning kill eventfd failed.
    CloneKillEventFd(io::Error),
    /// Invalid descriptor table address.
    DescriptorTableAddress(guest_memory::Error),
    /// Create Epoll eventfd failed
    EpollCreateFd(io::Error),
    /// Epoll ctl error
    EpollCtl(io::Error),
    /// Epoll wait error
    EpollWait(io::Error),
    /// Read queue failed.
    FailedReadingQueue(io::Error),
    /// Signal used queue failed.
    FailedSignalingUsedQueue(io::Error),
    /// Failed to read vhost eventfd.
    MemoryRegions(MmapError),
    /// Failed to create master.
    VhostUserCreateMaster(VhostError),
    /// Failed to open vhost device.
    VhostUserOpen(VhostError),
    /// Get features failed.
    VhostUserGetFeatures(VhostError),
    /// Get protocol features failed.
    VhostUserGetProtocolFeatures(VhostError),
    /// Vhost-user Backend not support vhost-user protocol.
    VhostUserProtocolNotSupport,
    /// Set owner failed.
    VhostUserSetOwner(VhostError),
    /// Set features failed.
    VhostUserSetFeatures(VhostError),
    /// Set protocol features failed.
    VhostUserSetProtocolFeatures(VhostError),
    /// Set mem table failed.
    VhostUserSetMemTable(VhostError),
    /// Set vring num failed.
    VhostUserSetVringNum(VhostError),
    /// Set vring addr failed.
    VhostUserSetVringAddr(VhostError),
    /// Set vring base failed.
    VhostUserSetVringBase(VhostError),
    /// Set vring call failed.
    VhostUserSetVringCall(VhostError),
    /// Set vring kick failed.
    VhostUserSetVringKick(VhostError),
    /// Set vring enable failed.
    VhostUserSetVringEnable(VhostError),
    /// Vhost-user setup vring failed.
    VhostUserSetupVringFailed,
    /// Failed to create vhost eventfd.
    VhostIrqCreate(std::io::Error),
    /// Failed to read vhost eventfd.
    VhostIrqRead(io::Error),
    /// Failed to read vhost eventfd.
    VhostUserMemoryRegion(MmapError),
    /// Invalid used address.
    UsedAddress(guest_memory::Error),
}
type Result<T> = std::result::Result<T, Error>;
debug log:

solving 99d8e651 ...
found 99d8e651 in https://spectrum-os.org/lists/archives/spectrum-devel/20210512170812.192540-2-hi@alyssa.is/

applying [1/1] https://spectrum-os.org/lists/archives/spectrum-devel/20210512170812.192540-2-hi@alyssa.is/
diff --git a/devices/src/virtio/vhost_user/mod.rs b/devices/src/virtio/vhost_user/mod.rs
new file mode 100644
index 00000000..99d8e651

Checking patch devices/src/virtio/vhost_user/mod.rs...
Applied patch devices/src/virtio/vhost_user/mod.rs cleanly.

index at:
100644 99d8e651f608f7d4acd4fb52928c6bdbb97ba55c	devices/src/virtio/vhost_user/mod.rs

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).