Lines Matching refs:res_start
312 unsigned long res_start = res->guest_memory_offset;
315 WARN_ON_ONCE(res_start & ~PAGE_MASK);
316 res_start >>= PAGE_SHIFT;
319 if (res_start >= dirty->end || res_end <= dirty->start)
322 cur = max(res_start, dirty->start);
338 if (res_start <= dirty->start && res_end > dirty->start)
340 if (res_start < dirty->end && res_end >= dirty->end)
341 dirty->end = res_start;
354 unsigned long res_start = res->guest_memory_offset;
359 res_start >>= PAGE_SHIFT;
362 if (res_start >= dirty->end || res_end <= dirty->start)
365 res_start = max(res_start, dirty->start);
367 bitmap_clear(&dirty->bitmap[0], res_start, res_end - res_start);
369 if (res_start <= dirty->start && res_end > dirty->start)
371 if (res_start < dirty->end && res_end >= dirty->end)
372 dirty->end = res_start;