mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
Fixes typo and adds missing fd to keep_fd list in vios_client
BUG=b:191297702 Change-Id: I677a35ce961a35d68a39b1ee9e6aa6180b010afe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2983387 Auto-Submit: Jorge Moreira Broche <jemoreira@google.com> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org> Commit-Queue: Jorge Moreira Broche <jemoreira@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
f78b278d0f
commit
7cbfbb599f
1 changed files with 6 additions and 4 deletions
|
@ -6,9 +6,9 @@ use crate::virtio::snd::constants::*;
|
||||||
use crate::virtio::snd::layout::*;
|
use crate::virtio::snd::layout::*;
|
||||||
|
|
||||||
use base::{
|
use base::{
|
||||||
error, net::UnixSeqpacket, Error as BaseError, Event, FromRawDescriptor, IntoRawDescriptor,
|
error, net::UnixSeqpacket, AsRawDescriptor, Error as BaseError, Event, FromRawDescriptor,
|
||||||
MemoryMapping, MemoryMappingBuilder, MmapError, PollToken, SafeDescriptor, ScmSocket,
|
IntoRawDescriptor, MemoryMapping, MemoryMappingBuilder, MmapError, PollToken, SafeDescriptor,
|
||||||
SharedMemory, WaitContext,
|
ScmSocket, SharedMemory, WaitContext,
|
||||||
};
|
};
|
||||||
use data_model::{DataInit, VolatileMemory, VolatileMemoryError};
|
use data_model::{DataInit, VolatileMemory, VolatileMemoryError};
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ pub enum Error {
|
||||||
NoStreamsAvailable,
|
NoStreamsAvailable,
|
||||||
#[error("No stream with id {0}")]
|
#[error("No stream with id {0}")]
|
||||||
InvalidStreamId(u32),
|
InvalidStreamId(u32),
|
||||||
#[error("Stream is unexpected state: {0:?}")]
|
#[error("Stream is in unexpected state: {0:?}")]
|
||||||
UnexpectedState(StreamState),
|
UnexpectedState(StreamState),
|
||||||
#[error("Invalid operation for stream direction: {0}")]
|
#[error("Invalid operation for stream direction: {0}")]
|
||||||
WrongDirection(u8),
|
WrongDirection(u8),
|
||||||
|
@ -352,6 +352,7 @@ impl VioSClient {
|
||||||
let lock = self.rx.lock();
|
let lock = self.rx.lock();
|
||||||
(lock.socket.as_raw_fd(), lock.file.as_raw_fd())
|
(lock.socket.as_raw_fd(), lock.file.as_raw_fd())
|
||||||
};
|
};
|
||||||
|
let recv_event = self.recv_event.lock().as_raw_descriptor();
|
||||||
vec![
|
vec![
|
||||||
control_fd,
|
control_fd,
|
||||||
event_fd,
|
event_fd,
|
||||||
|
@ -359,6 +360,7 @@ impl VioSClient {
|
||||||
tx_shm_fd,
|
tx_shm_fd,
|
||||||
rx_socket_fd,
|
rx_socket_fd,
|
||||||
rx_shm_fd,
|
rx_shm_fd,
|
||||||
|
recv_event,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue