Displaying 2 results from an estimated 2 matches for "vhost_net_setup".
2013 Mar 13
1
vhost questions.
...vhost and vhost net code, and I'm
struggling with basic questions.
1) Why do we allow userspace to change an already-set-up vhost device?
Why not have:
open()
ioctl(VHOST_GET_FEATURES)
ioctl(VHOST_SET_VRING) x n (sets num, addresses, kick/call/err fds)
ioctl(VHOST_NET_SETUP)
...
close()
You're not allowed to call things twice: to reset, you close and
reopen. That would save a lot of code which I'm not sure is correct
anyway.
2) Why do we implement write logging? Shouldn't qemu just switch to
emulation if it wants to track wr...
2013 Mar 13
1
vhost questions.
...vhost and vhost net code, and I'm
struggling with basic questions.
1) Why do we allow userspace to change an already-set-up vhost device?
Why not have:
open()
ioctl(VHOST_GET_FEATURES)
ioctl(VHOST_SET_VRING) x n (sets num, addresses, kick/call/err fds)
ioctl(VHOST_NET_SETUP)
...
close()
You're not allowed to call things twice: to reset, you close and
reopen. That would save a lot of code which I'm not sure is correct
anyway.
2) Why do we implement write logging? Shouldn't qemu just switch to
emulation if it wants to track wr...