linux_dsm_epyc7002/arch/mips/include/asm
James Hogan 7170bdc777 MIPS: Add return errors to protected cache ops
The protected cache ops contain no out of line fixup code to return an
error code in the event of a fault, with the cache op being skipped in
that case. For KVM however we'd like to detect this case as page
faulting will be disabled so it could happen during normal operation if
the GVA page tables were flushed, and need to be handled by the caller.

Add the out-of-line fixup code to load the error value -EFAULT into the
return variable, and adapt the protected cache line functions to pass
the error back to the caller.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
2017-02-03 15:19:02 +00:00
..
dec
emma
fw
ip32
lasat
mach-ar7
mach-ath25
mach-ath79
mach-au1x00 MIPS: Spelling fix lets -> let's 2016-05-28 12:35:09 +02:00
mach-bcm47xx
mach-bcm63xx MIPS: BCM63xx: Fix typo 2016-05-28 12:35:06 +02:00
mach-bmips
mach-cavium-octeon MIPS: Octeon: mangle-port: fix build failure with VDSO code 2016-09-19 17:21:37 +02:00
mach-cobalt
mach-db1x00
mach-dec
mach-emma2rh
mach-generic MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0 2016-10-06 18:02:35 +02:00
mach-ip22
mach-ip27 MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0 2016-10-06 18:02:35 +02:00
mach-ip28
mach-ip32 MIPS: IP32: Fix typo 2016-05-28 12:35:07 +02:00
mach-jazz
mach-jz4740 MIPS: jz4740: Remove obsolete code 2016-11-05 00:02:02 +01:00
mach-lantiq MIPS: Spelling fix lets -> let's 2016-05-28 12:35:09 +02:00
mach-lasat
mach-loongson32 MIPS: Add RTC support for Loongson1C board 2016-10-04 16:13:57 +02:00
mach-loongson64 treewide: remove redundant #include <linux/kconfig.h> 2016-10-11 15:06:33 -07:00
mach-malta MIPS: Add definitions of SegCtl registers and use them 2016-05-28 12:35:04 +02:00
mach-netlogic
mach-paravirt MIPS: paravirt: Fix undefined reference to smp_bootstrap 2016-09-13 16:45:15 +02:00
mach-pic32
mach-pistachio
mach-pmcs-msp71xx
mach-pnx833x
mach-ralink
mach-rc32434
mach-rm
mach-sibyte
mach-tx39xx
mach-tx49xx
mach-vr41xx
mach-xilfpga
mips-boards MIPS: SEAD3: Probe EHCI controller using DT 2016-10-05 01:31:20 +02:00
netlogic
octeon MIPS: Octeon: Delete unused cvmx-mdio.h 2016-10-04 16:13:57 +02:00
pci
sgi MIPS: IP22/IP28: Fix typo 2016-05-28 12:35:08 +02:00
sibyte
sn
txx9
vr41xx
xtalk
abi.h
addrspace.h MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0 2016-10-06 18:02:35 +02:00
amon.h
arch_hweight.h
asm-eva.h
asm-offsets.h
asm.h
asmmacro-32.h
asmmacro-64.h
asmmacro.h MIPS: Add a missing ".set pop" in an early commit 2016-09-13 17:25:11 +02:00
atomic.h locking/atomic, arch/mips: Convert to _relaxed atomics 2016-06-16 10:48:34 +02:00
barrier.h MIPS: Barrier: Add definitions of SYNC stype values 2016-10-04 16:13:57 +02:00
bcache.h
bitops.h
bitrev.h
bmips-spaces.h
bmips.h
bootinfo.h MIPS: store the appended dtb address in a variable 2016-08-02 14:00:16 +02:00
branch.h
break.h
bug.h
bugs.h
cache.h
cacheflush.h MIPS: c-r4k: Split user/kernel flush_icache_range() 2016-10-04 16:13:57 +02:00
cacheops.h
cdmm.h
cevt-r4k.h
checksum.h Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
clock.h
clocksource.h
cmp.h
cmpxchg.h
compat-signal.h Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
compat.h
compiler.h
cop2.h
cpu-features.h lib/GCD.c: use binary GCD algorithm instead of Euclidean 2016-05-20 17:58:30 -07:00
cpu-info.h
cpu-type.h MIPS: Add CPU support for Loongson1C 2016-10-04 16:13:57 +02:00
cpu.h MIPS: Add CPU support for Loongson1C 2016-10-04 16:13:57 +02:00
debug.h
delay.h
device.h MIPS: Support per-device DMA coherence 2016-10-06 18:02:01 +02:00
div64.h
dma-coherence.h MIPS: Support per-device DMA coherence 2016-10-06 18:02:01 +02:00
dma-mapping.h MIPS: Support per-device DMA coherence 2016-10-06 18:02:01 +02:00
dma.h
ds1287.h
dsemul.h MIPS: Use per-mm page to execute branch delay slot instructions 2016-08-02 09:28:53 +02:00
dsp.h
edac.h
elf.h MIPS: non-exec stack & heap when non-exec PT_GNU_STACK is present 2016-08-02 09:29:27 +02:00
errno.h
eva.h
exec.h
extable.h mips: separate extable.h, switch module.h to it 2016-10-05 18:36:18 -04:00
fb.h
fixmap.h
floppy.h
fpregdef.h
fpu_emulator.h MIPS: Fix FCSR Cause bit handling for correct SIGFPE issue 2016-11-04 01:28:41 +01:00
fpu.h
ftrace.h
futex.h
gio_device.h
gt64120.h
hardirq.h
hazards.h MIPS: hazards.h: Fix typo 2016-05-28 12:35:06 +02:00
highmem.h
hpet.h
hugetlb.h
hw_irq.h
i8259.h irqchip: i8259: Remove unused i8259A_irq_pending 2016-10-06 17:31:00 +02:00
ide.h
idle.h
inst.h
io.h
irq_cpu.h
irq_gt641xx.h
irq_regs.h
irq.h nmi_backtrace: add more trigger_*_cpu_backtrace() methods 2016-10-07 18:46:30 -07:00
irqflags.h
isadep.h
jazz.h
jazzdma.h
jump_label.h
Kbuild locking/mutex: Kill arch specific code 2016-10-25 11:31:51 +02:00
kdebug.h
kexec.h mips/panic: replace smp_send_stop() with kdump friendly version in panic path 2016-10-11 15:06:32 -07:00
kgdb.h
kmap_types.h
kprobes.h
kvm_host.h KVM: MIPS: Precalculate MMIO load resume PC 2016-10-26 13:43:55 +02:00
kvm_para.h
linkage.h
llsc.h
local.h
m48t37.h
maar.h
machine.h MIPS: generic: Introduce generic DT-based board support 2016-10-06 18:04:04 +02:00
mc146818-time.h
mc146818rtc.h
mips_machine.h
mips_mt.h MIPS: MT: Fix typo 2016-05-28 12:35:07 +02:00
mips-cm.h MIPS: pm-cps: Support CM3 changes to Coherence Enable Register 2016-10-04 16:13:57 +02:00
mips-cpc.h
mips-r2-to-r6-emul.h
mipsmtregs.h
mipsprom.h
mipsregs.h MIPS: Mask out limit field when calculating wired entry count 2016-11-24 16:44:16 +01:00
mmu_context.h MIPS: Use per-mm page to execute branch delay slot instructions 2016-08-02 09:28:53 +02:00
mmu.h MIPS: Use per-mm page to execute branch delay slot instructions 2016-08-02 09:28:53 +02:00
mmzone.h
module.h mips: separate extable.h, switch module.h to it 2016-10-05 18:36:18 -04:00
msa.h MIPS: Fix MSA asm warnings in control reg accessors 2016-07-24 12:45:00 +02:00
msc01_ic.h
nile4.h
paccess.h
page.h treewide: replace config_enabled() with IS_ENABLED() (2nd round) 2016-08-26 17:39:35 -07:00
pci.h MIPS: PCI: Introduce CONFIG_PCI_DRIVERS_LEGACY 2016-10-06 18:00:05 +02:00
perf_event.h
pgalloc.h MIPS: Move pgd_alloc() out of header 2017-02-02 15:06:26 +00:00
pgtable-32.h
pgtable-64.h
pgtable-bits.h
pgtable.h mm: move phys_mem_access_prot_allowed() declaration to pgtable.h 2016-10-07 18:46:29 -07:00
pm-cps.h MIPS: pm-cps: Add MIPSr6 CPU support 2016-10-04 16:13:57 +02:00
pm.h
pmon.h
prefetch.h
processor.h locking/core: Provide common cpu_relax_yield() definition 2016-11-17 08:17:36 +01:00
prom.h
ptrace.h MIPS: ptrace: Fix regs_return_value for kernel context 2016-10-12 14:34:45 +02:00
r4k-timer.h
r4kcache.h MIPS: Add return errors to protected cache ops 2017-02-03 15:19:02 +00:00
reboot.h
reg.h
regdef.h
rtlx.h
seccomp.h tree-wide: replace config_enabled() with IS_ENABLED() 2016-08-04 08:50:07 -04:00
setup.h MIPS: KVM: Don't hardcode restored HWREna 2016-06-15 23:58:31 +02:00
sgialib.h
sgiarcs.h
shmparam.h
sigcontext.h
signal.h Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2016-08-06 09:13:11 -04:00
sim.h
smp-cps.h
smp-ops.h
smp.h MIPS: smp.c: Introduce mechanism for freeing and allocating IPIs 2016-10-05 01:31:20 +02:00
sni.h
socket.h
sparsemem.h
spinlock_types.h
spinlock.h locking/spinlock, arch: Update and fix spin_unlock_wait() implementations 2016-06-14 11:55:15 +02:00
spram.h
stackframe.h
stackprotector.h
stacktrace.h
string.h
switch_to.h MIPS: Fix FCSR Cause bit handling for correct SIGFPE issue 2016-11-04 01:28:41 +01:00
syscall.h tree-wide: replace config_enabled() with IS_ENABLED() 2016-08-04 08:50:07 -04:00
termios.h Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
thread_info.h
time.h
timex.h
tlb.h MIPS: Mask out limit field when calculating wired entry count 2016-11-24 16:44:16 +01:00
tlbdebug.h
tlbex.h MIPS: Export some tlbex internals for KVM to use 2017-02-03 15:19:01 +00:00
tlbflush.h
tlbmisc.h
topology.h
traps.h
txx9irq.h
txx9pio.h
txx9tmr.h
types.h
uaccess.h Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2016-10-15 09:26:12 -07:00
uasm.h MIPS: uasm: Add include guards in asm/uasm.h 2017-02-03 15:19:01 +00:00
unaligned.h
unistd.h
uprobes.h uprobes: remove function declarations from arch/{mips,s390} 2016-10-07 18:46:30 -07:00
vdso.h
vga.h
vpe.h
war.h
watch.h
wbflush.h