On Mon, Jan 22, 2018 at 11:33:46AM +0800, Jason Wang wrote:
On 2018年01月19日 21:06, Stefan Hajnoczi wrote:
Probably not for the following cases:
1) kick/call
I disagree here because kick/call is actually very efficient!
VM1's irqfd is the ioeventfd for VM2. When VM2 writes to the ioeventfd
there is a single lightweight vmexit which injects an interrupt into
VM1. QEMU is not involved and the host kernel scheduler is not involved
so this is a low-latency operation.
I haven't tested this yet but the ioeventfd code looks like this will
work.
Btw, it's better to have some early numbers, e.g what testpmd reports during
forwarding.
I need to rely on others to do this (and many other things!) because
virtio-vhost-user isn't the focus of my work.
These patches were written to demonstrate my suggestions for vhost-pci.
They were written at work but also on weekends, early mornings, and late
nights to avoid delaying Wei and Zhiyong's vhost-pci work too much.
If this approach has merit then I hope others will take over and I'll
play a smaller role addressing some of the todo items and cleanups.