search for: backend_info

Displaying 20 results from an estimated 23 matches for "backend_info".

2011 Jun 21
13
VM disk I/O limit patch
...00 @@ -100,8 +100,17 @@ typedef struct blkif_st { grant_handle_t shmem_handle; grant_ref_t shmem_ref; + + /* qos information */ + unsigned long reqtime; + int reqcount; + int reqmin; + int reqrate; + } blkif_t; +#define VBD_QOS_MIN_RATE_LIMIT 2*1024 /* 1MBs */ + struct backend_info { struct xenbus_device *dev; @@ -111,6 +120,8 @@ struct backend_info unsigned major; unsigned minor; char *mode; + struct xenbus_watch rate_watch; + int have_rate_watch; }; blkif_t *blkif_alloc(domid_t domid); diff -urNp blkback/vbd.c blkback-qos/vbd.c --- blkback/vbd.c 2010-05-20 1...
2011 Jun 21
13
VM disk I/O limit patch
...00 @@ -100,8 +100,17 @@ typedef struct blkif_st { grant_handle_t shmem_handle; grant_ref_t shmem_ref; + + /* qos information */ + unsigned long reqtime; + int reqcount; + int reqmin; + int reqrate; + } blkif_t; +#define VBD_QOS_MIN_RATE_LIMIT 2*1024 /* 1MBs */ + struct backend_info { struct xenbus_device *dev; @@ -111,6 +120,8 @@ struct backend_info unsigned major; unsigned minor; char *mode; + struct xenbus_watch rate_watch; + int have_rate_watch; }; blkif_t *blkif_alloc(domid_t domid); diff -urNp blkback/vbd.c blkback-qos/vbd.c --- blkback/vbd.c 2010-05-20 1...
2011 Apr 04
0
[PATCH] linux-2.6.18/backends: use xenbus_be.ko interfaces instead of open-coding them
...s.h> +#include <xen/interface/event_channel.h> #include "blkback-pagemap.h" @@ -93,9 +88,6 @@ typedef struct blkif_st { int st_wr_sect; wait_queue_head_t waiting_to_free; - - grant_handle_t shmem_handle; - grant_ref_t shmem_ref; } blkif_t; struct backend_info @@ -111,7 +103,7 @@ struct backend_info blkif_t *blkif_alloc(domid_t domid); void blkif_disconnect(blkif_t *blkif); void blkif_free(blkif_t *blkif); -int blkif_map(blkif_t *blkif, unsigned long shared_page, unsigned int evtchn); +int blkif_map(blkif_t *blkif, grant_ref_t, evtchn_port_t); void v...
2013 Feb 15
1
[PATCH 7/8] netback: split event channels support
...eature-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_rings(struct backend_i...
2012 Aug 16
0
[RFC v1 3/5] VBD: enlarge max segment per request in blkfront
...146,11 @@ enum blkif_protocol { BLKIF_PROTOCOL_X86_64 = 3, }; +enum blkif_backring_type { + BACKRING_TYPE_1 = 1, + BACKRING_TYPE_2 = 2, +}; + struct xen_vbd { /* What the domain refers to this vbd as. */ blkif_vdev_t handle; @@ -163,6 +168,15 @@ struct xen_vbd { }; struct backend_info; +struct xen_blkif; + +struct blkback_ring_operation { + void *(*get_back_ring) (struct xen_blkif *blkif); + void (*copy_blkif_req) (struct xen_blkif *blkif, RING_IDX rc); + void (*copy_blkif_seg_req) (struct xen_blkif *blkif); + void (*push_back_ring_rsp) (union blkif_back_rings *blk_r...
2011 Apr 04
0
[PATCH] xen: netback: use unsigned type for one-bit bitfield.
...net/xen-netback/xenbus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 22b8c35..1ce729d 100644 --- a/drivers/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.
...net/xen-netback/xenbus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 22b8c35..1ce729d 100644 --- a/drivers/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 Aug 15
6
[patch] xen-blkback: sync I/O after backend disconnected
...enbus.c | 8 ++++++++ 1 file 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_bl...
2012 Aug 16
0
[RFC v1 5/5] VBD: enlarge max segment per request in blkfront
...} +} + #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 backend_info *be) {...
2008 Jul 03
3
[PATCH 2/4] pvSCSI : Fix many points of backend/frontend driver
Please refer following Mr. Steven''s mail posted on June 24th. Message-ID: <20080624131313.GB18379@weybridge.uk.xensource.com> Message-ID: <20080624131256.GA18379@weybridge.uk.xensource.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Jun Kamada <kama@jp.fujitsu.com> ----- Jun Kamada
2012 Nov 02
2
[PATCH] xen-blk: persistent-grants fixes
...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/block/xen-blkfront.c b/...
2013 Jun 24
3
[PATCH v2] xen-netback: add a pseudo pps rate limit
...rse network rate limit. Traffic unlimited.\n"); kfree(ratestr); + return; +fail2: + pr_warn("Failed to parse network PPS limit. PPS unlimited.\n"); + kfree(ppsstr); } static int xen_net_read_mac(struct xenbus_device *dev, u8 mac[]) @@ -370,8 +386,9 @@ static void connect(struct backend_info *be) } xen_net_read_rate(dev, &be->vif->credit_bytes, - &be->vif->credit_usec); + &be->vif->credit_packets, &be->vif->credit_usec); be->vif->remaining_credit = be->vif->credit_bytes; + be->vif->remaining_packets = be->vif-...
2012 Sep 19
27
[PATCH] Persistent grant maps for xen blk drivers
...#define DPRINTK(fmt, args...) \ pr_debug(DRV_PFX "(%s:%d) " fmt ".\n", \ __func__, __LINE__, ##args) +#define BLKIF_MAX_PERS_REQUESTS_PER_DEV 256 + /* Not a real protocol. Used to generate ring structs which contain @@ -164,6 +166,14 @@ struct xen_vbd { struct backend_info; + +struct pers_gnt { + struct page *page; + grant_ref_t gnt; + uint32_t handle; + uint64_t dev_bus_addr; +}; + struct xen_blkif { /* Unique identifier for this interface. */ domid_t domid; @@ -190,6 +200,12 @@ struct xen_blkif { struct task_struct *xenblkd; unsigned int waiting_reqs;...
2012 Mar 05
11
[PATCH 0001/001] xen: multi page ring support for block devices
...age-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", dev->othe...
2012 Mar 05
11
[PATCH 0001/001] xen: multi page ring support for block devices
...age-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", dev->othe...
2012 Mar 05
11
[PATCH 0001/001] xen: multi page ring support for block devices
...age-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", dev->othe...
2008 May 30
5
[PATCH 1/4] pvSCSI driver
pvSCSI backend driver Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Jun Kamada <kama@jp.fujitsu.com> ----- Jun Kamada _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2013 Oct 10
3
[PATCH net-next v3 5/5] xen-netback: enable IPv6 TCP GSO to the guest
...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_mask |= GSO_BIT(TCPV...
2010 May 28
13
Error: Device 0 (vif) could notbeconnected. Hotplugscripts not working
Hi All, I''m having a similar issue as Ian Tobin some weeks ago here: http://lists.xensource.com/archives/html/xen-users/2010-02/msg00645.html I''m using Debian Squeeze amd64, downloaded the experimental debian xen-amd64 kernel with pv_ops support. linux-headers-2.6.32-5-common-xen_2.6.32-13_amd64.deb linux-headers-2.6.32-5-xen-amd64_2.6.32-13_amd64.deb
2012 Apr 02
23
[PATCH 00 of 18] [v2] tools: fix bugs and build errors triggered by -O2 -Wall -Werror
Changes: tools/blktap: remove unneeded pointer dereferencing in convert_dev_name_to_num tools/blktap: constify string arrays in convert_dev_name_to_num tools/blktap: fix params and physical-device parsing tools/blktap: remove unneeded pointer dereferencing from img2qcow.c tools/blktap: remove unneeded pointer dereferencing from qcow2raw.c tools/blktap2: fix build errors caused by Werror in