Re: [Qemu-devel] [PATCH v2 2/2] vhost-user: back SET/GET_CONFIG requests with a protocol feature

2018-03-29 Thread Maxime Coquelin
On 03/29/2018 10:05 AM, Liu, Changpeng wrote: -Original Message- From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] Sent: Thursday, March 29, 2018 3:56 PM To: Liu, Changpeng ; m...@redhat.com; marcandre.lur...@redhat.com; qemu-devel@nongnu.org Subject: Re: [PATCH v2 2/2] vhost

Re: [Qemu-devel] [PATCH v2 2/2] vhost-user: back SET/GET_CONFIG requests with a protocol feature

2018-03-29 Thread Liu, Changpeng
> -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Thursday, March 29, 2018 3:56 PM > To: Liu, Changpeng ; m...@redhat.com; > marcandre.lur...@redhat.com; qemu-devel@nongnu.org > Subject: Re: [PATCH v2 2/2] vhost-user: back SET/GET_CONFIG requests wit

Re: [Qemu-devel] [PATCH v2 2/2] vhost-user: back SET/GET_CONFIG requests with a protocol feature

2018-03-29 Thread Maxime Coquelin
On 03/29/2018 02:57 AM, Liu, Changpeng wrote: -Original Message- From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] Sent: Thursday, March 29, 2018 3:28 AM To: m...@redhat.com; Liu, Changpeng ; marcandre.lur...@redhat.com; qemu-devel@nongnu.org Cc: Maxime Coquelin Subject: [PA

Re: [Qemu-devel] [PATCH v2 2/2] vhost-user: back SET/GET_CONFIG requests with a protocol feature

2018-03-28 Thread Liu, Changpeng
> -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Thursday, March 29, 2018 3:28 AM > To: m...@redhat.com; Liu, Changpeng ; > marcandre.lur...@redhat.com; qemu-devel@nongnu.org > Cc: Maxime Coquelin > Subject: [PATCH v2 2/2] vhost-user: back SET/GET_

[Qemu-devel] [PATCH v2 2/2] vhost-user: back SET/GET_CONFIG requests with a protocol feature

2018-03-28 Thread Maxime Coquelin
Without a dedicated protocol feature, QEMU cannot know whether the backend can handle VHOST_USER_SET_CONFIG and VHOST_USER_GET_CONFIG messages. This patch adds a protocol feature that is only advertised by QEMU if the device implements the config ops. Vhost user init fails if the device support th