?
--
Evgeniy Polyakov
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/virtualization
.
--
Evgeniy Polyakov
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/virtualization
;
+ u32 buflen, recvlen;
+ u64 requestid;
+ struct icmsg_hdr *icmsghdrp;
+ struct heartbeat_msg_data *heartbeat_msg;
+
+ buflen = PAGE_SIZE;
+ buf = kmalloc(buflen, GFP_ATOMIC);
+
+ vmbus_recvpacket(channel, buf, buflen, recvlen, requestid);
--
Evgeniy Polyakov
since previous review and this is wrong.
It is the right way to crash kernel.
I did not read further since this is a show-stopper imo.
--
Evgeniy Polyakov
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https
, since this function returns void and thus
can not propagate error, which is likely not a good idea.
--
Evgeniy Polyakov
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo
to dynamically allocate them.
Looks very good. Especially liked how you used idx.val pairs to register
multiple users. Please add some comment in connector header on how you
use it and feel free to add my ack if needed.
--
Evgeniy Polyakov
versa.
--
Evgeniy Polyakov
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/virtualization
) to replace it with
process context, so this at least requires some note in comments.
Except that about questions, this patch looks good.
--
Evgeniy Polyakov
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https
;
+
+ if (copy_to_user(vr-ring.used-ring[used_idx vr-mask], used,
+ sizeof(used)))
+ return;
+
+ wmb();
+ used_idx++;
+ put_user(used_idx, vr-ring.used-idx);
+}
+EXPORT_SYMBOL_GPL(vring_used_buffer);
--
Evgeniy Polyakov
decided that too. But it limits its usage to tun only or any
other system where only single thread picks up results, so no generic
userspace ring buffers?
--
Evgeniy Polyakov
___
Virtualization mailing list
Virtualization@lists.linux
10 matches
Mail list logo