WSL2-Linux-Kernel/arch/powerpc/kvm
Nicholas Piggin 6cd8b30790 KVM: PPC: Book3S HV Nested: L2 LPCR should inherit L1 LPES setting
[ Upstream commit 2852ebfa10 ]

The L1 should not be able to adjust LPES mode for the L2. Setting LPES
if the L0 needs it clear would cause external interrupts to be sent to
L2 and missed by the L0.

Clearing LPES when it may be set, as typically happens with XIVE enabled
could cause a performance issue despite having no native XIVE support in
the guest, because it will cause mediated interrupts for the L2 to be
taken in HV mode, which then have to be injected.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220303053315.1056880-7-npiggin@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:22:42 +02:00
..
Kconfig powerpc/kvm: Remove obsolete and unneeded select 2021-08-20 12:37:18 +10:00
Makefile
book3s.c KVM: stats: Add halt_wait_ns stats for all architectures 2021-08-20 16:06:33 -04:00
book3s.h KVM: PPC: Book3S PR: Declare kvmppc_handle_exit_pr() 2021-08-20 22:17:38 +10:00
book3s_32_mmu.c
book3s_32_mmu_host.c
book3s_32_sr.S KVM: PPC: Book3S PR: Enable MSR_DR for switch_mmu_context() 2022-05-18 10:26:53 +02:00
book3s_64_entry.S powerpc/64: Fix build failure with allyesconfig in book3s_64_entry.S 2022-04-13 20:59:28 +02:00
book3s_64_mmu.c KVM: PPC: Book3S PR: Remove unused variable 2021-08-20 22:17:41 +10:00
book3s_64_mmu_host.c
book3s_64_mmu_hv.c
book3s_64_mmu_radix.c KVM: PPC: Book3S HV: Stop exporting symbols from book3s_64_mmu_radix 2021-08-24 23:14:06 +10:00
book3s_64_slb.S
book3s_64_vio.c KVM: PPC: Fix TCE handling for VFIO 2022-04-27 14:38:59 +02:00
book3s_64_vio_hv.c KVM: PPC: Fix TCE handling for VFIO 2022-04-27 14:38:59 +02:00
book3s_emulate.c
book3s_exports.c
book3s_hv.c KVM: PPC: Book3S HV Nested: L2 LPCR should inherit L1 LPES setting 2022-06-09 10:22:42 +02:00
book3s_hv_builtin.c KVM: PPC: Book3S HV: Prevent POWER7/8 TLB flush flushing SLB 2021-12-01 09:04:43 +01:00
book3s_hv_hmi.c
book3s_hv_interrupts.S
book3s_hv_nested.c KVM: PPC: Book3S HV Nested: L2 LPCR should inherit L1 LPES setting 2022-06-09 10:22:42 +02:00
book3s_hv_p9_entry.c KVM: PPC: Book3S HV P9: Fix guest TM support 2021-07-15 21:53:37 +10:00
book3s_hv_ras.c
book3s_hv_rm_mmu.c
book3s_hv_rm_xics.c powerpc/powernv/pci: Rework pnv_opal_pci_msi_eoi() 2021-08-10 23:15:01 +10:00
book3s_hv_rm_xive.c
book3s_hv_rmhandlers.S KVM: PPC: Book3S HV: Use GLOBAL_TOC for kvmppc_h_set_dabr/xdabr() 2021-11-25 09:48:40 +01:00
book3s_hv_tm.c KVM: PPC: Book3S HV Nested: Fix TM softpatch HFAC interrupt emulation 2021-08-25 16:37:17 +10:00
book3s_hv_tm_builtin.c
book3s_hv_uvmem.c KVM: PPC: Book3S HV: fix incorrect NULL check on list iterator 2022-06-06 08:43:38 +02:00
book3s_interrupts.S
book3s_mmu_hpte.c
book3s_paired_singles.c
book3s_pr.c powerpc updates for 5.14 2021-07-02 12:54:34 -07:00
book3s_pr_papr.c
book3s_rmhandlers.S
book3s_rtas.c KVM: PPC: Book3S: Fix H_RTAS rets buffer overflow 2021-07-23 16:14:31 +10:00
book3s_segment.S
book3s_xics.c powerpc: rename powerpc_debugfs_root to arch_debugfs_dir 2021-08-13 22:04:26 +10:00
book3s_xics.h
book3s_xive.c powerpc: rename powerpc_debugfs_root to arch_debugfs_dir 2021-08-13 22:04:26 +10:00
book3s_xive.h KVM: PPC: Book3S HV: XIVE: Add support for automatic save-restore 2021-08-10 23:15:02 +10:00
book3s_xive_native.c powerpc: rename powerpc_debugfs_root to arch_debugfs_dir 2021-08-13 22:04:26 +10:00
book3s_xive_template.c
booke.c KVM: PPC: Tick accounting should defer vtime accounting 'til after IRQ handling 2021-11-18 19:15:57 +01:00
booke.h
booke_emulate.c
booke_interrupts.S
bookehv_interrupts.S
e500.c
e500.h
e500_emulate.c
e500_mmu.c
e500_mmu_host.c
e500_mmu_host.h
e500mc.c
emulate.c
emulate_loadstore.c
fpu.S
irq.h
mpic.c
powerpc.c KVM: PPC: Fix vmx/vsx mixup in mmio emulation 2022-04-08 14:23:26 +02:00
timing.c
timing.h
tm.S
trace.h
trace_book3s.h
trace_booke.h
trace_hv.h
trace_pr.h