xref: /aosp_15_r20/external/crosvm/devices/src/virtio/vhost/control_socket.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
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 
5 use base::Error as SysError;
6 use serde::Deserialize;
7 use serde::Serialize;
8 
9 #[derive(Serialize, Deserialize, Debug)]
10 pub 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)]
18 pub enum VhostDevResponse {
19     Ok,
20     Err(SysError),
21 }
22