Message ID | 20220523084611.91-1-xieyongji@bytedance.com (mailing list archive) |
---|---|
Headers | show |
Series | Support exporting BDSs via VDUSE | expand |
On Mon, May 23, 2022 at 04:46:03PM +0800, Xie Yongji wrote: > Hi all, > > Last few months ago, VDUSE (vDPA Device in Userspace) [1] has > been merged into Linux kernel as a framework that make it > possible to emulate a vDPA device in userspace. This series > aimed at implementing a VDUSE block backend based on the > qemu-storage-daemon infrastructure. > > To support that, we firstly introduce a VDUSE library as a > subproject (like what libvhost-user does) to help implementing > VDUSE backends in QEMU. Then a VDUSE block export is implemented > based on this library. At last, we add resize and reconnect support > to the VDUSE block export and VDUSE library. > > Now this series is based on Stefan's patch [2]. And since we don't > support vdpa-blk in QEMU currently, the VM case is tested with my > previous patchset [3]. > > [1] https://www.kernel.org/doc/html/latest/userspace-api/vduse.html > [2] https://lore.kernel.org/all/20220518130945.2657905-1-stefanha@redhat.com/ > [3] https://www.mail-archive.com/qemu-devel@nongnu.org/msg797569.html > > Please review, thanks! Thanks, applied to my block tree: https://gitlab.com/stefanha/qemu/commits/block Successfully manually tested on Linux 5.17.6. Please send a follow-up patch that adds a tests/qemu-iotests/ test case that launches qemu-storage-daemon with a vduse-blk export, writes a pattern to the disk, and reads the pattern back to verify it. An automated test will prevent bitrot. I am sending a follow-up patch with documentation so users can discover and learn how to use this new feature. Stefan
On Mon, May 23, 2022 at 04:46:03PM +0800, Xie Yongji wrote: > Hi all, > > Last few months ago, VDUSE (vDPA Device in Userspace) [1] has > been merged into Linux kernel as a framework that make it > possible to emulate a vDPA device in userspace. This series > aimed at implementing a VDUSE block backend based on the > qemu-storage-daemon infrastructure. > > To support that, we firstly introduce a VDUSE library as a > subproject (like what libvhost-user does) to help implementing > VDUSE backends in QEMU. Then a VDUSE block export is implemented > based on this library. At last, we add resize and reconnect support > to the VDUSE block export and VDUSE library. > > Now this series is based on Stefan's patch [2]. And since we don't > support vdpa-blk in QEMU currently, the VM case is tested with my > previous patchset [3]. > > [1] https://www.kernel.org/doc/html/latest/userspace-api/vduse.html > [2] https://lore.kernel.org/all/20220518130945.2657905-1-stefanha@redhat.com/ > [3] https://www.mail-archive.com/qemu-devel@nongnu.org/msg797569.html > > Please review, thanks! I talked to Kevin about who should merge this. He will do a final review and it can go through his tree. I will drop it from my 'block' branch for now. Stefan
On Wed, May 25, 2022 at 8:48 PM Stefan Hajnoczi <stefanha@redhat.com> wrote: > > On Mon, May 23, 2022 at 04:46:03PM +0800, Xie Yongji wrote: > > Hi all, > > > > Last few months ago, VDUSE (vDPA Device in Userspace) [1] has > > been merged into Linux kernel as a framework that make it > > possible to emulate a vDPA device in userspace. This series > > aimed at implementing a VDUSE block backend based on the > > qemu-storage-daemon infrastructure. > > > > To support that, we firstly introduce a VDUSE library as a > > subproject (like what libvhost-user does) to help implementing > > VDUSE backends in QEMU. Then a VDUSE block export is implemented > > based on this library. At last, we add resize and reconnect support > > to the VDUSE block export and VDUSE library. > > > > Now this series is based on Stefan's patch [2]. And since we don't > > support vdpa-blk in QEMU currently, the VM case is tested with my > > previous patchset [3]. > > > > [1] https://www.kernel.org/doc/html/latest/userspace-api/vduse.html > > [2] https://lore.kernel.org/all/20220518130945.2657905-1-stefanha@redhat.com/ > > [3] https://www.mail-archive.com/qemu-devel@nongnu.org/msg797569.html > > > > Please review, thanks! > > I talked to Kevin about who should merge this. He will do a final > review and it can go through his tree. > > I will drop it from my 'block' branch for now. > OK, thank you! Thanks, Yongji
On Wed, May 25, 2022 at 7:02 PM Stefan Hajnoczi <stefanha@redhat.com> wrote: > > On Mon, May 23, 2022 at 04:46:03PM +0800, Xie Yongji wrote: > > Hi all, > > > > Last few months ago, VDUSE (vDPA Device in Userspace) [1] has > > been merged into Linux kernel as a framework that make it > > possible to emulate a vDPA device in userspace. This series > > aimed at implementing a VDUSE block backend based on the > > qemu-storage-daemon infrastructure. > > > > To support that, we firstly introduce a VDUSE library as a > > subproject (like what libvhost-user does) to help implementing > > VDUSE backends in QEMU. Then a VDUSE block export is implemented > > based on this library. At last, we add resize and reconnect support > > to the VDUSE block export and VDUSE library. > > > > Now this series is based on Stefan's patch [2]. And since we don't > > support vdpa-blk in QEMU currently, the VM case is tested with my > > previous patchset [3]. > > > > [1] https://www.kernel.org/doc/html/latest/userspace-api/vduse.html > > [2] https://lore.kernel.org/all/20220518130945.2657905-1-stefanha@redhat.com/ > > [3] https://www.mail-archive.com/qemu-devel@nongnu.org/msg797569.html > > > > Please review, thanks! > > Thanks, applied to my block tree: > https://gitlab.com/stefanha/qemu/commits/block > > Successfully manually tested on Linux 5.17.6. > > Please send a follow-up patch that adds a tests/qemu-iotests/ test case > that launches qemu-storage-daemon with a vduse-blk export, writes a > pattern to the disk, and reads the pattern back to verify it. An > automated test will prevent bitrot. > Will do it. > I am sending a follow-up patch with documentation so users can discover > and learn how to use this new feature. > OK. Thanks, Yongji
Am 23.05.2022 um 10:46 hat Xie Yongji geschrieben: > Hi all, > > Last few months ago, VDUSE (vDPA Device in Userspace) [1] has > been merged into Linux kernel as a framework that make it > possible to emulate a vDPA device in userspace. This series > aimed at implementing a VDUSE block backend based on the > qemu-storage-daemon infrastructure. > > To support that, we firstly introduce a VDUSE library as a > subproject (like what libvhost-user does) to help implementing > VDUSE backends in QEMU. Then a VDUSE block export is implemented > based on this library. At last, we add resize and reconnect support > to the VDUSE block export and VDUSE library. > > Now this series is based on Stefan's patch [2]. And since we don't > support vdpa-blk in QEMU currently, the VM case is tested with my > previous patchset [3]. > > [1] https://www.kernel.org/doc/html/latest/userspace-api/vduse.html > [2] https://lore.kernel.org/all/20220518130945.2657905-1-stefanha@redhat.com/ > [3] https://www.mail-archive.com/qemu-devel@nongnu.org/msg797569.html Thanks, applied to the block branch. Kevin