qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 0/2] virtio len fixes for qemu.


From: Rusty Russell
Subject: Re: [Qemu-devel] [PATCH 0/2] virtio len fixes for qemu.
Date: Thu, 12 Mar 2015 11:34:35 +1030
User-agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu)

"Michael S. Tsirkin" <address@hidden> writes:
> On Wed, Mar 11, 2015 at 10:06:40PM +1030, Rusty Russell wrote:
>>         Each entry in the ring is a pair: \field{id} indicates the head
>>         entry of the descriptor chain describing the buffer (this
>>         matches an entry placed in the available ring by the guest
>>         earlier), and \field{len} the total of bytes written into the
>>         buffer. The latter is extremely useful for drivers using
>>         untrusted buffers: if you do not know exactly how much has been
>>         written by the device, you usually have to zero the buffer to
>>         ensure no data leakage occurs.
>
> Right so what does this "if you do not know exactly how much has been
> written by the device" mean?

It means "without this feature, you would not know how much has been
written by the device"...

Should probably become a Note:

Cheers,
Rusty.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]