Displaying 4 results from an estimated 4 matches for "xen_blkif_init".
2013 Feb 28
1
[PATCH RFC 09/12] xen-blkback: move pending handles list from blkbk to pending_req
...ge)))
#define pending_handle(_req, _seg) \
- (blkbk->pending_grant_handles[vaddr_pagenr(_req, _seg)])
+ (_req->grant_handles[_seg])
static int do_block_io_op(struct xen_blkif *blkif);
@@ -1214,7 +1213,7 @@ static void make_response(struct xen_blkif *blkif, u64 id,
static int __init xen_blkif_init(void)
{
- int i, mmap_pages;
+ int i;
int rc = 0;
if (!xen_domain())
@@ -1226,21 +1225,15 @@ static int __init xen_blkif_init(void)
return -ENOMEM;
}
- mmap_pages = xen_blkif_reqs * BLKIF_MAX_SEGMENTS_PER_REQUEST;
blkbk->pending_reqs = kzalloc(sizeof(blkbk->pending_...
2012 Aug 16
0
[RFC v1 3/5] VBD: enlarge max segment per request in blkfront
...ND_CHECK_NOTIFY(&blk_rings->common, notify);
+
+ blkif->ops->push_back_ring_rsp(blk_rings, nr_page, ¬ify);
+
spin_unlock_irqrestore(&blkif->blk_ring_lock, flags);
if (notify)
notify_remote_via_irq(blkif->irq);
@@ -873,6 +939,14 @@ static int __init xen_blkif_init(void)
return rc;
}
+struct blkback_ring_operation blkback_ring_ops = {
+ .get_back_ring = get_back_ring,
+ .copy_blkif_req = copy_blkif_req,
+ .copy_blkif_seg_req = copy_blkif_seg_req,
+ .push_back_ring_rsp = push_back_ring_rsp,
+ .max_seg = BLKIF_MAX_SEGMENTS_PER_REQUEST,
+};
+...
2011 Jun 13
5
3.0.0-rc2: Xen: High amount of kernel "reserved" memory, about 33% in 256MB DOMU
Hi,
another issue I''m seeing with 3.0-rc2 and Xen is that there is an
unexpectedly high amount of kernel reserved memory.
I suspect that Linux allocates page table entries and corresponding
data structures for the whole 6GB areas of the provided ''physical
RAM map'' even though it has rather big unusable holes in it.
[ 0.000000] BIOS-provided physical RAM map:
[
2012 Aug 16
0
[RFC v1 5/5] VBD: enlarge max segment per request in blkfront
...ack_ring_ops_v2 = {
+ .get_back_ring = get_back_ring_v2,
+ .copy_blkif_req = copy_blkif_req_v2,
+ .copy_blkif_seg_req = copy_blkif_seg_req_v2,
+ .push_back_ring_rsp = push_back_ring_rsp_v2,
+ .copy_response = copy_response_v2,
+ .max_seg = BLKIF_MAX_SEGMENTS_PER_REQUEST_V2,
+};
+
static int __init xen_blkif_init(void)
{
int rc = 0;
diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h
index 80e8acc..2e241a4 100644
--- a/drivers/block/xen-blkback/common.h
+++ b/drivers/block/xen-blkback/common.h
@@ -48,6 +48,7 @@
pr_debug(DRV_PFX "(%s:%d) " fmt ".\n",...