On Fri, Feb 02, 2024 at 03:11:45PM +0100, Laurent
Vivier wrote:
Add virtio.c and virtio.h that define the
functions needed
to manage virtqueues.
Signed-off-by: Laurent Vivier <lvivier(a)redhat.com>
When importing a batch of code from outside, I think we need to choose
between one of two extremes:
1) Treat this as a "vendored" dependency. Keep the imported code
byte-for-byte identical to the original source, and possibly have
some integration glue in different files
2) Fully assimilate: treat this as our own code, inspired by the
original source. Rewrite as much as we need to match our own
conventions.
Currently, this is somewhere in between: we have some changes for the
passt tree (e.g. tab indents), but other things retain qemu style
(e.g. CamelCase, typedefs, and braces around single line clauses).
I'd rather pick 2) if possible, in the hope that we can cut down on
lines of code, but I haven't really checked how much we use of this.
--
Stefano