On 07/25/2013 03:59 PM, Paolo Bonzini wrote:
Il 24/07/2013 23:37, H. Peter Anvin ha scritto:
What I'm suggesting is exactly that except that the native hypervisor is
later in CPUID space.
Me too actually.
I was just suggesting an implementation of the idea (that takes into
account
Cc: Frederic Weisbecker fweis...@gmail.com
Cc: linux-ker...@vger.kernel.org
Cc: de...@linuxdriverproject.org
Cc: kvm@vger.kernel.org
Cc: xen-de...@lists.xensource.com
Cc: virtualizat...@lists.linux-foundation.org
Signed-off-by: Jason Wang jasow...@redhat.com
---
arch/x86/include/asm/hypervisor.h
...@redhat.com
Cc: H. Peter Anvin h...@zytor.com
Cc: Paolo Bonzini pbonz...@redhat.com
Cc: Gleb Natapov g...@redhat.com
Cc: x...@kernel.org
Signed-off-by: Jason Wang jasow...@redhat.com
---
Changes from V1:
- use memcpy() and uint32_t instead of strcmp()
---
arch/x86/include/asm/processor.h | 15
...@redhat.com
Cc: xen-de...@lists.xensource.com
Cc: virtualizat...@lists.linux-foundation.org
Signed-off-by: Jason Wang jasow...@redhat.com
---
arch/x86/include/asm/xen/hypervisor.h | 16 +---
1 files changed, 1 insertions(+), 15 deletions(-)
diff --git a/arch/x86/include/asm/xen
Switch to use hypervisor_cpuid_base() to detect KVM.
Cc: Gleb Natapov g...@redhat.com
Cc: Paolo Bonzini pbonz...@redhat.com
Cc: Thomas Gleixner t...@linutronix.de
Cc: Ingo Molnar mi...@redhat.com
Cc: H. Peter Anvin h...@zytor.com
Cc: x...@kernel.org
Cc: kvm@vger.kernel.org
Signed-off-by: Jason
On 07/24/2013 12:48 PM, H. Peter Anvin wrote:
On 07/23/2013 09:37 PM, Jason Wang wrote:
On 07/23/2013 10:48 PM, H. Peter Anvin wrote:
On 07/23/2013 06:55 AM, KY Srinivasan wrote:
This strategy of hypervisor detection based on some detection order IMHO
is not
a robust detection strategy
: Thomas Gleixner t...@linutronix.de
Cc: Ingo Molnar mi...@redhat.com
Cc: H. Peter Anvin h...@zytor.com
Cc: x...@kernel.org
Cc: Gleb Natapov g...@redhat.com
Cc: Paolo Bonzini pbonz...@redhat.com
Cc: K. Y. Srinivasan k...@microsoft.com
Signed-off-by: Jason Wang jasow...@redhat.com
---
arch/x86/kernel/cpu
...@redhat.com
Cc: H. Peter Anvin h...@zytor.com
Cc: Paolo Bonzini pbonz...@redhat.com
Cc: Gleb Natapov g...@redhat.com
Cc: x...@kernel.org
Signed-off-by: Jason Wang jasow...@redhat.com
---
arch/x86/include/asm/processor.h | 20
1 files changed, 20 insertions(+), 0 deletions
Switch to use hypervisor_cpuid_base() to detect KVM.
Cc: Gleb Natapov g...@redhat.com
Cc: Paolo Bonzini pbonz...@redhat.com
Cc: Thomas Gleixner t...@linutronix.de
Cc: Ingo Molnar mi...@redhat.com
Cc: H. Peter Anvin h...@zytor.com
Cc: x...@kernel.org
Cc: kvm@vger.kernel.org
Signed-off-by: Jason
...@redhat.com
Cc: xen-de...@lists.xensource.com
Cc: virtualizat...@lists.linux-foundation.org
Signed-off-by: Jason Wang jasow...@redhat.com
---
arch/x86/include/asm/xen/hypervisor.h | 16 +---
1 files changed, 1 insertions(+), 15 deletions(-)
diff --git a/arch/x86/include/asm/xen
On 07/23/2013 09:48 PM, Gleb Natapov wrote:
On Tue, Jul 23, 2013 at 05:41:02PM +0800, Jason Wang wrote:
This patch introduce hypervisor_cpuid_base() which loop test the hypervisor
existence function until the signature match and check the number of
leaves if
required. This could be used
On 07/23/2013 10:48 PM, H. Peter Anvin wrote:
On 07/23/2013 06:55 AM, KY Srinivasan wrote:
This strategy of hypervisor detection based on some detection order IMHO is
not
a robust detection strategy. The current scheme works since the only
hypervisor emulated
(by other hypervisors happens
On 07/24/2013 12:03 AM, H. Peter Anvin wrote:
On 07/23/2013 04:16 AM, Paolo Bonzini wrote:
That's nicer, though strcmp is what the replaced code used to do in
patches 2 and 3.
Note that memcmp requires the caller to use KVMKVMKVM\0\0 as the
signature (or alternatively hypervisor_cpuid_base
: Gleb Natapov g...@redhat.com
Cc: Paolo Bonzini pbonz...@redhat.com
Cc: Vadim Rozenfeld vroze...@redhat.com
Cc: K. Y. Srinivasan k...@microsoft.com
Cc: Thomas Gleixner t...@linutronix.de
Cc: Ingo Molnar mi...@redhat.com
Cc: H. Peter Anvin h...@zytor.com
Signed-off-by: Jason Wang jasow...@redhat.com
);
if (ubufs)
- vhost_net_ubuf_put_and_wait(ubufs);
+ vhost_net_ubuf_put_wait_and_free(ubufs);
err_ubufs:
fput(sock-file);
err_vq:
Acked-by: Jason Wang jasow...@redhat.com
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord
On 06/07/2013 03:31 PM, Qinchuanyu wrote:
the wake_up_process func is included by spin_lock/unlock in vhost_work_queue,
but it could be done outside the spin_lock.
I have test it with kernel 3.0.27 and guest suse11-sp2 using iperf, the num
as below.
orignal
] ? kthread_freezable_should_stop+0x70/0x70
Signed-off-by: Jason Wang jasow...@redhat.com
---
drivers/vhost/net.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 2b51e23..b07d96b 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost
On 06/05/2013 09:44 PM, Sergei Shtylyov wrote:
Hello.
On 05-06-2013 11:40, Jason Wang wrote:
When we decide not use zero-copy, msg.control should be set to NULL
otherwise
macvtap/tap may set zerocopy callbacks which may decrease the kref of
ubufs
wrongly.
Bug were introduced by commit
] ? kthread_freezable_should_stop+0x70/0x70
Acked-by: Michael S. Tsirkin m...@redhat.com
Signed-off-by: Jason Wang jasow...@redhat.com
---
The patch is needed for -stable.
Changes from v1:
- code style issue fix
---
drivers/vhost/net.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git
On 05/23/2013 04:50 PM, Michael S. Tsirkin wrote:
Hey guys,
I've updated the kvm networking todo wiki with current projects.
Will try to keep it up to date more often.
Original announcement below.
Thanks a lot. I've added the tasks I'm currently working on to the wiki.
btw. I notice the
On 05/22/2013 05:59 PM, Zang Hongyong wrote:
On 2013/5/20 15:43, Michael S. Tsirkin wrote:
On Mon, May 20, 2013 at 02:11:19AM +, Qinchuanyu wrote:
Vhost thread provide both tx and rx ability for virtio-net.
In the forwarding scenarios, tx and rx share the vhost thread, and
throughput is
...@vger.kernel.org; linux-ker...@vger.kernel.org;
Jason Wang
Subject: Re: [PATCH] virtio-net: Reporting traffic queue distribution
statistics through ethtool
On Sun, May 19, 2013 at 10:56:16PM +, Narasimhan, Sriram wrote:
Hi Michael,
Comments inline...
-Original Message-
From
;
kvm@vger.kernel.org; net...@vger.kernel.org; linux-ker...@vger.kernel.org;
Jason Wang
Subject: Re: [PATCH] virtio-net: Reporting traffic queue distribution
statistics through ethtool
On Sun, May 19, 2013 at 04:09:48PM +, Narasimhan, Sriram wrote:
Hi Michael,
I was getting all packets
On 05/20/2013 11:06 AM, Qinchuanyu wrote:
Right now the wake_up_process func is included in spin_lock/unlock, but it
could be done outside the spin_lock.
I have test it with kernel 3.0.27 and guest suse11-sp2, it provide 2%-3% net
performance improved.
Signed-off-by: Chuanyu Qin
On 05/20/2013 12:22 PM, Qinchuanyu wrote:
The patch below is base on
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/drivers/vhost/vhost.c?id=refs/tags/next-20130517
Signed-off-by: Chuanyu Qin qinchua...@huawei.com
--- a/drivers/vhost/vhost.c 2013-05-20
On 05/07/2013 08:44 PM, Michael S. Tsirkin wrote:
On Tue, May 07, 2013 at 02:13:44PM +0930, Rusty Russell wrote:
Michael S. Tsirkin m...@redhat.com writes:
On Mon, May 06, 2013 at 03:41:36PM +0930, Rusty Russell wrote:
Asias He as...@redhat.com writes:
Asias He (3):
vhost: Remove
On 04/14/2013 11:16 PM, Sasha Levin wrote:
On 04/14/2013 06:01 AM, Michael S. Tsirkin wrote:
On Sat, Apr 13, 2013 at 05:23:41PM -0400, Sasha Levin wrote:
On 04/12/2013 07:36 AM, Rusty Russell wrote:
Sasha Levin sasha.le...@oracle.com writes:
On 04/11/2013 12:36 PM, Will Deacon wrote:
Hello
% |
zerocopy enabled:
sessions|transaction rates|normalize|
before/after/+improvements
1 | 7318.33/11929.76/+63.0%| 521.86/843.30/+61.6% |
25| 167264.88/242422.15/+44.9% | 2181.60/2788.16/+27.8% |
50| 272181.02/294347.04/+8.1% | 3071.56/3257.85/+6.1% |
Signed-off-by: Jason Wang jasow
On 03/08/2013 11:05 PM, Eric Dumazet wrote:
On Fri, 2013-03-08 at 14:24 +0800, Jason Wang wrote:
Hello all:
I meet an issue when testing multiqueue virtio-net. When I testing guest
small packets stream sending performance with netperf. I find an
regression of multiqueue. When I run 2
On 03/09/2013 01:26 AM, Rick Jones wrote:
Well, the point is : if your app does write(1024) bytes, thats probably
because it wants small packets from the very beginning. (See the TCP
PUSH flag ?)
I think that raises the question of whether or not Jason was setting
the test-specific -D
On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote:
On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote:
After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle
polling
errors when setting backend), we in fact track the polling state through
poll-wqh, so there's no need
On 03/11/2013 03:09 PM, Jason Wang wrote:
On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote:
On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote:
After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle
polling
errors when setting backend), we in fact track the polling
On 03/11/2013 04:29 PM, Michael S. Tsirkin wrote:
On Mon, Mar 11, 2013 at 03:09:10PM +0800, Jason Wang wrote:
On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote:
On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote:
After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle
Hello all:
I meet an issue when testing multiqueue virtio-net. When I testing guest
small packets stream sending performance with netperf. I find an
regression of multiqueue. When I run 2 sessions of TCP_STREAM test with
1024 byte from guest to local host, I get following result:
1q result:
.
Signed-off-by: Jason Wang jasow...@redhat.com
---
drivers/vhost/net.c | 60
drivers/vhost/vhost.c |3 ++
2 files changed, 13 insertions(+), 50 deletions(-)
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 959b1cd..d1a03dd 100644
On 02/11/2013 06:28 PM, Markus Armbruster wrote:
Commit 264986e2 extended NetdevTapOptions without updating the
documentation. Hasn't been addressed since. Must fix for 1.4, in my
opinion.
Will send a patch to fix this.
Thanks
This is the offending patch:
Jason Wang jasow...@redhat.com
On 02/13/2013 05:21 AM, Alexander Graf wrote:
On 01.02.2013, at 08:39, Jason Wang wrote:
This patch adds basic multiqueue support for qemu. The idea is simple, an
array
of NetClientStates were introduced in NICState, parse_netdev() were extended
to
find and match all NetClientStates
On 02/01/2013 03:39 PM, Jason Wang wrote:
Hello all:
This seires is an update of last version of multiqueue virtio-net support.
Hi Anthony:
This series is not applied cleanly on master, could you please pick
those for 1.4?
Thanks
--
To unsubscribe from this list: send the line unsubscribe
On 01/31/2013 09:44 PM, Eric Blake wrote:
On 01/31/2013 12:00 AM, Jason Wang wrote:
On 01/31/2013 02:29 AM, Eric Blake wrote:
On 01/30/2013 04:12 AM, Jason Wang wrote:
With this changes, user could start a multiqueue virtio-net device through
./qemu -netdev tap,id=hn0,queues=2,vhost
On 01/31/2013 10:36 PM, Michael S. Tsirkin wrote:
On Thu, Jan 31, 2013 at 04:21:49PM +0200, Michael S. Tsirkin wrote:
On Wed, Jan 30, 2013 at 07:12:19PM +0800, Jason Wang wrote:
Hello all:
This seires is an update of last version of multiqueue virtio-net support.
This series tries to brings
9441.94 221.64
16384 1 9380.43 403.8 9379.78 399.13 9382.42 393.55
16384 2 9367.69 406.93 9415.04 312.68 9409.29 300.9
16384 4 9391.96 405.17 9695.12 310.54 9423.76 223.47
Jason Wang (22):
net: tap: using bool instead of bitfield
net: tap: use abort() instead of assert(0)
net: introduce
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
hw/virtio-net.c |2 +-
include/net/tap.h |4 ++--
net/tap-win32.c |6 +++---
net/tap.c | 38 ++
4 files changed, 24 insertions(+), 26
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
net/tap-linux.c |4 ++--
net/tap-win32.c |2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/tap-linux.c b/net/tap-linux.c
index 059f5f3..0a6acc7 100644
--- a/net/tap
To support multiqueue, the patch introduce a helper qemu_get_queue()
which is used to get the NetClientState of a device. The following patches would
refactor this helper to support multiqueue.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
hw
To support multiqueue, this patch introduces a helper qemu_get_nic() to get
NICState from a NetClientState. The following patches would refactor this helper
to support multiqueue.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
hw/cadence_gem.c
-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
hw/e1000.c |2 +-
hw/eepro100.c|2 +-
hw/ne2000.c |2 +-
hw/pcnet-pci.c |2 +-
hw/rtl8139.c |2 +-
hw/usb/dev-network.c |2 +-
hw/virtio-net.c
In multiqueue, all NetClientState that belongs to the same netdev or nic has the
same id. So this patches introduces an helper qemu_find_net_clients_except()
which finds all NetClientState with the same id. This will be used by multiqueue
networking.
Signed-off-by: Jason Wang jasow...@redhat.com
This patch separates the setup of NetClientState from its allocation, this will
allow allocating an arrays of NetClientState and does the initialization one by
one which is what multiqueue needs.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
To allow allocating an array of NetClientState and free it once, this patch
introduces destructor of NetClientState. Which could do type specific free,
which could be used by multiqueue to free the array once.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m
is not allowed.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
hw/dp8393x.c|2 +-
hw/mcf_fec.c|2 +-
hw/qdev-properties-system.c | 46 +++---
hw/qdev-properties.h|6 +-
include/net/net.h
with
IFF_DETACH_QUEUE, the queue were disabled in the linux kernel. When doing this
ioctl with IFF_ATTACH_QUEUE, the queue were enabled in the linux kernel.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
net/tap-linux.h |4
1 files changed, 4
This patch factors out the common initialization of tap into a new helper
net_init_tap_one(). This will be used by multiqueue tap patches.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
net/tap.c | 130
is only supported
in Linux, return error on other platforms.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
net/tap-aix.c | 10 ++
net/tap-bsd.c | 10 ++
net/tap-haiku.c | 10 ++
net/tap-linux.c | 51
only done when
the tap was enabled.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
include/net/tap.h |2 ++
net/tap-win32.c | 10 ++
net/tap.c | 43 ---
3 files changed, 52
its name after
creating the first queue.
Only linux has this support since it's the only platform that supports
multiqueue tap.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
include/net/tap.h |1 +
net/tap-aix.c |5 +
net/tap
of NetClientState
were built up.
A new parameter, mq_required were introduce in tap_open() to create multiqueue
tap fds.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
include/net/tap.h |1 -
net/tap-aix.c |3 +-
net/tap-bsd.c
Add a queue_index to VirtQueue and a helper to fetch it, this could be used by
multiqueue supported device.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
hw/virtio.c |8
hw/virtio.h |1 +
2 files changed, 9 insertions(+), 0
To support multiqueue virtio-net, the first step is to separate the virtqueue
related fields from VirtIONet to a new structure VirtIONetQueue. The following
patches will add an array of VirtIONetQueue to VirtIONet based on this patch.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off
This patch implements both userspace and vhost support for multiple queue
virtio-net (VIRTIO_NET_F_MQ). This is done by introducing an array of
VirtIONetQueue to VirtIONet.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
hw/virtio-net.c | 301
This patch add migration support for multiqueue virtio-net. Instead of bumping
the version, we conditionally send the info of multiqueue only when the device
support more than one queue to maintain the backward compatibility.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S
Disable multiqueue support for pre 1.4.
Signed-off-by: Jason Wang jasow...@redhat.com
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
hw/pc_piix.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index ba09714..0af436c 100644
--- a/hw
Some device (such as virtio-net) needs the ability to destroy or re-order the
virtqueues, this patch adds a helper to do this.
Signed-off-by: Jason Wang jasowang
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
hw/virtio.c |9 +
hw/virtio.h |2 ++
2 files changed, 11
On 01/30/2013 07:03 AM, Michael S. Tsirkin wrote:
On Tue, Jan 29, 2013 at 04:55:25PM -0600, Anthony Liguori wrote:
Michael S. Tsirkin m...@redhat.com writes:
On Tue, Jan 29, 2013 at 08:10:26PM +, Blue Swirl wrote:
On Tue, Jan 29, 2013 at 1:50 PM, Jason Wang jasow...@redhat.com wrote
9415.04 312.68 9409.29 300.9
16384 4 9391.96 405.17 9695.12 310.54 9423.76 223.47
Jason Wang (22):
net: tap: using bool instead of bitfield
net: tap: use abort() instead of assert(0)
net: introduce qemu_get_queue()
net: introduce qemu_get_nic()
net: intorduce qemu_del_nic()
net
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/virtio-net.c |2 +-
include/net/tap.h |4 ++--
net/tap-win32.c |6 +++---
net/tap.c | 38 ++
4 files changed, 24 insertions(+), 26 deletions(-)
diff --git a/hw/virtio-net.c b/hw
Signed-off-by: Jason Wang jasow...@redhat.com
---
net/tap-linux.c |4 ++--
net/tap-win32.c |2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/tap-linux.c b/net/tap-linux.c
index 059f5f3..0a6acc7 100644
--- a/net/tap-linux.c
+++ b/net/tap-linux.c
@@ -164,7 +164,7
To support multiqueue, the patch introduce a helper qemu_get_queue()
which is used to get the NetClientState of a device. The following patches would
refactor this helper to support multiqueue.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/cadence_gem.c|9 +++--
hw/dp8393x.c
To support multiqueue, this patch introduces a helper qemu_get_nic() to get
NICState from a NetClientState. The following patches would refactor this helper
to support multiqueue.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/cadence_gem.c|8
hw/dp8393x.c
-by: Jason Wang jasow...@redhat.com
---
hw/e1000.c |2 +-
hw/eepro100.c|2 +-
hw/ne2000.c |2 +-
hw/pcnet-pci.c |2 +-
hw/rtl8139.c |2 +-
hw/usb/dev-network.c |2 +-
hw/virtio-net.c |2 +-
hw/xen_nic.c |2
In multiqueue, all NetClientState that belongs to the same netdev or nic has the
same id. So this patches introduces an helper qemu_find_net_clients_except()
which finds all NetClientState with the same id. This will be used by multiqueue
networking.
Signed-off-by: Jason Wang jasow...@redhat.com
This patch separates the setup of NetClientState from its allocation, this will
allow allocating an arrays of NetClientState and does the initialization one by
one which is what multiqueue needs.
Signed-off-by: Jason Wang jasow...@redhat.com
---
net/net.c | 29 +++--
1
To allow allocating an array of NetClientState and free it once, this patch
introduces destructor of NetClientState. Which could do type specific free,
which could be used by multiqueue to free the array once.
Signed-off-by: Jason Wang jasow...@redhat.com
---
include/net/net.h |2 ++
net
is not allowed.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/dp8393x.c|2 +-
hw/mcf_fec.c|2 +-
hw/qdev-properties-system.c | 46 +++---
hw/qdev-properties.h|6 +-
include/net/net.h | 18 +--
net/net.c
with
IFF_DETACH_QUEUE, the queue were disabled in the linux kernel. When doing this
ioctl with IFF_ATTACH_QUEUE, the queue were enabled in the linux kernel.
Signed-off-by: Jason Wang jasow...@redhat.com
---
net/tap-linux.h |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/net/tap
This patch factors out the common initialization of tap into a new helper
net_init_tap_one(). This will be used by multiqueue tap patches.
Signed-off-by: Jason Wang jasow...@redhat.com
---
net/tap.c | 130 ++---
1 files changed, 73
is only supported
in Linux, return error on other platforms.
Signed-off-by: Jason Wang jasow...@redhat.com
---
net/tap-aix.c | 10 ++
net/tap-bsd.c | 11 +++
net/tap-haiku.c | 11 +++
net/tap-linux.c | 52
only done when
the tap was enabled.
Signed-off-by: Jason Wang jasow...@redhat.com
---
include/net/tap.h |2 ++
net/tap-win32.c | 10 ++
net/tap.c | 43 ---
3 files changed, 52 insertions(+), 3 deletions(-)
diff --git a/include/net
its name after
creating the first queue.
Only linux has this support since it's the only platform that supports
multiqueue tap.
Signed-off-by: Jason Wang jasow...@redhat.com
---
include/net/tap.h |1 +
net/tap-aix.c |6 ++
net/tap-bsd.c |4
net/tap-haiku.c |4
of NetClientState
were built up.
A new parameter, mq_required were introduce in tap_open() to create multiqueue
tap fds.
Signed-off-by: Jason Wang jasow...@redhat.com
---
include/net/tap.h |1 -
net/tap-aix.c |3 +-
net/tap-bsd.c |3 +-
net/tap-haiku.c |3 +-
net/tap
out of the starting/stopping of a specific vhost
thread. The vhost_net_{start|stop}() were renamed to
vhost_net_{start|stop}_one(), and a new vhost_net_{start|stop}() were introduced
to configure the guest notifiers and start/stop all vhost/vhost_net devices.
Signed-off-by: Jason Wang jasow
Some device (such as virtio-net) needs the ability to destroy or re-order the
virtqueues, this patch adds a helper to do this.
Signed-off-by: Jason Wang jasowang
---
hw/virtio.c |9 +
hw/virtio.h |2 ++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/hw/virtio.c b
Add a queue_index to VirtQueue and a helper to fetch it, this could be used by
multiqueue supported device.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/virtio.c |8
hw/virtio.h |1 +
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/hw/virtio.c b/hw
To support multiqueue virtio-net, the first step is to separate the virtqueue
related fields from VirtIONet to a new structure VirtIONetQueue. The following
patches will add an array of VirtIONetQueue to VirtIONet based on this patch.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/virtio
This patch implements both userspace and vhost support for multiple queue
virtio-net (VIRTIO_NET_F_MQ). This is done by introducing an array of
VirtIONetQueue to VirtIONet.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/virtio-net.c | 303
This patch add migration support for multiqueue virtio-net. Instead of bumping
the version, we conditionally send the info of multiqueue only when the device
support more than one queue to maintain the backward compatibility.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/virtio-net.c
Disable multiqueue support for pre 1.4.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/pc_piix.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index b9a9b2e..84069b1 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -309,6 +309,10
On 01/31/2013 02:29 AM, Eric Blake wrote:
On 01/30/2013 04:12 AM, Jason Wang wrote:
With this changes, user could start a multiqueue virtio-net device through
./qemu -netdev tap,id=hn0,queues=2,vhost=on -device virtio-net-pci,netdev=hn0
Management tools such as libvirt can pass multiple pre
On 01/26/2013 03:13 AM, Blue Swirl wrote:
On Fri, Jan 25, 2013 at 10:35 AM, Jason Wang jasow...@redhat.com wrote:
This patch introduce a new bit - enabled in TAPState which tracks whether a
specific queue/fd is enabled. The tap/fd is enabled during initialization and
could be enabled/disabled
On 01/25/2013 06:35 PM, Jason Wang wrote:
This patch lets vhost support multiqueue. The idea is simple, just launching
multiple threads of vhost and let each of vhost thread processing a subset of
the virtqueues of the device. After this change each emulated device can have
multiple vhost
To support multiqueue, this patch introduces a helper qemu_get_nic() to get
NICState from a NetClientState. The following patches would refactor this helper
to support multiqueue.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/cadence_gem.c|8
hw/dp8393x.c
-by: Jason Wang jasow...@redhat.com
---
hw/e1000.c |2 +-
hw/eepro100.c|2 +-
hw/ne2000.c |2 +-
hw/pcnet-pci.c |2 +-
hw/rtl8139.c |2 +-
hw/usb/dev-network.c |2 +-
hw/virtio-net.c |2 +-
hw/xen_nic.c |2
In multiqueue, all NetClientState that belongs to the same netdev or nic has the
same id. So this patches introduces an helper qemu_find_net_clients_except()
which finds all NetClientState with the same id. This will be used by multiqueue
networking.
Signed-off-by: Jason Wang jasow...@redhat.com
To allow allocating an array of NetClientState and free it once, this patch
introduces destructor of NetClientState. Which could do type specific free,
which could be used by multiqueue to free the array once.
Signed-off-by: Jason Wang jasow...@redhat.com
---
include/net/net.h |2 ++
net
is not allowed.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/dp8393x.c|2 +-
hw/mcf_fec.c|2 +-
hw/qdev-properties-system.c | 46 +++---
hw/qdev-properties.h|6 +-
include/net/net.h | 18 +--
net/net.c
To support multiqueue, the patch introduce a helper qemu_get_queue()
which is used to get the NetClientState of a device. The following patches would
refactor this helper to support multiqueue.
Signed-off-by: Jason Wang jasow...@redhat.com
---
hw/cadence_gem.c|9 +++--
hw/dp8393x.c
This patch factors out the common initialization of tap into a new helper
net_init_tap_one(). This will be used by multiqueue tap patches.
Signed-off-by: Jason Wang jasow...@redhat.com
---
net/tap.c | 130 ++---
1 files changed, 73
This patch separates the setup of NetClientState from its allocation, this will
allow allocating an arrays of NetClientState and does the initialization one by
one which is what multiqueue needs.
Signed-off-by: Jason Wang jasow...@redhat.com
---
net/net.c | 29 +++--
1
is only supported
in Linux, return error on other platforms.
Signed-off-by: Jason Wang jasow...@redhat.com
---
net/tap-aix.c | 10 ++
net/tap-bsd.c | 11 +++
net/tap-haiku.c | 11 +++
net/tap-linux.c | 52
only done when
the tap was enabled.
Signed-off-by: Jason Wang jasow...@redhat.com
---
include/net/tap.h |2 ++
net/tap-win32.c | 10 ++
net/tap.c | 43 ---
3 files changed, 52 insertions(+), 3 deletions(-)
diff --git a/include/net
of NetClientState
were built up.
A new parameter, mq_required were introduce in tap_open() to create multiqueue
tap fds.
Signed-off-by: Jason Wang jasow...@redhat.com
---
include/net/tap.h |1 -
net/tap-aix.c |3 +-
net/tap-bsd.c |3 +-
net/tap-haiku.c |3 +-
net/tap
201 - 300 of 716 matches
Mail list logo