search for: blkif_max_pers_requests_per_dev

Displaying 1 result from an estimated 1 matches for "blkif_max_pers_requests_per_dev".

2012 Sep 19
27
[PATCH] Persistent grant maps for xen blk drivers
...their ordering, we have to perform a linear search through this array to find the page, for every gref we receive. The overhead of this is low, however future work might want to use a more efficient data structure to reduce this O(n) operation. We (ijc, and myself) have introduced a new constant, BLKIF_MAX_PERS_REQUESTS_PER_DEV. This is to prevent a malicious guest from attempting a DoS, by supplying fresh grefs, causing the Dom0 kernel from to map excessively. This is currently set to 256---the maximum number of entires in the ring. As the number of inflight requests <= size of ring, 256 is also the maximum sensible s...