Home
last modified time | relevance | path

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

/linux/arch/s390/kvm/
H A Ddat.c188 static void dat_set_storage_key_from_pgste(union pte pte, union pgste pgste) in dat_set_storage_key_from_pgste() argument
190 union skey nkey = { .acc = pgste.acc, .fp = pgste.fp }; in dat_set_storage_key_from_pgste()
200 static union pgste dat_save_storage_key_into_pgste(union pte pte, union pgste pgste) in dat_save_storage_key_into_pgste() argument
206 pgste.acc = skey.acc; in dat_save_storage_key_into_pgste()
207 pgste.fp = skey.fp; in dat_save_storage_key_into_pgste()
208 pgste.gr |= skey.r; in dat_save_storage_key_into_pgste()
209 pgste.gc |= skey.c; in dat_save_storage_key_into_pgste()
211 return pgste; in dat_save_storage_key_into_pgste()
214 union pgste __dat_ptep_xchg(union pte *ptep, union pgste pgste, union pte new, gfn_t gfn, in __dat_ptep_xchg() argument
222 return pgste; in __dat_ptep_xchg()
[all …]
H A Dgmap.c285 union pgste pgste; in gmap_clear_young_pte() local
293 pgste = pgste_get_lock(ptep); in gmap_clear_young_pte()
294 if (!pgste.prefix_notif || gmap_mkold_prefix(p->gmap, gfn, end)) { in gmap_clear_young_pte()
303 pgste.prefix_notif = 0; in gmap_clear_young_pte()
304 pgste = __dat_ptep_xchg(ptep, pgste, new, gfn, walk->asce, uses_skeys(p->gmap)); in gmap_clear_young_pte()
307 pgste_set_unlock(ptep, pgste); in gmap_clear_young_pte()
373 union pgste pgste; in _gmap_unmap_pte() local
375 pgste = pgste_get_lock(ptep); in _gmap_unmap_pte()
376 if (ptep->s.pr && pgste.usage == PGSTE_GPS_USAGE_UNUSED) { in _gmap_unmap_pte()
382 pgste = gmap_ptep_xchg(priv->gmap, ptep, _PTE_EMPTY, pgste, gfn); in _gmap_unmap_pte()
[all …]
H A Ddat.h121 union pgste { union
303 static_assert(sizeof(union pgste) == sizeof(unsigned long));
340 union pgste pgstes[_PAGE_ENTRIES];
514 union pgste __must_check __dat_ptep_xchg(union pte *ptep, union pgste pgste, union pte new,
755 static inline union pgste *pgste_of(union pte *pte) in pgste_of()
757 return (union pgste *)(pte + _PAGE_ENTRIES); in pgste_of()
846 static inline bool pgste_get_trylock(union pte *ptep, union pgste *res) in pgste_get_trylock()
848 union pgste *pgstep = pgste_of(ptep); in pgste_get_trylock()
849 union pgste old_pgste; in pgste_get_trylock()
861 static inline union pgste pgste_get_lock(union pte *ptep) in pgste_get_lock()
[all …]
/linux/tools/testing/selftests/kvm/
H A DMakefile.kvm297 pgste-option = $(call try-run, echo 'int main(void) { return 0; }' | \
298 $(CC) -Werror -Wl$(comma)--s390-pgste -x c - -o "$$TMP",-Wl$(comma)--s390-pgste)
301 LDFLAGS += -pthread $(no-pie-option) $(pgste-option)