Home
last modified time | relevance | path

Searched refs:oldcrste (Results 1 – 4 of 4) sorted by relevance

/linux/arch/s390/kvm/gmap/
H A Dgmap.c544 union crste newcrste, oldcrste = READ_ONCE(*f->crstep); in gmap_handle_minor_crste_fault() local
547 if (!oldcrste.h.fc) in gmap_handle_minor_crste_fault()
550 f->pfn = PHYS_PFN(large_crste_to_phys(oldcrste, f->gfn)); in gmap_handle_minor_crste_fault()
551 f->writable = oldcrste.s.fc1.w; in gmap_handle_minor_crste_fault()
553 f->crste_region3 = is_pud(oldcrste); in gmap_handle_minor_crste_fault()
555 if (!oldcrste.h.i && !(f->write_attempt && oldcrste.h.p)) in gmap_handle_minor_crste_fault()
558 if (!f->write_attempt || oldcrste.s.fc1.w) { in gmap_handle_minor_crste_fault()
559 f->write_attempt |= oldcrste.s.fc1.w && oldcrste.s.fc1.d; in gmap_handle_minor_crste_fault()
560 newcrste = oldcrste; in gmap_handle_minor_crste_fault()
569 return !gmap_crstep_xchg_atomic(gmap, f->crstep, oldcrste, newcrste, f->gfn); in gmap_handle_minor_crste_fault()
[all …]
H A Ddat.c1027 union crste newcrste, oldcrste; in dat_set_pn_crste() local
1031 oldcrste = READ_ONCE(*crstep); in dat_set_pn_crste()
1032 if (!oldcrste.h.fc || oldcrste.h.i || oldcrste.h.p) in dat_set_pn_crste()
1034 if (oldcrste.s.fc1.prefix_notif) in dat_set_pn_crste()
1036 newcrste = oldcrste; in dat_set_pn_crste()
1038 } while (!dat_crstep_xchg_atomic(crstep, oldcrste, newcrste, gfn, walk->asce)); in dat_set_pn_crste()
H A Ddat.h962 union crste oldcrste, empty = _CRSTE_EMPTY(crstep->h.tt); in dat_crstep_clear_atomic() local
965 oldcrste = READ_ONCE(*crstep); in dat_crstep_clear_atomic()
966 } while (!dat_crstep_xchg_atomic(crstep, oldcrste, empty, gfn, asce)); in dat_crstep_clear_atomic()
967 return oldcrste; in dat_crstep_clear_atomic()
/linux/arch/s390/kvm/s390/
H A Dgaccess.c1463 union crste newcrste, oldcrste; in _do_shadow_crste() local
1482 oldcrste = READ_ONCE(*host); in _do_shadow_crste()
1483 newcrste = _crste_fc1(f->pfn, oldcrste.h.tt, f->writable, !p); in _do_shadow_crste()
1484 newcrste.s.fc1.d |= oldcrste.s.fc1.d; in _do_shadow_crste()
1485 newcrste.s.fc1.sd |= oldcrste.s.fc1.sd; in _do_shadow_crste()
1486 newcrste.h.p &= oldcrste.h.p; in _do_shadow_crste()
1488 newcrste.s.fc1.prefix_notif = oldcrste.s.fc1.prefix_notif; in _do_shadow_crste()
1489 newcrste.s.fc1.s = oldcrste.s.fc1.s; in _do_shadow_crste()
1492 } while (!_gmap_crstep_xchg_atomic(sg->parent, host, oldcrste, newcrste, f->gfn, false)); in _do_shadow_crste()
1496 newcrste = _crste_fc1(f->pfn, oldcrste.h.tt, 0, !p); in _do_shadow_crste()