linux_dsm_epyc7002/arch/powerpc/kvm
Nicholas Piggin 9600f261ac powerpc/64s/exception: Move KVM test to common code
This allows more code to be moved out of unrelocated regions. The
system call KVMTEST is changed to be open-coded and remain in the
tramp area to avoid having to move it to entry_64.S. The custom nature
of the system call entry code means the hcall case can be made more
streamlined than regular interrupt handlers.

mpe: Incorporate fix from Nick:

Moving KVM test to the common entry code missed the case of HMI and
MCE, which do not do __GEN_COMMON_ENTRY (because they don't want to
switch to virt mode).

This means a MCE or HMI exception that is taken while KVM is running a
guest context will not be switched out of that context, and KVM won't
be notified. Found by running sigfuz in guest with patched host on
POWER9 DD2.3, which causes some TM related HMI interrupts (which are
expected and supposed to be handled by KVM).

This fix adds a __GEN_REALMODE_COMMON_ENTRY for those handlers to add
the KVM test. This makes them look a little more like other handlers
that all use __GEN_COMMON_ENTRY.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200225173541.1549955-13-npiggin@gmail.com
2020-04-01 13:42:11 +11:00
..
book3s_32_mmu_host.c
book3s_32_mmu.c KVM: PPC: Book3S: Replace reset_msr mmu op with inject_interrupt arch op 2019-10-22 16:29:02 +11:00
book3s_32_sr.S
book3s_64_mmu_host.c
book3s_64_mmu_hv.c powerpc/kvm: no need to check return value of debugfs_create functions 2020-03-04 22:44:25 +11:00
book3s_64_mmu_radix.c powerpc/kvm: no need to check return value of debugfs_create functions 2020-03-04 22:44:25 +11:00
book3s_64_mmu.c KVM: PPC: Book3S: Replace reset_msr mmu op with inject_interrupt arch op 2019-10-22 16:29:02 +11:00
book3s_64_slb.S
book3s_64_vio_hv.c KVM: PPC: Book3S: Invalidate multiple TCEs at once 2019-08-30 09:40:14 +10:00
book3s_64_vio.c KVM: PPC: Book3S: Replace current->mm by kvm->mm 2020-01-17 15:08:28 +11:00
book3s_emulate.c
book3s_exports.c
book3s_hv_builtin.c KVM: PPC: Book3S HV: Implement LPCR[AIL]=3 mode for injected interrupts 2019-10-22 16:29:02 +11:00
book3s_hv_hmi.c
book3s_hv_interrupts.S
book3s_hv_nested.c KVM: PPC: Book3S: Define and use SRR1_MSR_BITS 2019-10-22 16:29:02 +11:00
book3s_hv_ras.c
book3s_hv_rm_mmu.c powerpc/mm: Fixup tlbie vs mtpidr/mtlpidr ordering issue on POWER9 2019-09-24 20:58:55 +10:00
book3s_hv_rm_xics.c KVM: PPC: Book3S HV: use smp_mb() when setting/clearing host_ipi flag 2019-09-24 12:46:26 +10:00
book3s_hv_rm_xive.c
book3s_hv_rmhandlers.S powerpc/64s/exception: Move KVM test to common code 2020-04-01 13:42:11 +11:00
book3s_hv_tm_builtin.c
book3s_hv_tm.c
book3s_hv_uvmem.c KVM: PPC: Book3S HV: Release lock on page-out failure path 2020-01-29 16:47:45 +11:00
book3s_hv.c powerpc/kvm: no need to check return value of debugfs_create functions 2020-03-04 22:44:25 +11:00
book3s_interrupts.S
book3s_mmu_hpte.c
book3s_paired_singles.c
book3s_pr_papr.c
book3s_pr.c Second KVM PPC update for 5.6 2020-01-30 18:14:26 +01:00
book3s_rmhandlers.S
book3s_rtas.c
book3s_segment.S powerpc/64s/exception: Move KVM test to common code 2020-04-01 13:42:11 +11:00
book3s_xics.c
book3s_xics.h
book3s_xive_native.c KVM: Use vcpu-specific gva->hva translation when querying host page size 2020-01-27 20:00:02 +01:00
book3s_xive_template.c
book3s_xive.c KVM: PPC: Book3S HV: XIVE: Fix typo in comment 2020-01-23 21:31:23 +11:00
book3s_xive.h KVM: PPC: Book3S HV: XIVE: Make VP block size configurable 2019-10-22 16:29:02 +11:00
book3s.c KVM: Drop kvm_arch_vcpu_setup() 2020-01-27 19:59:28 +01:00
book3s.h KVM: PPC: Book3S HV: Reuse kvmppc_inject_interrupt for async guest delivery 2019-10-22 16:29:02 +11:00
booke_emulate.c
booke_interrupts.S
booke.c Second KVM PPC update for 5.6 2020-01-30 18:14:26 +01:00
booke.h
bookehv_interrupts.S
e500_emulate.c
e500_mmu_host.c KVM: PPC: E500: Replace current->mm by kvm->mm 2019-10-22 16:29:01 +11:00
e500_mmu_host.h
e500_mmu.c
e500.c KVM: PPC: Move kvm_vcpu_init() invocation to common code 2020-01-24 09:19:01 +01:00
e500.h
e500mc.c KVM: PPC: Move kvm_vcpu_init() invocation to common code 2020-01-24 09:19:01 +01:00
emulate_loadstore.c KVM: PPC: Remove set but not used variable 'ra', 'rs', 'rt' 2020-01-17 15:08:28 +11:00
emulate.c Merge remote-tracking branch 'remotes/powerpc/topic/ppc-kvm' into kvm-ppc-next 2019-08-23 14:08:04 +10:00
fpu.S
irq.h
Kconfig
Makefile KVM: PPC: Book3S HV: Support for running secure guests 2019-11-28 16:30:02 +11:00
mpic.c
powerpc.c KVM: Drop kvm_arch_vcpu_init() and kvm_arch_vcpu_uninit() 2020-01-27 19:59:33 +01:00
timing.c powerpc/kvm: no need to check return value of debugfs_create functions 2020-03-04 22:44:25 +11:00
timing.h
tm.S
trace_book3s.h
trace_booke.h
trace_hv.h
trace_pr.h
trace.h