Thread (3 messages) flat view 3 messages, 2 authors, 2023-06-09

Re: [PATCH v13 23/24] virt: gunyah: Add ioeventfd

From: Alex Elder <hidden>
Date: 2023-06-09 17:46:45
Also in: linux-arm-msm, linux-devicetree, linux-doc, lkml

On 6/9/23 12:33 PM, Elliot Berman wrote:
quoted
quoted
+static int gh_write_ioeventfd(struct gh_vm_io_handler *io_dev, u64 
addr, u32 len, u64 data)
+{
+    struct gh_ioeventfd *iofd = container_of(io_dev, struct 
gh_ioeventfd, io_handler);
Does a write of 0 bytes still signal an event?
 From gunyah_ioeventfd perspective, yes. I don't think a write of 0 
bytes is possible, but maybe you are thinking of scenario I'm not?
quoted
quoted
+
+    eventfd_signal(iofd->ctx, 1);
+    return 0;
+} 
No, I was just observing that eventfd_signal() is called regardless
of the value of len.

					-Alex

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help