[dpdk-dev] [PATCH v5 15/19] vhost: send userfault range addresses back to qemu

Tiwei Bie tiwei.bie at intel.com
Wed Oct 10 12:13:06 CEST 2018


On Tue, Oct 09, 2018 at 10:54:22PM +0200, Maxime Coquelin wrote:
> Signed-off-by: Dr. David Alan Gilbert <dgilbert at redhat.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
>  lib/librte_vhost/vhost_user.c | 49 ++++++++++++++++++++++++++++++++---
>  1 file changed, 46 insertions(+), 3 deletions(-)
> 
> diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c
> index 96290fdb4..170d258c4 100644
> --- a/lib/librte_vhost/vhost_user.c
> +++ b/lib/librte_vhost/vhost_user.c
> @@ -79,6 +79,11 @@ static const char *vhost_message_str[VHOST_USER_MAX] = {
>  	[VHOST_USER_POSTCOPY_LISTEN]  = "VHOST_USER_POSTCOPY_LISTEN",
>  };
>  
> +static int
> +send_vhost_reply(int sockfd, struct VhostUserMsg *msg);
> +static int
> +read_vhost_message(int sockfd, struct VhostUserMsg *msg);

Something like this looks better:

static int send_vhost_reply(int sockfd, struct VhostUserMsg *msg);
static int read_vhost_message(int sockfd, struct VhostUserMsg *msg);



More information about the dev mailing list