Re: [Qemu-devel] [PATCH V2 1/3] colo-compare: introduce colo compare initlization

2016-04-12 Thread Zhang Chen
+if (!size) { +return 0; +} + +ret = qemu_chr_fe_write_all(out, (uint8_t *)&len, sizeof(len)); +if (ret != sizeof(len)) { +goto err; +} + +ret = qemu_chr_fe_write_all(out, (uint8_t *)buf, size); +if (ret != size) { +goto err; +} + You can ma

Re: [Qemu-devel] [PATCH V2 1/3] colo-compare: introduce colo compare initlization

2016-03-31 Thread Li Zhijian
On 04/01/2016 01:11 PM, Jason Wang wrote: On 03/31/2016 05:24 PM, Dr. David Alan Gilbert wrote: * Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: On 03/30/2016 05:25 PM, Dr. David Alan Gilbert wrote: * Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: packet come from primary char inde

Re: [Qemu-devel] [PATCH V2 1/3] colo-compare: introduce colo compare initlization

2016-03-31 Thread Jason Wang
On 03/31/2016 05:24 PM, Dr. David Alan Gilbert wrote: > * Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: >> >> On 03/30/2016 05:25 PM, Dr. David Alan Gilbert wrote: >>> * Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: packet come from primary char indev will be send to outdev - pa

Re: [Qemu-devel] [PATCH V2 1/3] colo-compare: introduce colo compare initlization

2016-03-31 Thread Dr. David Alan Gilbert
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: > > > On 03/30/2016 05:25 PM, Dr. David Alan Gilbert wrote: > >* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: > >>packet come from primary char indev will be send to > >>outdev - packet come from secondary char dev will be drop > >Please pu

Re: [Qemu-devel] [PATCH V2 1/3] colo-compare: introduce colo compare initlization

2016-03-31 Thread Zhang Chen
On 03/31/2016 09:41 AM, Zhang Chen wrote: On 03/30/2016 05:25 PM, Dr. David Alan Gilbert wrote: * Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: packet come from primary char indev will be send to outdev - packet come from secondary char dev will be drop Please put in the description an

Re: [Qemu-devel] [PATCH V2 1/3] colo-compare: introduce colo compare initlization

2016-03-30 Thread Zhang Chen
On 03/30/2016 05:25 PM, Dr. David Alan Gilbert wrote: * Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: packet come from primary char indev will be send to outdev - packet come from secondary char dev will be drop Please put in the description an example of how you invoke the filter on the

Re: [Qemu-devel] [PATCH V2 1/3] colo-compare: introduce colo compare initlization

2016-03-30 Thread Dr. David Alan Gilbert
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: > packet come from primary char indev will be send to > outdev - packet come from secondary char dev will be drop Please put in the description an example of how you invoke the filter on the primary and secondary. > Signed-off-by: Li Zhijian >

[Qemu-devel] [PATCH V2 1/3] colo-compare: introduce colo compare initlization

2016-03-30 Thread Zhang Chen
packet come from primary char indev will be send to outdev - packet come from secondary char dev will be drop Signed-off-by: Li Zhijian Signed-off-by: Zhang Chen Signed-off-by: Wen Congyang --- net/Makefile.objs | 1 + net/colo-compare.c | 344 +++