> -----Original Message----- > From: [email protected] <qemu- > [email protected]> On Behalf Of > Akihiko Odaki > Sent: 04 November 2026 09:14 > To: Weqaar Janjua <[email protected]>; Michael S. Tsirkin > <[email protected]> > Cc: [email protected]; [email protected]; > [email protected]; [email protected]; > [email protected]; [email protected]; [email protected]; > [email protected]; [email protected]; [email protected]; > [email protected] > Subject: Re: [PATCH v3 0/6] hw: Add Cnuas virtual devices > > !-------------------------------------------------------------------| > CAUTION: External Email > > |-------------------------------------------------------------------! > > On 2026/11/01 3:58, Weqaar Janjua wrote: > > On Sat, Oct 31, 2026 at 01:54:08PM -0400, Michael S. Tsirkin wrote: > >>> My concern with > >>> virtio device is that it would hide the layer we want people to > work with. > >> > >> People being the students? > > > > Students in the context of training and skill building, and > researchers > > from academia and industry working on rack-scale systems. It is also > intended > > for upskilling and onboarding staff, and for developing and > validating > > user-space and kernel-space code on a complete software-defined > rack-scale > > ORV3 system. With virtio the transport and the driver are already > defined, so > > there would be no device-specific PCIe driver for them to write, > whether > > as a training exercise or as custom kernel-space PCIe code that > industry > > and academic researchers develop and want to validate. > > I have reviewed the series, and it looks interesting. > > I am wondering if vfio-user might be better suited for your use case. > While the code is clean and would serve well as teaching and research > material, upstreaming it to QEMU requires integrating with QEMU's > common > infrastructure and meeting its architectural requirements, which is > currently missing. > > Specifically, the implementation bypasses QEMU's network stack, and > migration is not fully implemented. > > Fixing these issues is certainly possible, but it would require a > significant effort from both you and the reviewers. Unfortunately, > there > is currently very little bandwidth for reviewing network patches; I > only > work on this in my spare time, and I haven't seen much activity from > Jason recently either (unless I missed something). > > Furthermore, fixing this might actually conflict with your goals. > Tighter integration with QEMU internals would couple your device > implementation more closely to QEMU, making it harder to keep pace > with > upstream development and increasing the codebase size. This extra > burden > may be undesirable if your primary focus is teaching and research. > > Using vfio-user would save you the effort of upstreaming and keeping > up > with QEMU internal changes. One downside is that it does not support > migration—though I suspect that isn't a requirement for your use case > (though QEMU RDMA migration developers might be disappointed).
John has picked up the migration patches to add live migration to vfio-user. > > Regardless of the approach, you will still need to reserve the device > ID > by updating the documentation. > > Regards, > Akihiko Odaki
