MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / signal_used_queue

Method signal_used_queue

virtio-devices/src/vsock/device.rs:114–123  ·  view source on GitHub ↗

Signal the guest driver that we've used some virtio buffers that it had previously made available.

(&self, queue_index: u16)

Source from the content-addressed store, hash-verified

112 /// available.
113 ///
114 fn signal_used_queue(&self, queue_index: u16) -> result::Result<(), DeviceError> {
115 debug!("vsock: raising IRQ");
116
117 self.interrupt_cb
118 .trigger(VirtioInterruptType::Queue(queue_index))
119 .map_err(|e| {
120 error!("Failed to signal used queue: {e:?}");
121 DeviceError::FailedSignalingUsedQueue(e)
122 })
123 }
124
125 /// Walk the driver-provided RX queue buffers and attempt to fill them up with any data that we
126 /// have pending.

Callers 2

handle_eventMethod · 0.45
test_irqFunction · 0.45

Calls 1

triggerMethod · 0.45

Tested by 1

test_irqFunction · 0.36