Download presentation
Presentation is loading. Please wait.
1
Virtio ring and virtio-net
Michael S Tsirkin Red Hat news case study challenges
2
Virtio with kvm Guest virtio Guest KVM eventfd Vhost qemu
3
io Guest virtio Guest KVM eventfd Vhost qemu
4
interrupt Guest virtio Guest KVM eventfd Vhost qemu
5
virtio-test Guest test virtio KVM eventfd Vhost qemu
6
poll test virtio eventfd Vhost
7
write test virtio eventfd Vhost
8
linux/tools/virtio # vi drivers/virtio/virtio.c ....
# cd tools/virtio/ ; make -q # insmod vhost_test/vhost_test.ko # time ./virtio_test real 0m0.649s user 0m0.295s sys 0m0.335s
9
Virtio ring Avail Desc Used Guest Vhost !
10
window ! ! Used Guest Vhost
11
Event index ! ! Used Guest Vhost !
12
Extending virtio test Guest virtio KVM eventfd Vhost qemu 31 30 29 28
27-0 features test Guest virtio KVM eventfd Vhost qemu
13
linux/tools/virtio # time ./virtio_test --no-event-idx real 0m0.649s
user 0m0.295s sys 0m0.335s # time ./virtio_test --event-idx real 0m0.169s user 0m0.140s sys 0m0.019s
14
virtio-net TX Guest KVM Vhost macvtap NIC
15
Zcopy TX Guest KVM Vhost macvtap NIC
16
Guest -> External 10 Gb/s 64K 4K 64K 4K 2K 2K
17
Filtering :80 :22 Guest :80? KVM Vhost tap bridge NIC
18
Partial copy Guest :22 :80 :80? KVM Vhost tap bridge skbuff NIC
19
Zcopy RX Guest B tap KVM Vhost Guest KVM Vhost tap bridge NIC ?
20
Guest 2 Guest Guest A Guest B KVM Vhost tap bridge tap Vhost KVM NIC
21
multiqueue Guest TX RX TX RX Macvtap TX RX TX RX ? NIC TX RX TX RX
22
External -> Guest 10 Gb/s 4 8 512b 4 8 2 2
23
Status/TODO Virtio ring + Zero copy TX + Multiqueue + Zero copy RX ?
Bridge zero copy ? Level interrupts ?
24
Questions?
25
Virtio ring Avail Desc Used Guest Vhost
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.