Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/xen/blkback/blkback.c
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | #define DPRINTF(fmt, args...) \ | ||||
printf("xbb(%s:%d): " fmt, __FUNCTION__, __LINE__, ##args) | printf("xbb(%s:%d): " fmt, __FUNCTION__, __LINE__, ##args) | ||||
#else | #else | ||||
#define DPRINTF(fmt, args...) do {} while(0) | #define DPRINTF(fmt, args...) do {} while(0) | ||||
#endif | #endif | ||||
/** | /** | ||||
* The maximum mapped region size per request we will allow in a negotiated | * The maximum mapped region size per request we will allow in a negotiated | ||||
* block-front/back communication channel. | * block-front/back communication channel. | ||||
* Use old default of MAXPHYS == 128K. | |||||
*/ | */ | ||||
#define XBB_MAX_REQUEST_SIZE \ | #define XBB_MAX_REQUEST_SIZE \ | ||||
MIN(MAXPHYS, BLKIF_MAX_SEGMENTS_PER_REQUEST * PAGE_SIZE) | MIN(128 * 1024, BLKIF_MAX_SEGMENTS_PER_REQUEST * PAGE_SIZE) | ||||
/** | /** | ||||
* The maximum number of segments (within a request header and accompanying | * The maximum number of segments (within a request header and accompanying | ||||
* segment blocks) per request we will allow in a negotiated block-front/back | * segment blocks) per request we will allow in a negotiated block-front/back | ||||
* communication channel. | * communication channel. | ||||
*/ | */ | ||||
#define XBB_MAX_SEGMENTS_PER_REQUEST \ | #define XBB_MAX_SEGMENTS_PER_REQUEST \ | ||||
(MIN(UIO_MAXIOV, \ | (MIN(UIO_MAXIOV, \ | ||||
▲ Show 20 Lines • Show All 3,764 Lines • Show Last 20 Lines |