Re: [PATCH] virtio_console: remove vq buf while unpluging port

2019-05-24 Thread Greg KH
On Sun, Apr 28, 2019 at 09:50:04AM +0800, zhenwei pi wrote: > A bug can be easily reproduced: > Host# cat guest-agent.xml > > > > > Host# virsh attach-device instance guest-agent.xml > Host# virsh detach-device instance guest-agent.xml > Host# virsh attach-device instance guest-agent.xml >

Re: [PATCH] drm/qxl: drop WARN_ONCE()

2019-05-24 Thread Daniel Vetter
On Fri, May 24, 2019 at 12:42:50PM +0200, Gerd Hoffmann wrote: > There is no good reason to flood the kernel log with a WARN > stacktrace just because someone tried to mmap a prime buffer. Yeah no userspace triggerable dmesg noise above debug level. > > Signed-off-by: Gerd Hoffmann

[PATCH] VMCI: Fix integer overflow in VMCI handle arrays

2019-05-24 Thread Vishnu DASA via Virtualization
The VMCI handle array has an integer overflow in vmci_handle_arr_append_entry when it tries to expand the array. This can be triggered from a guest, since the doorbell link hypercall doesn't impose a limit on the number of doorbell handles that a VM can create in the hypervisor, and these handles

Call for Papers - ICOTTS'2019, Buenos Aires, Argentina

2019-05-24 Thread Maria
ICOTTS'19 - The 2019 International Conference on Tourism, Technology & Systems 5 - 7 December 2019, Buenos Aires, Argentina Proceedings by Springer. Indexed by Scopus, ISI, etc. https://www.icotts.org/ ICOTTS'19 - The 2019 International Conference on Tourism,

Call for Papers - ICOTTS'2019, Buenos Aires, Argentina

2019-05-24 Thread Maria
ICOTTS'19 - The 2019 International Conference on Tourism, Technology & Systems 5 - 7 December 2019, Buenos Aires, Argentina Proceedings by Springer. Indexed by Scopus, ISI, etc. https://www.icotts.org/ ICOTTS'19 - The 2019 International Conference on Tourism,

[PATCH] drm/qxl: drop WARN_ONCE()

2019-05-24 Thread Gerd Hoffmann
There is no good reason to flood the kernel log with a WARN stacktrace just because someone tried to mmap a prime buffer. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_prime.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_prime.c

Re: [Qemu-devel] custom virt-io support (in user-mode-linux)

2019-05-24 Thread Johannes Berg
On Thu, 2019-05-23 at 15:41 +0100, Stefan Hajnoczi wrote: > > Also, not sure I understand how the client is started? > > The vhost-user device backend can be launched before QEMU. QEMU is > started with the UNIX domain socket path so it can connect. Hmm. I guess I'm confusing the terminology

[PATCH net-next 5/6] vhost: factor out setting vring addr and num

2019-05-24 Thread Jason Wang
Factoring vring address and num setting which needs special care for accelerating vq metadata accessing. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 177 -- 1 file changed, 103 insertions(+), 74 deletions(-) diff --git a/drivers/vhost/vhost.c

[PATCH net-next 6/6] vhost: access vq metadata through kernel virtual address

2019-05-24 Thread Jason Wang
It was noticed that the copy_to/from_user() friends that was used to access virtqueue metdata tends to be very expensive for dataplane implementation like vhost since it involves lots of software checks, speculation barriers, hardware feature toggling (e.g SMAP). The extra cost will be more

[PATCH net-next 2/6] vhost: fine grain userspace memory accessors

2019-05-24 Thread Jason Wang
This is used to hide the metadata address from virtqueue helpers. This will allow to implement a vmap based fast accessing to metadata. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 94 +++ 1 file changed, 77 insertions(+), 17 deletions(-) diff

[PATCH net-next 1/6] vhost: generalize adding used elem

2019-05-24 Thread Jason Wang
Use one generic vhost_copy_to_user() instead of two dedicated accessor. This will simplify the conversion to fine grain accessors. About 2% improvement of PPS were seen during vitio-user txonly test. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 11 +-- 1 file changed, 1

[PATCH net-next 3/6] vhost: rename vq_iotlb_prefetch() to vq_meta_prefetch()

2019-05-24 Thread Jason Wang
Rename the function to be more accurate since it actually tries to prefetch vq metadata address in IOTLB. And this will be used by following patch to prefetch metadata virtual addresses. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 4 ++-- drivers/vhost/vhost.c | 4 ++--

[PATCH net-next 4/6] vhost: introduce helpers to get the size of metadata area

2019-05-24 Thread Jason Wang
To avoid code duplication since it will be used by kernel VA prefetching. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 51 --- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index

[PATCH net-next 0/6] vhost: accelerate metadata access

2019-05-24 Thread Jason Wang
Hi: This series tries to access virtqueue metadata through kernel virtual address instead of copy_user() friends since they had too much overheads like checks, spec barriers or even hardware feature toggling like SMAP. This is done through setup kernel address through direct mapping and