* [Qemu-devel] [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring
@ 2018-01-09 16:39 Jay Zhou
2018-01-11 13:05 ` Igor Mammedov
0 siblings, 1 reply; 7+ messages in thread
From: Jay Zhou @ 2018-01-09 16:39 UTC (permalink / raw)
To: qemu-devel
Cc: mst, imammedo, weidong.huang, wangxinxin.wang, arei.gonglei,
liuzhe13, jianjay.zhou
v4 -> v5:
Making the followed up device_add to fall back to userspace
virtio when netdev_add fails if vhost force flag does not set.
Jay Zhou (4):
vhost: remove assertion to prevent crash
tap: do not close fd if only vhost failed to initialize
vhost: fix memslot limit check
vhost: used_memslots refactoring
hw/virtio/vhost-backend.c | 15 +++++++-
hw/virtio/vhost-user.c | 74 +++++++++++++++++++++++++++------------
hw/virtio/vhost.c | 30 +++++++++-------
include/hw/virtio/vhost-backend.h | 6 ++--
net/tap.c | 25 +++++++++----
5 files changed, 104 insertions(+), 46 deletions(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring
2018-01-09 16:39 [Qemu-devel] [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring Jay Zhou
@ 2018-01-11 13:05 ` Igor Mammedov
2018-01-11 13:55 ` Zhoujian (jay)
2018-01-11 20:13 ` Michael S. Tsirkin
0 siblings, 2 replies; 7+ messages in thread
From: Igor Mammedov @ 2018-01-11 13:05 UTC (permalink / raw)
To: Jay Zhou
Cc: qemu-devel, mst, weidong.huang, wangxinxin.wang, arei.gonglei,
liuzhe13
On Wed, 10 Jan 2018 00:39:02 +0800
Jay Zhou <jianjay.zhou@huawei.com> wrote:
Jay,
considering how non trivial touched code is, would you mind
first adding 'make check' testcases for success/failure paths
that you are touching?
It would help with merging and ensure that future changes to
vhost won't break memslots handling.
> v4 -> v5:
> Making the followed up device_add to fall back to userspace
> virtio when netdev_add fails if vhost force flag does not set.
>
> Jay Zhou (4):
> vhost: remove assertion to prevent crash
> tap: do not close fd if only vhost failed to initialize
> vhost: fix memslot limit check
> vhost: used_memslots refactoring
>
> hw/virtio/vhost-backend.c | 15 +++++++-
> hw/virtio/vhost-user.c | 74 +++++++++++++++++++++++++++------------
> hw/virtio/vhost.c | 30 +++++++++-------
> include/hw/virtio/vhost-backend.h | 6 ++--
> net/tap.c | 25 +++++++++----
> 5 files changed, 104 insertions(+), 46 deletions(-)
>
> --
> 1.8.3.1
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring
2018-01-11 13:05 ` Igor Mammedov
@ 2018-01-11 13:55 ` Zhoujian (jay)
2018-01-11 19:55 ` Michael S. Tsirkin
2018-01-11 20:13 ` Michael S. Tsirkin
1 sibling, 1 reply; 7+ messages in thread
From: Zhoujian (jay) @ 2018-01-11 13:55 UTC (permalink / raw)
To: Igor Mammedov
Cc: qemu-devel@nongnu.org, mst@redhat.com, Huangweidong (C),
wangxin (U), Gonglei (Arei), Liuzhe (Ahriy, Euler)
Hi Igor,
> -----Original Message-----
> From: Igor Mammedov [mailto:imammedo@redhat.com]
> Sent: Thursday, January 11, 2018 9:05 PM
> To: Zhoujian (jay) <jianjay.zhou@huawei.com>
> Cc: qemu-devel@nongnu.org; mst@redhat.com; Huangweidong (C)
> <weidong.huang@huawei.com>; wangxin (U) <wangxinxin.wang@huawei.com>; Gonglei
> (Arei) <arei.gonglei@huawei.com>; Liuzhe (Ahriy, Euler) <liuzhe13@huawei.com>
> Subject: Re: [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring
>
> On Wed, 10 Jan 2018 00:39:02 +0800
> Jay Zhou <jianjay.zhou@huawei.com> wrote:
>
> Jay,
> considering how non trivial touched code is, would you mind first adding
> 'make check' testcases for success/failure paths that you are touching?
> It would help with merging and ensure that future changes to vhost won't
> break memslots handling.
Will look into the testcases. Maybe it would take some time since I'm not
very familiar with them.
Regards,
Jay
>
> > v4 -> v5:
> > Making the followed up device_add to fall back to userspace
> > virtio when netdev_add fails if vhost force flag does not set.
> >
> > Jay Zhou (4):
> > vhost: remove assertion to prevent crash
> > tap: do not close fd if only vhost failed to initialize
> > vhost: fix memslot limit check
> > vhost: used_memslots refactoring
> >
> > hw/virtio/vhost-backend.c | 15 +++++++-
> > hw/virtio/vhost-user.c | 74 +++++++++++++++++++++++++++--------
> ----
> > hw/virtio/vhost.c | 30 +++++++++-------
> > include/hw/virtio/vhost-backend.h | 6 ++--
> > net/tap.c | 25 +++++++++----
> > 5 files changed, 104 insertions(+), 46 deletions(-)
> >
> > --
> > 1.8.3.1
> >
> >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring
2018-01-11 13:55 ` Zhoujian (jay)
@ 2018-01-11 19:55 ` Michael S. Tsirkin
2018-01-12 1:41 ` Zhoujian (jay)
0 siblings, 1 reply; 7+ messages in thread
From: Michael S. Tsirkin @ 2018-01-11 19:55 UTC (permalink / raw)
To: Zhoujian (jay)
Cc: Igor Mammedov, qemu-devel@nongnu.org, Huangweidong (C),
wangxin (U), Gonglei (Arei), Liuzhe (Ahriy, Euler)
On Thu, Jan 11, 2018 at 01:55:38PM +0000, Zhoujian (jay) wrote:
> Hi Igor,
>
> > -----Original Message-----
> > From: Igor Mammedov [mailto:imammedo@redhat.com]
> > Sent: Thursday, January 11, 2018 9:05 PM
> > To: Zhoujian (jay) <jianjay.zhou@huawei.com>
> > Cc: qemu-devel@nongnu.org; mst@redhat.com; Huangweidong (C)
> > <weidong.huang@huawei.com>; wangxin (U) <wangxinxin.wang@huawei.com>; Gonglei
> > (Arei) <arei.gonglei@huawei.com>; Liuzhe (Ahriy, Euler) <liuzhe13@huawei.com>
> > Subject: Re: [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring
> >
> > On Wed, 10 Jan 2018 00:39:02 +0800
> > Jay Zhou <jianjay.zhou@huawei.com> wrote:
> >
> > Jay,
> > considering how non trivial touched code is, would you mind first adding
> > 'make check' testcases for success/failure paths that you are touching?
> > It would help with merging and ensure that future changes to vhost won't
> > break memslots handling.
>
> Will look into the testcases. Maybe it would take some time since I'm not
> very familiar with them.
>
> Regards,
> Jay
ok can you repost whatever's ready please? And please use proper
threading (e.g. generated with git format-patch --thread=shallow).
> >
> > > v4 -> v5:
> > > Making the followed up device_add to fall back to userspace
> > > virtio when netdev_add fails if vhost force flag does not set.
> > >
> > > Jay Zhou (4):
> > > vhost: remove assertion to prevent crash
> > > tap: do not close fd if only vhost failed to initialize
> > > vhost: fix memslot limit check
> > > vhost: used_memslots refactoring
> > >
> > > hw/virtio/vhost-backend.c | 15 +++++++-
> > > hw/virtio/vhost-user.c | 74 +++++++++++++++++++++++++++--------
> > ----
> > > hw/virtio/vhost.c | 30 +++++++++-------
> > > include/hw/virtio/vhost-backend.h | 6 ++--
> > > net/tap.c | 25 +++++++++----
> > > 5 files changed, 104 insertions(+), 46 deletions(-)
> > >
> > > --
> > > 1.8.3.1
> > >
> > >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring
2018-01-11 13:05 ` Igor Mammedov
2018-01-11 13:55 ` Zhoujian (jay)
@ 2018-01-11 20:13 ` Michael S. Tsirkin
2018-01-12 9:18 ` Igor Mammedov
1 sibling, 1 reply; 7+ messages in thread
From: Michael S. Tsirkin @ 2018-01-11 20:13 UTC (permalink / raw)
To: Igor Mammedov
Cc: Jay Zhou, qemu-devel, weidong.huang, wangxinxin.wang,
arei.gonglei, liuzhe13
On Thu, Jan 11, 2018 at 02:05:20PM +0100, Igor Mammedov wrote:
> On Wed, 10 Jan 2018 00:39:02 +0800
> Jay Zhou <jianjay.zhou@huawei.com> wrote:
>
> Jay,
> considering how non trivial touched code is, would you mind
> first adding 'make check' testcases for success/failure paths
> that you are touching?
> It would help with merging and ensure that future changes to
> vhost won't break memslots handling.
Which tests would you like this to be added to?
> > v4 -> v5:
> > Making the followed up device_add to fall back to userspace
> > virtio when netdev_add fails if vhost force flag does not set.
> >
> > Jay Zhou (4):
> > vhost: remove assertion to prevent crash
> > tap: do not close fd if only vhost failed to initialize
> > vhost: fix memslot limit check
> > vhost: used_memslots refactoring
> >
> > hw/virtio/vhost-backend.c | 15 +++++++-
> > hw/virtio/vhost-user.c | 74 +++++++++++++++++++++++++++------------
> > hw/virtio/vhost.c | 30 +++++++++-------
> > include/hw/virtio/vhost-backend.h | 6 ++--
> > net/tap.c | 25 +++++++++----
> > 5 files changed, 104 insertions(+), 46 deletions(-)
> >
> > --
> > 1.8.3.1
> >
> >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring
2018-01-11 19:55 ` Michael S. Tsirkin
@ 2018-01-12 1:41 ` Zhoujian (jay)
0 siblings, 0 replies; 7+ messages in thread
From: Zhoujian (jay) @ 2018-01-12 1:41 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Igor Mammedov, qemu-devel@nongnu.org, Huangweidong (C),
wangxin (U), Gonglei (Arei), Liuzhe (Ahriy, Euler), Jason Wang
> -----Original Message-----
> From: Michael S. Tsirkin [mailto:mst@redhat.com]
> Sent: Friday, January 12, 2018 3:56 AM
> To: Zhoujian (jay) <jianjay.zhou@huawei.com>
> Cc: Igor Mammedov <imammedo@redhat.com>; qemu-devel@nongnu.org; Huangweidong
> (C) <weidong.huang@huawei.com>; wangxin (U) <wangxinxin.wang@huawei.com>;
> Gonglei (Arei) <arei.gonglei@huawei.com>; Liuzhe (Ahriy, Euler)
> <liuzhe13@huawei.com>
> Subject: Re: [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring
>
> On Thu, Jan 11, 2018 at 01:55:38PM +0000, Zhoujian (jay) wrote:
> > Hi Igor,
> >
> > > -----Original Message-----
> > > From: Igor Mammedov [mailto:imammedo@redhat.com]
> > > Sent: Thursday, January 11, 2018 9:05 PM
> > > To: Zhoujian (jay) <jianjay.zhou@huawei.com>
> > > Cc: qemu-devel@nongnu.org; mst@redhat.com; Huangweidong (C)
> > > <weidong.huang@huawei.com>; wangxin (U)
> > > <wangxinxin.wang@huawei.com>; Gonglei
> > > (Arei) <arei.gonglei@huawei.com>; Liuzhe (Ahriy, Euler)
> > > <liuzhe13@huawei.com>
> > > Subject: Re: [PATCH v5 0/4] vhost: two fixes and used_memslots
> > > refactoring
> > >
> > > On Wed, 10 Jan 2018 00:39:02 +0800
> > > Jay Zhou <jianjay.zhou@huawei.com> wrote:
> > >
> > > Jay,
> > > considering how non trivial touched code is, would you mind first
> > > adding 'make check' testcases for success/failure paths that you are
> touching?
> > > It would help with merging and ensure that future changes to vhost
> > > won't break memslots handling.
> >
> > Will look into the testcases. Maybe it would take some time since I'm
> > not very familiar with them.
> >
> > Regards,
> > Jay
>
>
> ok can you repost whatever's ready please? And please use proper threading
> (e.g. generated with git format-patch --thread=shallow).
>
Will send a v6 version soon.
PS: Considering vhost memslots series and the patch "tap: do not close fd
if only vhost failed to initialize" are two separate issues, will send
them separately.
Regards,
Jay
> > >
> > > > v4 -> v5:
> > > > Making the followed up device_add to fall back to userspace
> > > > virtio when netdev_add fails if vhost force flag does not set.
> > > >
> > > > Jay Zhou (4):
> > > > vhost: remove assertion to prevent crash
> > > > tap: do not close fd if only vhost failed to initialize
> > > > vhost: fix memslot limit check
> > > > vhost: used_memslots refactoring
> > > >
> > > > hw/virtio/vhost-backend.c | 15 +++++++-
> > > > hw/virtio/vhost-user.c | 74 +++++++++++++++++++++++++++----
> ----
> > > ----
> > > > hw/virtio/vhost.c | 30 +++++++++-------
> > > > include/hw/virtio/vhost-backend.h | 6 ++--
> > > > net/tap.c | 25 +++++++++----
> > > > 5 files changed, 104 insertions(+), 46 deletions(-)
> > > >
> > > > --
> > > > 1.8.3.1
> > > >
> > > >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring
2018-01-11 20:13 ` Michael S. Tsirkin
@ 2018-01-12 9:18 ` Igor Mammedov
0 siblings, 0 replies; 7+ messages in thread
From: Igor Mammedov @ 2018-01-12 9:18 UTC (permalink / raw)
To: Michael S. Tsirkin
Cc: Jay Zhou, qemu-devel, weidong.huang, wangxinxin.wang,
arei.gonglei, liuzhe13
On Thu, 11 Jan 2018 22:13:25 +0200
"Michael S. Tsirkin" <mst@redhat.com> wrote:
> On Thu, Jan 11, 2018 at 02:05:20PM +0100, Igor Mammedov wrote:
> > On Wed, 10 Jan 2018 00:39:02 +0800
> > Jay Zhou <jianjay.zhou@huawei.com> wrote:
> >
> > Jay,
> > considering how non trivial touched code is, would you mind
> > first adding 'make check' testcases for success/failure paths
> > that you are touching?
> > It would help with merging and ensure that future changes to
> > vhost won't break memslots handling.
>
> Which tests would you like this to be added to?
At least a test for, so it won't regress unnoticed in future
1st: [PATCH v5 3/4] vhost: fix memslot limit check
2nd: limit check failure triggered when DIMM module hotplugged
PS:
It's fine if tests will be another series on top of this one.
>
> > > v4 -> v5:
> > > Making the followed up device_add to fall back to userspace
> > > virtio when netdev_add fails if vhost force flag does not set.
> > >
> > > Jay Zhou (4):
> > > vhost: remove assertion to prevent crash
> > > tap: do not close fd if only vhost failed to initialize
> > > vhost: fix memslot limit check
> > > vhost: used_memslots refactoring
> > >
> > > hw/virtio/vhost-backend.c | 15 +++++++-
> > > hw/virtio/vhost-user.c | 74 +++++++++++++++++++++++++++------------
> > > hw/virtio/vhost.c | 30 +++++++++-------
> > > include/hw/virtio/vhost-backend.h | 6 ++--
> > > net/tap.c | 25 +++++++++----
> > > 5 files changed, 104 insertions(+), 46 deletions(-)
> > >
> > > --
> > > 1.8.3.1
> > >
> > >
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-01-12 9:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-09 16:39 [Qemu-devel] [PATCH v5 0/4] vhost: two fixes and used_memslots refactoring Jay Zhou
2018-01-11 13:05 ` Igor Mammedov
2018-01-11 13:55 ` Zhoujian (jay)
2018-01-11 19:55 ` Michael S. Tsirkin
2018-01-12 1:41 ` Zhoujian (jay)
2018-01-11 20:13 ` Michael S. Tsirkin
2018-01-12 9:18 ` Igor Mammedov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).