/usr/src/linux-headers-5.15.0-190/arch/s390/include/asm
NameSizeModeActions
fpu/-0755rm
trace/-0755rm
vdso/-0755rm
airq.h34210644editdlrm
alternative-asm.h31480644editdlrm
alternative.h57420644editdlrm
ap.h130980644editdlrm
appldata.h15930644editdlrm
archrandom.h13190644editdlrm
asm-const.h3760644editdlrm
asm-prototypes.h2270644editdlrm
atomic.h42250644editdlrm
atomic_ops.h51000644editdlrm
barrier.h18920644editdlrm
bitops.h101530644editdlrm
boot_data.h4810644editdlrm
bug.h15620644editdlrm
bugs.h4410644editdlrm
cache.h3890644editdlrm
ccwdev.h85060644editdlrm
ccwgroup.h23010644editdlrm
checksum.h33520644editdlrm
chpid.h9790644editdlrm
chsc.h13840644editdlrm
cio.h90830644editdlrm
clocksource.h1840644editdlrm
clp.h14260644editdlrm
cmb.h4250644editdlrm
cmpxchg.h51950644editdlrm
compat.h53330644editdlrm
cpacf.h177590644editdlrm
cpcmd.h11350644editdlrm
cpu.h5490644editdlrm
cpufeature.h9580644editdlrm
cputime.h8400644editdlrm
cpu_mcf.h30640644editdlrm
cpu_mf-insn.h4780644editdlrm
cpu_mf.h96060644editdlrm
crw.h19070644editdlrm
css_chars.h9040644editdlrm
ctl_reg.h37150644editdlrm
current.h4050644editdlrm
debug.h143180644editdlrm
delay.h6470644editdlrm
diag.h70170644editdlrm
dis.h6360644editdlrm
dma.h4560644editdlrm
dwarf.h9520644editdlrm
eadm.h20820644editdlrm
ebcdic.h14420644editdlrm
elf.h112100644editdlrm
entry-common.h15900644editdlrm
exec.h2690644editdlrm
extable.h21840644editdlrm
extmem.h8040644editdlrm
facility.h27600644editdlrm
fcx.h81020644editdlrm
ftrace.h18750644editdlrm
ftrace.lds.h7200644editdlrm
futex.h19270644editdlrm
gmap.h57600644editdlrm
hardirq.h7770644editdlrm
hugetlb.h29660644editdlrm
hw_irq.h2100644editdlrm
idals.h53170644editdlrm
idle.h7530644editdlrm
io.h21530644editdlrm
ipl.h37080644editdlrm
irq.h26350644editdlrm
irqflags.h18100644editdlrm
irq_work.h2040644editdlrm
isc.h10360644editdlrm
itcw.h9500644editdlrm
jump_label.h14110644editdlrm
kasan.h17720644editdlrm
Kbuild2530644editdlrm
kdebug.h3860644editdlrm
kexec.h26200644editdlrm
kfence.h11480644editdlrm
kprobes.h21750644editdlrm
kvm_host.h271550644editdlrm
kvm_para.h37610644editdlrm
linkage.h7290644editdlrm
livepatch.h4740644editdlrm
lowcore.h65950644editdlrm
mem_detect.h25890644editdlrm
mem_encrypt.h3650644editdlrm
mmu.h15150644editdlrm
mmu_context.h34910644editdlrm
mmzone.h3160644editdlrm
module.h12090644editdlrm
nmi.h36980644editdlrm
nospec-branch.h3420644editdlrm
nospec-insn.h36160644editdlrm
numa.h3860644editdlrm
os_info.h11360644editdlrm
page-states.h4860644editdlrm
page.h51940644editdlrm
pci.h86910644editdlrm
pci_clp.h53460644editdlrm
pci_debug.h6080644editdlrm
pci_dma.h55410644editdlrm
pci_insn.h40890644editdlrm
pci_io.h44050644editdlrm
percpu.h66380644editdlrm
perf_event.h32450644editdlrm
pgalloc.h40240644editdlrm
pgtable.h518450644editdlrm
pkey.h7370644editdlrm
pnet.h3250644editdlrm
preempt.h32180644editdlrm
processor.h96370644editdlrm
ptdump.h2550644editdlrm
ptrace.h58650644editdlrm
purgatory.h3290644editdlrm
qdio.h100110644editdlrm
runtime_instr.h6340644editdlrm
schid.h5250644editdlrm
sclp.h43320644editdlrm
scsw.h246300644editdlrm
seccomp.h8080644editdlrm
sections.h13570644editdlrm
serial.h1470644editdlrm
setup.h51560644editdlrm
set_memory.h9890644editdlrm
shmparam.h2850644editdlrm
signal.h6440644editdlrm
sigp.h19000644editdlrm
smp.h19320644editdlrm
softirq_stack.h3290644editdlrm
sparsemem.h2140644editdlrm
spinlock.h35250644editdlrm
spinlock_types.h4070644editdlrm
stacktrace.h61680644editdlrm
stp.h17060644editdlrm
string.h58470644editdlrm
switch_to.h14000644editdlrm
syscall.h41480644editdlrm
syscall_wrapper.h55060644editdlrm
sysinfo.h43390644editdlrm
termios.h6850644editdlrm
thread_info.h36050644editdlrm
timex.h65380644editdlrm
tlb.h42960644editdlrm
tlbflush.h32330644editdlrm
topology.h28760644editdlrm
tpi.h7360644editdlrm
types.h3180644editdlrm
uaccess.h100490644editdlrm
unistd.h10300644editdlrm
unwind.h33600644editdlrm
uprobes.h5880644editdlrm
user.h33840644editdlrm
uv.h109770644editdlrm
vdso.h7460644editdlrm
vga.h1700644editdlrm
vmalloc.h900644editdlrm
vmlinux.lds.h11670644editdlrm
vtime.h7180644editdlrm
vtimer.h8300644editdlrm
vx-insn.h134770644editdlrm
xor.h4540644editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/arch/s390/include/asm/gmap.h (5760B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * KVM guest address space mapping code * * Copyright IBM Corp. 2007, 2016 * Author(s): Martin Schwidefsky */ #ifndef _ASM_S390_GMAP_H #define _ASM_S390_GMAP_H #include #include /* Generic bits for GMAP notification on DAT table entry changes. */ #define GMAP_NOTIFY_SHADOW 0x2 #define GMAP_NOTIFY_MPROT 0x1 /* Status bits only for huge segment entries */ #define _SEGMENT_ENTRY_GMAP_IN 0x8000 /* invalidation notify bit */ #define _SEGMENT_ENTRY_GMAP_UC 0x4000 /* dirty (migration) */ /** * struct gmap_struct - guest address space * @list: list head for the mm->context gmap list * @crst_list: list of all crst tables used in the guest address space * @mm: pointer to the parent mm_struct * @guest_to_host: radix tree with guest to host address translation * @host_to_guest: radix tree with pointer to segment table entries * @guest_table_lock: spinlock to protect all entries in the guest page table * @ref_count: reference counter for the gmap structure * @table: pointer to the page directory * @asce: address space control element for gmap page table * @pfault_enabled: defines if pfaults are applicable for the guest * @guest_handle: protected virtual machine handle for the ultravisor * @host_to_rmap: radix tree with gmap_rmap lists * @children: list of shadow gmap structures * @pt_list: list of all page tables used in the shadow guest address space * @shadow_lock: spinlock to protect the shadow gmap list * @parent: pointer to the parent gmap for shadow guest address spaces * @orig_asce: ASCE for which the shadow page table has been created * @edat_level: edat level to be used for the shadow translation * @removed: flag to indicate if a shadow guest address space has been removed * @initialized: flag to indicate if a shadow guest address space can be used */ struct gmap { struct list_head list; struct list_head crst_list; struct mm_struct *mm; struct radix_tree_root guest_to_host; struct radix_tree_root host_to_guest; spinlock_t guest_table_lock; refcount_t ref_count; unsigned long *table; unsigned long asce; unsigned long asce_end; void *private; bool pfault_enabled; /* only set for protected virtual machines */ unsigned long guest_handle; /* Additional data for shadow guest address spaces */ struct radix_tree_root host_to_rmap; struct list_head children; struct list_head pt_list; spinlock_t shadow_lock; struct gmap *parent; unsigned long orig_asce; int edat_level; bool removed; bool initialized; }; /** * struct gmap_rmap - reverse mapping for shadow page table entries * @next: pointer to next rmap in the list * @raddr: virtual rmap address in the shadow guest address space */ struct gmap_rmap { struct gmap_rmap *next; unsigned long raddr; }; #define gmap_for_each_rmap(pos, head) \ for (pos = (head); pos; pos = pos->next) #define gmap_for_each_rmap_safe(pos, n, head) \ for (pos = (head); n = pos ? pos->next : NULL, pos; pos = n) /** * struct gmap_notifier - notify function block for page invalidation * @notifier_call: address of callback function */ struct gmap_notifier { struct list_head list; struct rcu_head rcu; void (*notifier_call)(struct gmap *gmap, unsigned long start, unsigned long end); }; static inline int gmap_is_shadow(struct gmap *gmap) { return !!gmap->parent; } struct gmap *gmap_create(struct mm_struct *mm, unsigned long limit); void gmap_remove(struct gmap *gmap); struct gmap *gmap_get(struct gmap *gmap); void gmap_put(struct gmap *gmap); void gmap_enable(struct gmap *gmap); void gmap_disable(struct gmap *gmap); struct gmap *gmap_get_enabled(void); int gmap_map_segment(struct gmap *gmap, unsigned long from, unsigned long to, unsigned long len); int gmap_unmap_segment(struct gmap *gmap, unsigned long to, unsigned long len); unsigned long __gmap_translate(struct gmap *, unsigned long gaddr); unsigned long gmap_translate(struct gmap *, unsigned long gaddr); int __gmap_link(struct gmap *gmap, unsigned long gaddr, unsigned long vmaddr); int gmap_fault(struct gmap *, unsigned long gaddr, unsigned int fault_flags); void gmap_discard(struct gmap *, unsigned long from, unsigned long to); void __gmap_zap(struct gmap *, unsigned long gaddr); void gmap_unlink(struct mm_struct *, unsigned long *table, unsigned long vmaddr); int gmap_read_table(struct gmap *gmap, unsigned long gaddr, unsigned long *val); struct gmap *gmap_shadow(struct gmap *parent, unsigned long asce, int edat_level); int gmap_shadow_valid(struct gmap *sg, unsigned long asce, int edat_level); int gmap_shadow_r2t(struct gmap *sg, unsigned long saddr, unsigned long r2t, int fake); int gmap_shadow_r3t(struct gmap *sg, unsigned long saddr, unsigned long r3t, int fake); int gmap_shadow_sgt(struct gmap *sg, unsigned long saddr, unsigned long sgt, int fake); int gmap_shadow_pgt(struct gmap *sg, unsigned long saddr, unsigned long pgt, int fake); int gmap_shadow_pgt_lookup(struct gmap *sg, unsigned long saddr, unsigned long *pgt, int *dat_protection, int *fake); int gmap_shadow_page(struct gmap *sg, unsigned long saddr, pte_t pte); void gmap_register_pte_notifier(struct gmap_notifier *); void gmap_unregister_pte_notifier(struct gmap_notifier *); int gmap_mprotect_notify(struct gmap *, unsigned long start, unsigned long len, int prot); void gmap_sync_dirty_log_pmd(struct gmap *gmap, unsigned long dirty_bitmap[4], unsigned long gaddr, unsigned long vmaddr); int gmap_mark_unmergeable(void); void s390_reset_acc(struct mm_struct *mm); void s390_unlist_old_asce(struct gmap *gmap); int s390_replace_asce(struct gmap *gmap); #endif /* _ASM_S390_GMAP_H */