-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(virtio)!: use KVM_IOEVENTFD for queue notify
KVM_IOEVENTFD avoids the VM exits of VCPU threads from kernel space to user space. Further we use a non-zero notify_off_multiplier [1] in virtio device configs. By just looking at the MMIO address we are able to tell which queue is sending the notification. The value written to the MMIO address is not needed. Thus the instruction decoding in the KVM is avoided. Test setup: - Host CPU: AMD Ryzen 9 5950X - VM: memory size 1G, 1 VCPU virtio-net thought put by iperf3: - VM -> host - without KVM_IOEVENTFD: 30.6 Gbits/sec - with KVM_IOEVENTFD: 33.5 Gbits/sec - Host -> VM - without KVM_IOEVENTFD: 19.5 Gbits/sec - with KVM_IOEVENTFD: 25.4 Gbits/sec [1] Virtio Spec 1.2, Sec 4.1.4.4. Signed-off-by: Changyuan Lyu <[email protected]>
- Loading branch information
Showing
5 changed files
with
108 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters