Displaying 20 results from an estimated 39 matches for "netbk".
2013 Jun 21
5
[patch] xen-netback: double free on unload
...rpenter@oracle.com>
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index a0b50ad..130bcb2 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -1968,8 +1968,8 @@ static void __exit netback_fini(void)
del_timer_sync(&netbk->net_timer);
kthread_stop(netbk->task);
for (j = 0; j < MAX_PENDING_REQS; j++) {
- if (netbk->mmap_pages[i])
- __free_page(netbk->mmap_pages[i]);
+ if (netbk->mmap_pages[j])
+ __free_page(netbk->mmap_pages[j]);
}
}
2013 Jul 02
3
[PATCH RFC] xen-netback: remove guest RX path dependence on MAX_SKB_FRAGS
...tback/interface.c
@@ -96,18 +96,24 @@ static irqreturn_t xenvif_interrupt(int irq, void *dev_id)
static int xenvif_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct xenvif *vif = netdev_priv(dev);
+ unsigned int ring_slots_required;
BUG_ON(skb->dev != dev);
if (vif->netbk == NULL)
goto drop;
+ ring_slots_required = xen_netbk_count_skb_slots(vif, skb);
+
+ /* Reserve ring slots for the worst-case number of fragments. */
+ vif->rx_req_cons_peek += ring_slots_required;
+
/* Drop the packet if the target domain has no receive buffers. */
- if (!xenvif_rx_sched...
2012 Aug 10
1
How to load backend drivers in 4.2
...es:
xen-netback ; alias: xen-backend:vif
xen-blkback ; alias: xen-backend:vbd
xen-pciback ; alias: xen-backend:pci
These aliases have been in the tree since at least 3.2, which is a long
time.
The sles11sp2 kernel has more backend drivers, but they have no alias:
netbk
blkbk
xen-scsibk
usbbk
tpmbk
pciback
I''m sure adding ad a MODULE_ALIAS() entry to netbk, blkbk and pciback to
match mainline is trivial.
I wonder why libxl does not do a ''modprobe xen-backend:vif &>/dev/null'' if
it is about to configure an interface for...
2013 Jun 28
3
[PATCH next] xen: Use more current logging styles
...--git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index 130bcb2..64828de 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -1890,9 +1890,8 @@ static int __init netback_init(void)
return -ENODEV;
if (fatal_skb_slots < XEN_NETBK_LEGACY_SLOTS_MAX) {
- printk(KERN_INFO
- "xen-netback: fatal_skb_slots too small (%d), bump it to XEN_NETBK_LEGACY_SLOTS_MAX (%d)\n",
- fatal_skb_slots, XEN_NETBK_LEGACY_SLOTS_MAX);
+ pr_info("fatal_skb_slots too small (%d), bump it to XEN_NETBK_LEGACY_SLOTS_MAX (%d...
2013 Jun 28
3
[PATCH next] xen: Use more current logging styles
...--git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index 130bcb2..64828de 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -1890,9 +1890,8 @@ static int __init netback_init(void)
return -ENODEV;
if (fatal_skb_slots < XEN_NETBK_LEGACY_SLOTS_MAX) {
- printk(KERN_INFO
- "xen-netback: fatal_skb_slots too small (%d), bump it to XEN_NETBK_LEGACY_SLOTS_MAX (%d)\n",
- fatal_skb_slots, XEN_NETBK_LEGACY_SLOTS_MAX);
+ pr_info("fatal_skb_slots too small (%d), bump it to XEN_NETBK_LEGACY_SLOTS_MAX (%d...
2013 Jun 28
3
[PATCH next] xen: Use more current logging styles
...--git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index 130bcb2..64828de 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -1890,9 +1890,8 @@ static int __init netback_init(void)
return -ENODEV;
if (fatal_skb_slots < XEN_NETBK_LEGACY_SLOTS_MAX) {
- printk(KERN_INFO
- "xen-netback: fatal_skb_slots too small (%d), bump it to XEN_NETBK_LEGACY_SLOTS_MAX (%d)\n",
- fatal_skb_slots, XEN_NETBK_LEGACY_SLOTS_MAX);
+ pr_info("fatal_skb_slots too small (%d), bump it to XEN_NETBK_LEGACY_SLOTS_MAX (%d...
2013 Jun 24
3
[PATCH v2] xen-netback: add a pseudo pps rate limit
...it = min(max_credit, max_burst);
}
+static void tx_add_packets(struct xenvif *vif)
+{
+ vif->remaining_packets = vif->credit_packets;
+}
+
static void tx_credit_callback(unsigned long data)
{
struct xenvif *vif = (struct xenvif *)data;
tx_add_credit(vif);
+ tx_add_packets(vif);
xen_netbk_check_rx_xenvif(vif);
}
@@ -1419,6 +1425,38 @@ static bool tx_credit_exceeded(struct xenvif *vif, unsigned size)
return false;
}
+static bool tx_packets_exceeded(struct xenvif *vif)
+{
+ unsigned long now = jiffies;
+ unsigned long next_credit =
+ vif->credit_timeout.expires +
+ msecs_...
2013 Feb 06
0
[PATCH 1/4] xen/netback: shutdown the ring if it contains garbage.
...an insane number of requests
on the ring (i.e. more than would fit in the ring). If the ring
contains garbage then previously is was possible to loop over this
insane number, getting an error each time and therefore not generating
any more pending requests and therefore not exiting the loop in
xen_netbk_tx_build_gops for an externded period.
Also turn various netdev_dbg calls which no precipitate a fatal error
into netdev_err, they are rate limited because the device is shutdown
afterwards.
This fixes at least one known DoS/softlockup of the backend domain.
Signed-off-by: Ian Campbell <ian.c...
2013 Feb 15
1
[PATCH 7/8] netback: split event channels support
...net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c
index fa4d46d..c9ebe21 100644
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -60,7 +60,8 @@ static int xenvif_rx_schedulable(struct xenvif *vif)
return xenvif_schedulable(vif) && !xen_netbk_rx_ring_full(vif);
}
-static irqreturn_t xenvif_interrupt(int irq, void *dev_id)
+/* Tx interrupt handler used when feature-split-event-channels == 1 */
+static irqreturn_t xenvif_tx_interrupt(int tx_irq, void *dev_id)
{
struct xenvif *vif = dev_id;
@@ -69,12 +70,31 @@ static irqreturn_t xe...
2013 Feb 01
45
netback Oops then xenwatch stuck in D state
...cb8 ffffffff8141b06d ffff880000000218 ffff880042fe1200
ffff88004334fdb8 ffffffff81543b9b ffff88004334fd84 ffff880042c59040
ffff88004334fd68 ffff88004334fd48 ffff880000000cc0 ffffc900106c7ac0
Call Trace:
[<ffffffff8141b06d>] notify_remote_via_irq+0xd/0x40
[<ffffffff81543b9b>] xen_netbk_rx_action+0x73b/0x800
[<ffffffff81544c25>] xen_netbk_kthread+0xb5/0xa60
[<ffffffff81080050>] ? finish_task_switch+0x60/0xd0
[<ffffffff81071fe0>] ? wake_up_bit+0x40/0x40
[<ffffffff81544b70>] ? xen_netbk_tx_build_gops+0xa10/0xa10
[<ffffffff81071926>] kthread+0x...
2010 May 05
5
[Pv-ops][PATCH 0/4 v4] Netback multiple threads support
This is netback multithread support patchset version 4.
Main Changes from v3:
1. Patchset is against xen/next tree.
2. Merge group and idx into netif->mapping.
3. Use vmalloc to allocate netbk structures.
Main Changes from v2:
1. Merge "group" and "idx" into "netif->mapping", therefore
page_ext is not used now.
2. Put netbk_add_netif() and netbk_remove_netif() into
__netif_up() and __netif_down().
3. Change the usage of kthread_should_stop().
4. Use __ge...
2010 May 31
0
Kernel panic is occured when multi VMs is booting togeter
...x86_64-abi)
Unable to handle kernel paging request at ffff880074ec2b68 RIP:
[<ffffffff804158eb>] skb_copy_bits+0x114/0x1d3
PGD 11a4067 PUD 13a6067 PMD 154e067 PTE 0
Oops: 0000 [1] SMP
last sysfs file: /devices/xen-backend/vbd-1-51712/statistics/wr_sect
CPU 2
Modules linked in: bridge netloop netbk blktap blkbk sg bonding ipv6
xfrm_nalgo crypto_api ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core
ib_addr iscsi_tcp libiscsi_tcp libiscsi2 scsi_transport_iscsi2
scsi_transport_iscsi dm_mirror dm_multipath scsi_dh video hwmon backlight
sbs i2c_ec i2c_core button battery asus_acpi ac parport_pc lp...
2013 Jul 09
20
[PATCH 1/1] xen/netback: correctly calculate required slots of skb.
When counting required slots for skb, netback directly uses DIV_ROUND_UP to get
slots required by header data. This is wrong when offset in the page of header
data is not zero, and is also inconsistent with following calculation for
required slot in netbk_gop_skb.
In netbk_gop_skb, required slots are calculated based on offset and len in page
of header data. It is possible that required slots here is larger than the one
calculated in earlier netbk_count_requests. This inconsistency directly results
in rx_req_cons_peek and xen_netbk_rx_ring_full jud...
2013 Feb 19
0
kernel BUG at kernel-xen-3.7.9/linux-3.7/fs/buffer.c:2952
...this:
kernel BUG at /home/abuild/rpmbuild/BUILD/kernel-
xen-3.7.9/linux-3.7/fs/buffer.c:2952!
[ 628.054552] invalid opcode: 0000 [#1] SMP
[ 628.054557] Modules linked in: bridge stp llc iptable_filter ip_tables
x_tables nbd blktap2 pciback usbbk xen_scsibk openvswitch blkbk
blkback_pagemap netbk xenbus_be gntdev evtchn ocfs2_dlmfs ocfs2_stack_o2cb
ocfs2_dlm bonding af_packet edd ocfs2 ocfs2_nodemanager configfs
ocfs2_stackglue quota_tree coretemp domctl crc32c_intel ghash_clmulni_intel
joydev iTCO_wdt aesni_intel iTCO_vendor_support ablk_helper cryptd lrw
aes_x86_64 hid_generic gpio_ic...
2008 Aug 27
4
Modules not loading
...-3.3.0
# make tools
# make xen
# make install-tools
# make install-xen
Development deps were all meet, everything compiled w/o error.
Used yum to install kernel-xen bridge-utils bridge-utils gtk-vnc (did I need that?)
Edited grub to use 3.3''s hypervisor.
chkconfig xend on
After a reboot, netbk, xenblk, blktap, blkbk, and netloop modules were not loaded, so moprobe''ing them in got everything working. What''s the right way to get this accomplished?
Thanks,
jlc
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lis...
2010 Jan 29
7
with Xen4 config -> (pci-passthrough-strict-check no), DomU init reports "Error: pci: PCI Backend and pci-stub don''t own device"
...grep passthrough /etc/xen/xend-config.sxp
(pci-passthrough-strict-check no)
grep hide /etc/modprobe.d/99-local.conf
options pciback hide=(0000:04:07.0)(0000:04:06.0)
and checking,
lsmod | egrep -i "pciback|xen"
pciback 54471 0
xenbus_be 3474 4 netbk,blkbk,blktap,pciback
xenblk 26117 0
cdrom 42939 2 sr_mod,xenblk
xennet 37545 0
@ DomU init.
xm create -c ./test.cfg
returns,
Using config file "./test.cfg".
Error: pci: PCI Backend and pci-stub don''t own device 0000...
2013 Apr 30
6
[PATCH net-next 2/2] xen-netback: avoid allocating variable size array on stack
Tune xen_netbk_count_requests to not touch working array beyond limit, so that
we can make working array size constant.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
drivers/net/xen-netback/netback.c | 26 +++++++++++++++++++++-----
1 file changed, 21 insertions(+), 5 deletions(-)
diff --git a/drive...
2010 Oct 28
0
HVM + IGD Graphics + 4GB RAM = Soft Lockup
...0503] [<ffffffff80116ace>] sys_open+0x2e/0x50
[ 244.340508] [<ffffffff8000c8c8>] system_call_fastpath+0x16/0x1b
[ 244.340523] [<00007ffee4ff2267>] 0x7ffee4ff2267
[ 244.344364] BUG: soft lockup - CPU#0 stuck for 192s! [xend:3119]
[ 244.344364] Modules linked in: usbbk gntdev netbk blkbk
blkback_pagemap blktap edd af_packet bridge stp llc microcode fuse loop
ppdev i2c_i801 parport_pc iTCO_wdt intel_agp e1000e wmi heci(C) i2c_core
dcdbas serio_raw pcspkr sg parport iTCO_vendor_support agpgart 8250_pci
8250_pnp button 8250 serial_core linear dm_snapshot dm_mod xenblk cdrom
xenn...
2010 Oct 28
0
HVM + IGD Graphics + 4GB RAM = Soft Lockup
...0503] [<ffffffff80116ace>] sys_open+0x2e/0x50
[ 244.340508] [<ffffffff8000c8c8>] system_call_fastpath+0x16/0x1b
[ 244.340523] [<00007ffee4ff2267>] 0x7ffee4ff2267
[ 244.344364] BUG: soft lockup - CPU#0 stuck for 192s! [xend:3119]
[ 244.344364] Modules linked in: usbbk gntdev netbk blkbk
blkback_pagemap blktap edd af_packet bridge stp llc microcode fuse loop
ppdev i2c_i801 parport_pc iTCO_wdt intel_agp e1000e wmi heci(C) i2c_core
dcdbas serio_raw pcspkr sg parport iTCO_vendor_support agpgart 8250_pci
8250_pnp button 8250 serial_core linear dm_snapshot dm_mod xenblk cdrom
xenn...
2010 Dec 30
2
Having stability problems with Linux-2.6.34.7-0.5-xen
...[78295.342537] last sysfs file:
/sys/devices/xen-backend/vbd-2-768/statistics/wr_sect
Dec 29 09:30:47 toddb05 kernel: [78295.342541] CPU 0
Dec 29 09:30:47 toddb05 kernel: [78295.342543] Modules linked in:
rndis_wlan cfg80211 rfkill rndis_host cdc_ether usbnet snd_seq_dummy tun
fuse usbbk gntdev netbk blkbk blkback_pagemap blktap domctl xenbus_be
evtchn snd_pcm_oss snd_mixer_oss snd_seq snd_seq_device edd nls_utf8 cifs
bridge stp llc radeon ttm drm_kms_helper drm i2c_algo_bit loop dm_mod
snd_hda_codec_atihdmi snd_hda_codec_idt snd_hda_intel snd_hda_codec
snd_hwdep firewire_ohci firewire_core...