Skip to contentSkip to conversation

Vhost-user - multi queue support

Qemu-devel Long, Thomas 4 participants 5 messages Dec 2, 2014 – Dec 3, 2014 Networking

lore
Share & tools
lore
#2 lore raw

Hi All,

Quoted 6 lines · Michael S. Tsirkin
Quoted 5 lines · Thomas

Hi All,

I’m just wondering what the status is with regards to supporting multi-queue in Vhost-user?

Quoted 6 lines
Quoted 6 lines

I see that Nikolaev has developed a patch to support this feature:

https://github.com/SnabbCo/qemu/commit/f41eeccf4ab6ea5970e2941ce2de0aae893b10f9

Are there any current plans to pull either this patch or a different patch into QEMU ?

I reviewed the patch and it looks good to me. One small comment: if nc->info_str is set to ("vhost-user%d to %s", i, chr->label), it would make sense to display it when the event callback:

net/vhost-user.c +2 -2
@@ -122,36 +122,39 @@ static void net_vhost_user_event(void *opaque, int event)
     case CHR_EVENT_OPENED:
         vhost_user_start(s);
         net_vhost_link_down(s, false);
-        error_report("chardev \"%s\" went up\n", s->chr->label);
+        error_report("chardev \"%s\" went up\n", s->nc.info_str);
         break;
     case CHR_EVENT_CLOSED:
         net_vhost_link_down(s, true);
         vhost_user_stop(s);
-        error_report("chardev \"%s\" went down\n", s->chr->label);
+        error_report("chardev \"%s\" went down\n", s->nc.info_str);
         break;
     }
 }
 
 

If it helps, I can submit a patch based on Nikolaev's on the list.

Regards,
Olivier

#3 lore raw

-----Original Message-----
From: Olivier MATZ [mailto:[email protected]]
Sent: Tuesday, December 2, 2014 4:41 PM
To: Michael S. Tsirkin; Long, Thomas
Cc: Ryan, Brendan; [email protected]; [email protected]
Subject: Re: [Qemu-devel] Vhost-user - multi queue support

Hi All,

Quoted 6 lines · Michael S. Tsirkin
Quoted 5 lines · Thomas

Hi All,

I’m just wondering what the status is with regards to supporting multi-queue in Vhost-user?

Quoted 7 lines
Quoted 7 lines

I see that Nikolaev has developed a patch to support this feature:

https://github.com/SnabbCo/qemu/commit/f41eeccf4ab6ea5970e2941ce2de0a
ae893b10f9

Are there any current plans to pull either this patch or a different patch into QEMU ?

I reviewed the patch and it looks good to me. One small comment: if nc->info_str is set to ("vhost-user%d to %s", i, chr->label), it would make sense to display it when the event callback:

net/vhost-user.c +0 -0
@@ -122,36 +122,39 @@ static void net_vhost_user_event(void *opaque, int

event)

      case CHR_EVENT_OPENED:
          vhost_user_start(s);
          net_vhost_link_down(s, false);
-        error_report("chardev \"%s\" went up\n", s->chr->label);
+        error_report("chardev \"%s\" went up\n", s->nc.info_str);
          break;
      case CHR_EVENT_CLOSED:
          net_vhost_link_down(s, true);
          vhost_user_stop(s);
-        error_report("chardev \"%s\" went down\n", s->chr->label);
+        error_report("chardev \"%s\" went down\n", s->nc.info_str);
          break;
      }

}

If it helps, I can submit a patch based on Nikolaev's on the list.

[TL] - Olivier it would be great if you could do that assuming there are no objections from anyone ?

Regards,
Olivier

#4 lore raw
In reply to Long, Thomas
Quoted 7 lines · Thomas

Hi All,

I’m just wondering what the status is with regards to supporting multi-queue in Vhost-user?

Quoted 7 lines

I see that Nikolaev has developed a patch to support this feature:

https://github.com/SnabbCo/qemu/commit/f41eeccf4ab6ea5970e2941ce2de0aae893b10f9

This patch was developed by VirtualOpenSystems for snabbswitch. We're plannig to send the patch to
the qemu devel list by the end of this week.

regards,
Nikolay NIkolaev

Quoted 11 lines

Are there any current plans to pull either this patch or a different
patch into QEMU ?

Regards,

Tommy