Lines Matching refs:sc

402                                struct xen_domctl_shadow_op *sc,  in paging_log_dirty_op()  argument
418 (sc->mode & XEN_DOMCTL_SHADOW_LOGDIRTY_FINAL) ) in paging_log_dirty_op()
437 d->arch.paging.preempt.op != sc->op ) in paging_log_dirty_op()
445 clean = (sc->op == XEN_DOMCTL_SHADOW_OP_CLEAN); in paging_log_dirty_op()
453 sc->stats.fault_count = d->arch.paging.log_dirty.fault_count; in paging_log_dirty_op()
454 sc->stats.dirty_count = d->arch.paging.log_dirty.dirty_count; in paging_log_dirty_op()
456 if ( guest_handle_is_null(sc->dirty_bitmap) ) in paging_log_dirty_op()
473 for ( ; (pages < sc->pages) && (i4 < LOGDIRTY_NODE_ENTRIES); i4++, i3 = 0 ) in paging_log_dirty_op()
476 for ( ; (pages < sc->pages) && (i3 < LOGDIRTY_NODE_ENTRIES); i3++ ) in paging_log_dirty_op()
481 (pages < sc->pages) && (i2 < LOGDIRTY_NODE_ENTRIES); in paging_log_dirty_op()
487 if ( unlikely(((sc->pages - pages + 7) >> 3) < bytes) ) in paging_log_dirty_op()
488 bytes = (unsigned int)((sc->pages - pages + 7) >> 3); in paging_log_dirty_op()
491 if ( (l1 ? copy_to_guest_offset(sc->dirty_bitmap, in paging_log_dirty_op()
494 : clear_guest_offset(sc->dirty_bitmap, in paging_log_dirty_op()
548 d->arch.paging.preempt.op = sc->op; in paging_log_dirty_op()
561 if ( pages < sc->pages ) in paging_log_dirty_op()
562 sc->pages = pages; in paging_log_dirty_op()
671 int paging_domctl(struct domain *d, struct xen_domctl_shadow_op *sc, in paging_domctl() argument
699 d->arch.paging.preempt.op != sc->op) in paging_domctl()
701 sc->op != XEN_DOMCTL_SHADOW_OP_GET_ALLOCATION) ) in paging_domctl()
705 current, sc->op, d->domain_id, d->arch.paging.preempt.op, in paging_domctl()
711 rc = xsm_shadow_control(XSM_HOOK, d, sc->op); in paging_domctl()
722 switch ( sc->op ) in paging_domctl()
726 if ( !(sc->mode & XEN_DOMCTL_SHADOW_ENABLE_LOG_DIRTY) ) in paging_domctl()
739 if ( sc->mode & ~XEN_DOMCTL_SHADOW_LOGDIRTY_FINAL ) in paging_domctl()
741 return paging_log_dirty_op(d, sc, resuming); in paging_domctl()
746 return hap_domctl(d, sc, u_domctl); in paging_domctl()
748 return shadow_domctl(d, sc, u_domctl); in paging_domctl()