mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
vhost_user_backend: Rename start() to start_server()
The point being to identify clearly that we're running the backend as a server. This anticipates the addition of a new function for running the backend as a client. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
b5c6b04b36
commit
904aea76ab
@ -157,7 +157,7 @@ impl<S: VhostUserBackend> VhostUserDaemon<S> {
|
||||
/// all requests coming through this socket. This runs in an infinite loop
|
||||
/// that should be terminating once the other end of the socket (the VMM)
|
||||
/// disconnects.
|
||||
pub fn start(&mut self, listener: Listener) -> Result<()> {
|
||||
pub fn start_server(&mut self, listener: Listener) -> Result<()> {
|
||||
let mut slave_listener = SlaveListener::new(listener, self.handler.clone())
|
||||
.map_err(Error::CreateSlaveListener)?;
|
||||
let mut slave_handler = slave_listener
|
||||
|
@ -507,7 +507,7 @@ pub fn start_block_backend(backend_command: &str) {
|
||||
|
||||
debug!("blk_daemon is created!\n");
|
||||
|
||||
if let Err(e) = blk_daemon.start(listener) {
|
||||
if let Err(e) = blk_daemon.start_server(listener) {
|
||||
error!(
|
||||
"Failed to start daemon for vhost-user-block with error: {:?}\n",
|
||||
e
|
||||
|
@ -372,7 +372,7 @@ pub fn start_net_backend(backend_command: &str) {
|
||||
.set_vring_worker(Some(vring_workers.remove(0)));
|
||||
}
|
||||
|
||||
if let Err(e) = net_daemon.start(listener) {
|
||||
if let Err(e) = net_daemon.start_server(listener) {
|
||||
error!(
|
||||
"failed to start daemon for vhost-user-net with error: {:?}",
|
||||
e
|
||||
|
Loading…
Reference in New Issue
Block a user