Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions alioth/src/virtio/dev/vsock/uds_vsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ impl UdsVsock {
return self.respond_rst(hdr, irq_sender, rx_q);
}
};
reader.set_nonblocking(true)?;
let writer = reader.try_clone()?;
let token = Token(reader.as_raw_fd() as usize);
registry.register(
Expand Down
9 changes: 8 additions & 1 deletion alioth/src/virtio/dev/vsock/uds_vsock_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,14 @@ fn vsock_conn_test(fixture_ram_bus: RamBus, #[with(3)] fixture_queues: Box<[Queu

// 1. Host to Guest via guest-initiated connection
let h2g_data = "hello from host";
let buf_id = rx_q.add_desc(&[], &[(rx_buf_addr, 4096)]);
let buf_id = rx_q.add_desc(
&[],
&[
(rx_buf_addr, 32),
(rx_buf_addr + 32, 32),
(rx_buf_addr + 64, 32),
],
);
tx.send(WakeEvent::Notify {
q_index: VsockVirtq::RX.raw(),
})
Expand Down