All of lore.kernel.org
 help / color / mirror / Atom feed
* [PV-ops][PATCH] Netback: Fix PV network issue for netback multiple threads patchset
@ 2010-06-10 11:48 Xu, Dongxiao
  2010-06-10 12:29 ` Jan Beulich
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Xu, Dongxiao @ 2010-06-10 11:48 UTC (permalink / raw)
  To: Jeremy Fitzhardinge
  Cc: xen-devel@lists.xensource.com, djmagee@mageenet.net, Pasi, Fantu

[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]

Hi Jeremy,

The attached patch should fix the PV network issue after applying the netback multiple threads patchset.

This bug comes from the version upgrade when resending my patchset last time. 

In patch v1 & v2, I used kzalloc() to allocate memory, so there is no problem.
In patch v3, I changed it to "__get_free_pages(GFP_KERNEL | __GFP_ZERO, order)", so there is also no problem.
However in patch v4, when modified it to vmalloc according to the comments, memset(0) is missing. Sorry for that.

*ONE POINT IS*, the phenomenon on my side is different from the bug reports from mailing list. They often saw GPLPV network long ping latency, and on my side, system would crash when enabling guest network. 

After applying the patch, network in the following cases are working fine in my side. 

WinXP 32bit with gplpv_XP_0.11.0.213.msi
64bit Linux PV guest.
64bit RHEL5u3 HVM guest with PV driver

Can somebody help to try this fixing for long ping latency phenomenon? Appreciate for that!

Thanks,
Dongxiao

[-- Attachment #2: 0001-Netback-Set-allocated-memory-to-zero-from-vmalloc.patch --]
[-- Type: application/octet-stream, Size: 941 bytes --]

From 2ed0ed4e5aa66debe9d3cac5ba78e48190536333 Mon Sep 17 00:00:00 2001
From: Dongxiao Xu <dongxiao.xu@intel.com>
Date: Thu, 10 Jun 2010 19:03:15 +0800
Subject: [PATCH] Netback: Set allocated memory to zero from vmalloc.

This should fix the windows/linux pv driver issue.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 drivers/xen/netback/netback.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/xen/netback/netback.c b/drivers/xen/netback/netback.c
index b23fab0..f76913d 100644
--- a/drivers/xen/netback/netback.c
+++ b/drivers/xen/netback/netback.c
@@ -1623,6 +1623,7 @@ static int __init netback_init(void)
 		printk(KERN_ALERT "%s: out of memory\n", __func__);
 		return -ENOMEM;
 	}
+	memset(xen_netbk, 0, sizeof(struct xen_netbk) * xen_netbk_group_nr);
 
 	/* We can increase reservation by this much in net_rx_action(). */
 //	balloon_update_driver_allowance(NET_RX_RING_SIZE);
-- 
1.6.3


[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-07-01 16:11 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-10 11:48 [PV-ops][PATCH] Netback: Fix PV network issue for netback multiple threads patchset Xu, Dongxiao
2010-06-10 12:29 ` Jan Beulich
2010-06-10 12:51 ` [PV-ops][PATCH] Netback: Fix PV network issue fornetback " djmagee
2010-06-10 12:58   ` Pasi Kärkkäinen
2010-06-11  9:35 ` [PV-ops][PATCH] Netback: Fix PV network issue for netback " Ian Campbell
2010-06-17  8:16   ` Xu, Dongxiao
2010-06-21 11:14     ` Jeremy Fitzhardinge
2010-06-22  2:29       ` Xu, Dongxiao
2010-07-01 14:48       ` Ian Campbell
2010-07-01 15:29         ` Jeremy Fitzhardinge
2010-07-01 15:47           ` Ian Campbell
2010-07-01 16:06             ` Ian Campbell
2010-07-01 16:07             ` Jeremy Fitzhardinge
2010-07-01 16:11               ` Ian Campbell
2010-06-24  8:33     ` Ian Campbell
2010-06-25  7:31       ` Xu, Dongxiao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.