Re: [PATCH 6/6] rpmsg: add a device ID to also bind to the ADSP device

2020-05-16 Thread kbuild test robot
also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Guennadi-Liakhovetski/Add-a-vhost-RPMsg-API/20200516-181559 base:bdecf38f228bcca73b31ada98b5b7ba1215eb9c9 config

[PATCH RFC] vhost: add an SOF Audio DSP driver

2020-05-16 Thread Guennadi Liakhovetski
The SOF ADSP vhost driver consists of two parts: a sound and a vhost part. This patch implements the vhost part of the driver. It handles QEMU communication with the vhost misc device and virtual queues to any VirtIO RPMsg guests. Signed-off-by: Guennadi Liakhovetski --- This is marked as an

[PATCH 6/6] rpmsg: add a device ID to also bind to the ADSP device

2020-05-16 Thread Guennadi Liakhovetski
The ADSP device uses the RPMsg API to connect vhost and VirtIO SOF Audio DSP drivers on KVM host and guest. Signed-off-by: Guennadi Liakhovetski --- drivers/rpmsg/virtio_rpmsg_bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c

[PATCH 5/6] vhost: add an rpmsg API

2020-05-16 Thread Guennadi Liakhovetski
Linux supports running the RPMsg protocol over the VirtIO transport protocol, but currently there is only support for VirtIO clients and no support for a VirtIO server. This patch adds a vhost-based RPMsg server implementation. Signed-off-by: Guennadi Liakhovetski --- drivers/vhost/Kconfig

[PATCH 4/6] rpmsg: update documentation

2020-05-16 Thread Guennadi Liakhovetski
rpmsg_create_ept() takes struct rpmsg_channel_info chinfo as its last argument, not a u32 value. Signed-off-by: Guennadi Liakhovetski --- Documentation/rpmsg.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/rpmsg.txt b/Documentation/rpmsg.txt index

[PATCH 0/6] Add a vhost RPMsg API

2020-05-16 Thread Guennadi Liakhovetski
Linux supports RPMsg over VirtIO for "remote processor" /AMP use cases. It can however also be used for virtualisation scenarios, e.g. when using KVM to run Linux on both the host and the guests. This patch set adds a wrapper API to facilitate writing vhost drivers for such RPMsg-based solutions.

[PATCH 2/6] vhost: (cosmetic) remove a superfluous variable initialisation

2020-05-16 Thread Guennadi Liakhovetski
Even the compiler is able to figure out that in this case the initialisation is superfluous. Signed-off-by: Guennadi Liakhovetski --- drivers/vhost/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 47060d8..e22d4a9

[PATCH 1/6] vhost: convert VHOST_VSOCK_SET_RUNNING to a generic ioctl

2020-05-16 Thread Guennadi Liakhovetski
VHOST_VSOCK_SET_RUNNING is used by the vhost vsock driver to perform crucial VirtQueue initialisation, like assigning .private fields and calling vhost_vq_init_access(), and clean up. However, this ioctl is actually extremely useful for any vhost driver, that doesn't have a side channel to inform

[PATCH 3/6] rpmsg: move common structures and defines to headers

2020-05-16 Thread Guennadi Liakhovetski
virtio_rpmsg_bus.c keeps RPMsg protocol structure declarations and common defines like the ones, needed for name-space announcements, internal. Move them to common headers instead. Signed-off-by: Guennadi Liakhovetski --- drivers/rpmsg/virtio_rpmsg_bus.c | 78

Re: [PATCH v3 25/75] x86/sev-es: Add support for handling IOIO exceptions

2020-05-16 Thread Borislav Petkov
Just a reminder so that this doesn't get lost: On Tue, Apr 28, 2020 at 05:16:35PM +0200, Joerg Roedel wrote: > + if (exit_info_1 & IOIO_TYPE_STR) { > + int df = (regs->flags & X86_EFLAGS_DF) ? -1 : 1; ... > + > + if (!(exit_info_1 & IOIO_TYPE_IN)) { > +