Re: [Qemu-devel] [PATCH] vhost-user: set link down when the char device is closed

2015-11-23 Thread Jason Wang


On 11/20/2015 01:42 PM, Wen  wrote:
> To Jason Wang:
>
> I think this patch should be for qemu-2.5
>
> Thanks
> Wen Congyang

Hi:

I thought it was for vhost tree.

Michael:

Do you want to take this patch?

>
> On 11/11/2015 02:53 PM, Wen Congyang wrote:
>> Signed-off-by: Wen Congyang 
>> ---
>>  net/vhost-user.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/net/vhost-user.c b/net/vhost-user.c
>> index 0ebd7df..5071602 100644
>> --- a/net/vhost-user.c
>> +++ b/net/vhost-user.c
>> @@ -188,7 +188,7 @@ static void net_vhost_user_event(void *opaque, int event)
>>  qmp_set_link(name, true, );
>>  break;
>>  case CHR_EVENT_CLOSED:
>> -qmp_set_link(name, true, );
>> +qmp_set_link(name, false, );
>>  vhost_user_stop(queues, ncs);
>>  break;
>>  }
>>
>




Re: [Qemu-devel] [PATCH] vhost-user: set link down when the char device is closed

2015-11-19 Thread Wen Congyang
To Jason Wang:

I think this patch should be for qemu-2.5

Thanks
Wen Congyang

On 11/11/2015 02:53 PM, Wen Congyang wrote:
> Signed-off-by: Wen Congyang 
> ---
>  net/vhost-user.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/net/vhost-user.c b/net/vhost-user.c
> index 0ebd7df..5071602 100644
> --- a/net/vhost-user.c
> +++ b/net/vhost-user.c
> @@ -188,7 +188,7 @@ static void net_vhost_user_event(void *opaque, int event)
>  qmp_set_link(name, true, );
>  break;
>  case CHR_EVENT_CLOSED:
> -qmp_set_link(name, true, );
> +qmp_set_link(name, false, );
>  vhost_user_stop(queues, ncs);
>  break;
>  }
> 




Re: [Qemu-devel] [PATCH] vhost-user: set link down when the char device is closed

2015-11-10 Thread Yuanhan Liu
Thanks.

Reviewed-by: Yuanhan Liu   

--yliu

On Wed, Nov 11, 2015 at 02:53:29PM +0800, Wen Congyang wrote:
> Signed-off-by: Wen Congyang 
> ---
>  net/vhost-user.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/net/vhost-user.c b/net/vhost-user.c
> index 0ebd7df..5071602 100644
> --- a/net/vhost-user.c
> +++ b/net/vhost-user.c
> @@ -188,7 +188,7 @@ static void net_vhost_user_event(void *opaque, int event)
>  qmp_set_link(name, true, );
>  break;
>  case CHR_EVENT_CLOSED:
> -qmp_set_link(name, true, );
> +qmp_set_link(name, false, );
>  vhost_user_stop(queues, ncs);
>  break;
>  }
> -- 
> 2.5.0



[Qemu-devel] [PATCH] vhost-user: set link down when the char device is closed

2015-11-10 Thread Wen Congyang
Signed-off-by: Wen Congyang 
---
 net/vhost-user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/vhost-user.c b/net/vhost-user.c
index 0ebd7df..5071602 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -188,7 +188,7 @@ static void net_vhost_user_event(void *opaque, int event)
 qmp_set_link(name, true, );
 break;
 case CHR_EVENT_CLOSED:
-qmp_set_link(name, true, );
+qmp_set_link(name, false, );
 vhost_user_stop(queues, ncs);
 break;
 }
-- 
2.5.0