search for: connect_ring

Displaying 19 results from an estimated 19 matches for "connect_ring".

2008 Mar 05
0
[PATCH] linux: properly qualify all static ''struct xenbus_device_id'' instances
...vers/xen/blkback/xenbus.c =================================================================== --- head-2008-02-26.orig/drivers/xen/blkback/xenbus.c 2008-03-05 16:30:44.000000000 +0100 +++ head-2008-02-26/drivers/xen/blkback/xenbus.c 2008-03-05 08:58:34.000000000 +0100 @@ -518,7 +518,7 @@ static int connect_ring(struct backend_i /* ** Driver Registration ** */ -static struct xenbus_device_id blkback_ids[] = { +static const struct xenbus_device_id blkback_ids[] = { { "vbd" }, { "" } }; Index: head-2008-02-26/drivers/xen/blkfront/blkfront.c ======================================...
2013 Feb 15
1
[PATCH 7/8] netback: split event channels support
...ame, + "feature-split-event-channels", + "%u", 1); + if (err) { + message = "writing feature-split-event-channels"; + goto abort_transaction; + } + err = xenbus_transaction_end(xbt, 0); } while (err == -EAGAIN); @@ -419,7 +428,7 @@ static int connect_rings(struct backend_info *be) { struct xenvif *vif = be->vif; struct xenbus_device *dev = be->dev; - unsigned int evtchn, rx_copy; + unsigned int tx_evtchn, rx_evtchn, rx_copy; int err; int val; unsigned long tx_ring_ref[NETBK_MAX_RING_PAGES]; @@ -428,12 +437,22 @@ static int connect_r...
2012 Nov 02
2
[PATCH] xen-blk: persistent-grants fixes
.../* * If this is a new persistent grant * save the handler diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index b225026..a03ecbb 100644 --- a/drivers/block/xen-blkback/xenbus.c +++ b/drivers/block/xen-blkback/xenbus.c @@ -760,7 +760,7 @@ static int connect_ring(struct backend_info *be) return -1; } err = xenbus_gather(XBT_NIL, dev->otherend, - "feature-persistent-grants", "%u", + "feature-persistent", "%u", &pers_grants, NULL); if (err) pers_grants = 0; diff --git a/drivers/blo...
2012 Aug 16
0
[RFC v1 5/5] VBD: enlarge max segment per request in blkfront
...efault: + break; + } +} + #endif /* __XEN_BLKIF__BACKEND__COMMON_H__ */ diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index 8b0d496..4678533 100644 --- a/drivers/block/xen-blkback/xenbus.c +++ b/drivers/block/xen-blkback/xenbus.c @@ -36,7 +36,7 @@ static int connect_ring(struct backend_info *); static void backend_changed(struct xenbus_watch *, const char **, unsigned int); -extern struct blkback_ring_operation blkback_ring_ops; +extern struct blkback_ring_operation blkback_ring_ops, blkback_ring_ops_v2; struct xenbus_device *xen_blkbk_xenbus(struct b...
2011 Apr 04
0
[PATCH] xen: netback: use unsigned type for one-bit bitfield.
...rivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c @@ -26,7 +26,7 @@ struct backend_info { struct xenvif *vif; enum xenbus_state frontend_state; struct xenbus_watch hotplug_status_watch; - int have_hotplug_status_watch:1; + u8 have_hotplug_status_watch:1; }; static int connect_rings(struct backend_info *); -- 1.7.2.5
2011 Apr 04
0
[PATCH] xen: netback: use unsigned type for one-bit bitfield.
...rivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c @@ -26,7 +26,7 @@ struct backend_info { struct xenvif *vif; enum xenbus_state frontend_state; struct xenbus_watch hotplug_status_watch; - int have_hotplug_status_watch:1; + u8 have_hotplug_status_watch:1; }; static int connect_rings(struct backend_info *); -- 1.7.2.5
2012 Aug 16
0
[RFC v1 3/5] VBD: enlarge max segment per request in blkfront
...*seg_req; spinlock_t blk_ring_lock; atomic_t refcnt; diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index 4f66171..850ecad 100644 --- a/drivers/block/xen-blkback/xenbus.c +++ b/drivers/block/xen-blkback/xenbus.c @@ -36,6 +36,8 @@ static int connect_ring(struct backend_info *); static void backend_changed(struct xenbus_watch *, const char **, unsigned int); +extern struct blkback_ring_operation blkback_ring_ops; + struct xenbus_device *xen_blkbk_xenbus(struct backend_info *be) { return be->dev; @@ -725,6 +727,12 @@ static...
2011 Apr 04
0
[PATCH] linux-2.6.18/backends: use xenbus_be.ko interfaces instead of open-coding them
...kif_free(be->blkif, dev); tap_blkif_kmem_cache_free(be->blkif); be->blkif = NULL; } @@ -342,7 +342,7 @@ static void blkif_disconnect(blkif_t *bl } /* idempotent */ - tap_blkif_free(blkif); + tap_blkif_free(blkif, blkif->be->dev); } /** @@ -465,7 +465,7 @@ static int connect_ring(struct backend_i ring_ref, evtchn, be->blkif->blk_protocol, protocol); /* Map the shared frame, irq etc. */ - err = tap_blkif_map(be->blkif, ring_ref, evtchn); + err = tap_blkif_map(be->blkif, dev, ring_ref, evtchn); if (err) { xenbus_dev_fatal(dev, err, "mapping...
2007 Jul 13
12
XEN 3.1: critical bug: vif init failure after creating 15-17 VMs (XENBUS: Timeout connecting to device: device/vif)
We have found a critical problem with the XEN 3.1 release (for those who are running 15-20 VMs on a single server). We are using the official XEN 3.1 release on a rackable server (Dual-Core AMD Opteron, 8GB RAM). The problem we are seeing is that intermittently vifs fail to work properly in VMs after we create around 15-17 VMs on our server (all running at the same time, created one by
2007 Jun 07
4
blkif_map error starting fourth guest domain
...sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! My investigations suggest that this is due to the following in dom0''s kernel log: Jun 7 15:37:18 dell2950g kernel: vbd vbd-4-2057: 1 mapping ring-ref 8 port 6 This is printed by connect_ring() in drivers/xen/blkback/xenbus.c, as a result of the call to blkif_map() failing. The reason for blkif_map() failing seems to be the map_frontend_page() call failing. xm dmesg prints out: (XEN) mm.c:2610:d0 Could not find L1 PTE for address e1204000 which seems likely to be connected to map_fron...
2019 Jun 07
1
Problem with opusfile & ndk
Hi Xiph.org Team. We are using opusfile library <https://github.com/xiph/opusfile> for streaming *.opus* audio in our projects. But now we have a problem with building opusfile library for android with *ndk-build*. In particular, with arm64-v8a platform: Google removed <sys/timeb.h> from android. And now building opusfile with nkd-build crashes with error "fatal error:
2011 Aug 15
6
[patch] xen-blkback: sync I/O after backend disconnected
...le changed, 8 insertions(+) diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index 1a87f5b..da39d61 100644 --- a/drivers/block/xen-blkback/xenbus.c +++ b/drivers/block/xen-blkback/xenbus.c @@ -35,6 +35,7 @@ static void connect(struct backend_info *); static int connect_ring(struct backend_info *); static void backend_changed(struct xenbus_watch *, const char **, unsigned int); +static void xen_vbd_sync(struct xen_vbd *vbd); struct xenbus_device *xen_blkbk_xenbus(struct backend_info *be) { @@ -232,6 +233,7 @@ static void xen_blkif_disconnect(struct xen_blk...
2012 Mar 05
11
[PATCH 0001/001] xen: multi page ring support for block devices
...me, "max-ring-page-order", + "%u", xen_blkif_max_ring_order); + if (err) + goto fail; + err = xenbus_switch_state(dev, XenbusStateInitWait); if (err) goto fail; @@ -744,22 +753,80 @@ again: static int connect_ring(struct backend_info *be) { struct xenbus_device *dev = be->dev; - unsigned long ring_ref; + int ring_ref[XENBUS_MAX_RING_PAGES]; + unsigned int ring_order; unsigned int evtchn; char protocol[64] = ""; int err; DPRINTK("%s...
2012 Mar 05
11
[PATCH 0001/001] xen: multi page ring support for block devices
...me, "max-ring-page-order", + "%u", xen_blkif_max_ring_order); + if (err) + goto fail; + err = xenbus_switch_state(dev, XenbusStateInitWait); if (err) goto fail; @@ -744,22 +753,80 @@ again: static int connect_ring(struct backend_info *be) { struct xenbus_device *dev = be->dev; - unsigned long ring_ref; + int ring_ref[XENBUS_MAX_RING_PAGES]; + unsigned int ring_order; unsigned int evtchn; char protocol[64] = ""; int err; DPRINTK("%s...
2012 Mar 05
11
[PATCH 0001/001] xen: multi page ring support for block devices
...me, "max-ring-page-order", + "%u", xen_blkif_max_ring_order); + if (err) + goto fail; + err = xenbus_switch_state(dev, XenbusStateInitWait); if (err) goto fail; @@ -744,22 +753,80 @@ again: static int connect_ring(struct backend_info *be) { struct xenbus_device *dev = be->dev; - unsigned long ring_ref; + int ring_ref[XENBUS_MAX_RING_PAGES]; + unsigned int ring_order; unsigned int evtchn; char protocol[64] = ""; int err; DPRINTK("%s...
2011 Jun 21
13
VM disk I/O limit patch
...13 +25,14 @@ #undef DPRINTK #define DPRINTK(fmt, args...) \ - pr_debug("blkback/xenbus (%s:%d) " fmt ".\n", \ + printk("blkback/xenbus (%s:%d) " fmt ".\n", \ __FUNCTION__, __LINE__, ##args) static void connect(struct backend_info *); static int connect_ring(struct backend_info *); static void backend_changed(struct xenbus_watch *, const char **, unsigned int); +static void unregister_rate_watch(struct backend_info *be); static int blkback_name(blkif_t *blkif, char *buf) { @@ -59,8 +60,10 @@ static void update_blkif_status(blkif_t char n...
2011 Jun 21
13
VM disk I/O limit patch
...13 +25,14 @@ #undef DPRINTK #define DPRINTK(fmt, args...) \ - pr_debug("blkback/xenbus (%s:%d) " fmt ".\n", \ + printk("blkback/xenbus (%s:%d) " fmt ".\n", \ __FUNCTION__, __LINE__, ##args) static void connect(struct backend_info *); static int connect_ring(struct backend_info *); static void backend_changed(struct xenbus_watch *, const char **, unsigned int); +static void unregister_rate_watch(struct backend_info *be); static int blkback_name(blkif_t *blkif, char *buf) { @@ -59,8 +60,10 @@ static void update_blkif_status(blkif_t char n...
2012 Sep 19
27
[PATCH] Persistent grant maps for xen blk drivers
...t;, 1); + if (err) { + xenbus_dev_fatal(dev, err, "writing persistent capability"); + goto abort; + } + /* FIXME: use a typename instead */ err = xenbus_printf(xbt, dev->nodename, "info", "%u", be->blkif->vbd.type | @@ -721,6 +728,7 @@ static int connect_ring(struct backend_info *be) struct xenbus_device *dev = be->dev; unsigned long ring_ref; unsigned int evtchn; + u8 pers_grants; char protocol[64] = ""; int err; @@ -750,8 +758,17 @@ static int connect_ring(struct backend_info *be) xenbus_dev_fatal(dev, err, "unknown fe...
2013 Oct 10
3
[PATCH net-next v3 5/5] xen-netback: enable IPv6 TCP GSO to the guest
..._GSO_TYPE_TCPV4; gso->u.gso.pad = 0; gso->u.gso.features = 0; diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 7e4dcc9..6a005f1 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c @@ -577,15 +577,40 @@ static int connect_rings(struct backend_info *be) val = 0; vif->can_sg = !!val; + vif->gso_mask = 0; + vif->gso_prefix_mask = 0; + if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-gso-tcpv4", "%d", &val) < 0) val = 0; - vif->gso = !!val; + if (val) + vif->gso...