devices/virtio/vhost/
control_socket.rs

1// Copyright 2020 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use base::Error as SysError;
6use serde::Deserialize;
7use serde::Serialize;
8
9#[derive(Serialize, Deserialize, Debug)]
10pub enum VhostDevRequest {
11    /// Mask or unmask all the MSI entries for a Virtio Vhost device.
12    MsixChanged,
13    /// Mask or unmask a MSI entry for a Virtio Vhost device.
14    MsixEntryChanged(usize),
15}
16
17#[derive(Serialize, Deserialize, Debug)]
18pub enum VhostDevResponse {
19    Ok,
20    Err(SysError),
21}