patches and low-level development discussion
 help / color / mirror / code / Atom feed
399b7a38d15ef95871fe72d129d89856a5568872 blob 1106 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
 
// Copyright (C) 2019 Alibaba Cloud Computing. All rights reserved.
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
//
// Portions Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Portions Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file.

//! Trait to control vhost-vsock backend drivers.

use crate::backend::VhostBackend;
use crate::Result;

/// Trait to control vhost-vsock backend drivers.
pub trait VhostVsock: VhostBackend {
    /// Set the CID for the guest.
    /// This number is used for routing all data destined for running in the guest.
    /// Each guest on a hypervisor must have an unique CID.
    ///
    /// # Arguments
    /// * `cid` - CID to assign to the guest
    fn set_guest_cid(&mut self, cid: u64) -> Result<()>;

    /// Tell the VHOST driver to start performing data transfer.
    fn start(&mut self) -> Result<()>;

    /// Tell the VHOST driver to stop performing data transfer.
    fn stop(&mut self) -> Result<()>;
}
debug log:

solving 399b7a38 ...
found 399b7a38 in https://spectrum-os.org/git/crosvm

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).