summary refs log tree commit diff
path: root/net_util
diff options
context:
space:
mode:
authorChirantan Ekbote <chirantan@chromium.org>2017-08-25 14:51:23 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-30 13:04:22 -0700
commit86fb9567b588a11ed1f7ed2e3223c25fad07cc6f (patch)
treec0e847396b1f2b8ac6cf2f4f6c674c9572d9e740 /net_util
parentee73bf34a841fd7720e1af0c7a1a3346fc6c5768 (diff)
downloadcrosvm-86fb9567b588a11ed1f7ed2e3223c25fad07cc6f.tar
crosvm-86fb9567b588a11ed1f7ed2e3223c25fad07cc6f.tar.gz
crosvm-86fb9567b588a11ed1f7ed2e3223c25fad07cc6f.tar.bz2
crosvm-86fb9567b588a11ed1f7ed2e3223c25fad07cc6f.tar.lz
crosvm-86fb9567b588a11ed1f7ed2e3223c25fad07cc6f.tar.xz
crosvm-86fb9567b588a11ed1f7ed2e3223c25fad07cc6f.tar.zst
crosvm-86fb9567b588a11ed1f7ed2e3223c25fad07cc6f.zip
Refactor the VhostNet virtio device
Split the VhostNet virtio device into generic and specific bits.  Almost
the entire Worker implementation is generic between all vhost devices.
The only non-generic bit is a device-specific ioctl to activate a
virtqueue.

To deal with this add a callback to the Worker's Run function to
activate all the virtqueues after they have been set up.

BUG=chromium:708267
TEST=build and run with a vhost-net enabled kernel and see that
     everything still works

Change-Id: I262c07e4d2c289f9528924ba708d0b88bd0379bb
Signed-off-by: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/636121
Reviewed-by: Jason Clinton <jclinton@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'net_util')
0 files changed, 0 insertions, 0 deletions