Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xen/blkback/blkback.c
Show First 20 Lines • Show All 1,735 Lines • ▼ Show 20 Lines | xbb_dispatch_io(struct xbb_softc *xbb, struct xbb_xen_reqlist *reqlist) | ||||
reqlist->flags |= XBB_REQLIST_MAPPED; | reqlist->flags |= XBB_REQLIST_MAPPED; | ||||
for (seg_idx = 0, map = xbb->maps; seg_idx < reqlist->nr_segments; | for (seg_idx = 0, map = xbb->maps; seg_idx < reqlist->nr_segments; | ||||
seg_idx++, map++){ | seg_idx++, map++){ | ||||
if (__predict_false(map->status != 0)) { | if (__predict_false(map->status != 0)) { | ||||
DPRINTF("invalid buffer -- could not remap " | DPRINTF("invalid buffer -- could not remap " | ||||
"it (%d)\n", map->status); | "it (%d)\n", map->status); | ||||
DPRINTF("Mapping(%d): Host Addr 0x%lx, flags " | DPRINTF("Mapping(%d): Host Addr 0x%"PRIx64", flags " | ||||
"0x%x ref 0x%x, dom %d\n", seg_idx, | "0x%x ref 0x%x, dom %d\n", seg_idx, | ||||
map->host_addr, map->flags, map->ref, | map->host_addr, map->flags, map->ref, | ||||
map->dom); | map->dom); | ||||
reqlist->status = BLKIF_RSP_ERROR; | reqlist->status = BLKIF_RSP_ERROR; | ||||
goto send_response; | goto send_response; | ||||
} | } | ||||
reqlist->gnt_handles[seg_idx] = map->handle; | reqlist->gnt_handles[seg_idx] = map->handle; | ||||
▲ Show 20 Lines • Show All 2,139 Lines • Show Last 20 Lines |