linux_dsm_epyc7002/arch/x86
Sean Christopherson d2cbae37c3 KVM: x86: Zap the oldest MMU pages, not the newest
commit 8fc517267fb28576dfca2380cc2497a2454b8fae upstream.

Walk the list of MMU pages in reverse in kvm_mmu_zap_oldest_mmu_pages().
The list is FIFO, meaning new pages are inserted at the head and thus
the oldest pages are at the tail.  Using a "forward" iterator causes KVM
to zap MMU pages that were just added, which obliterates guest
performance once the max number of shadow MMU pages is reached.

Fixes: 6b82ef2c9c ("KVM: x86/mmu: Batch zap MMU pages when recycling oldest pages")
Reported-by: Zdenek Kaspar <zkaspar82@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210113205030.3481307-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-02-26 10:13:00 +01:00
..
boot
configs
crypto
entry x86/entry: Emit a symbol for register restoring thunk 2021-02-03 23:28:40 +01:00
events
hyperv
ia32
include x86/apic: Add extra serialization for non-serializing MSRs 2021-02-10 09:29:22 +01:00
kernel cpufreq: ACPI: Update arch scale-invariance max perf ratio if CPPC is not there 2021-02-17 11:02:29 +01:00
kvm KVM: x86: Zap the oldest MMU pages, not the newest 2021-02-26 10:13:00 +01:00
lib x86/mmx: Use KFPU_387 for MMX string operations 2021-01-27 11:55:13 +01:00
math-emu
mm KVM: SVM: Treat SVM as unsupported when running as an SEV guest 2021-02-10 09:29:19 +01:00
net
oprofile
pci x86/pci: Create PCI/MSI irqdomain after x86_init.pci.arch_init() 2021-02-17 11:02:28 +01:00
platform x86/efi: Remove EFI PGD build time checks 2021-02-17 11:02:24 +01:00
power
purgatory
ras
realmode
tools
um
video
xen Xen/x86: also check kernel mapping in set_foreign_p2m_mapping() 2021-02-23 15:53:24 +01:00
.gitignore
Kbuild
Kconfig
Kconfig.assembler
Kconfig.cpu
Kconfig.debug
Makefile x86/build: Disable CET instrumentation in the kernel for 32-bit too 2021-02-17 11:02:27 +01:00
Makefile_32.cpu
Makefile.um