Re: [Qemu-devel] [PATCH 1/2] hw/9pfs: replace iovec manipulation with QEMUIOVector

2011-12-13 Thread Stefan Hajnoczi
On Tue, Dec 13, 2011 at 2:37 PM, Aneesh Kumar K.V wrote: > This change avoids a possible iovec[] buffer overflow when indirect > vrings are used since the number of vectors is now limited by the > underlying VirtQueueElement and cannot be out-of-bounds. Please consider both of these patches for s

[Qemu-devel] [PATCH 1/2] hw/9pfs: replace iovec manipulation with QEMUIOVector

2011-12-13 Thread Aneesh Kumar K.V
From: Stefan Hajnoczi The v9fs_read() and v9fs_write() functions rely on iovec[] manipulation code should be replaced with QEMUIOVector to avoid duplicating code. In the future it may be possible to make the code even more concise by using QEMUIOVector consistently across virtio and 9pfs. The "v