original_kernel/arch/x86/kvm
Tao Su db574f2f96 KVM: x86/mmu: Don't save mmu_invalidate_seq after checking private attr
Drop the second snapshot of mmu_invalidate_seq in kvm_faultin_pfn().
Before checking the mismatch of private vs. shared, mmu_invalidate_seq is
saved to fault->mmu_seq, which can be used to detect an invalidation
related to the gfn occurred, i.e. KVM will not install a mapping in page
table if fault->mmu_seq != mmu_invalidate_seq.

Currently there is a second snapshot of mmu_invalidate_seq, which may not
be same as the first snapshot in kvm_faultin_pfn(), i.e. the gfn attribute
may be changed between the two snapshots, but the gfn may be mapped in
page table without hindrance. Therefore, drop the second snapshot as it
has no obvious benefits.

Fixes: f6adeae81f ("KVM: x86/mmu: Handle no-slot faults at the beginning of kvm_faultin_pfn()")
Signed-off-by: Tao Su <tao1.su@linux.intel.com>
Message-ID: <20240528102234.2162763-1-tao1.su@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2024-06-05 06:45:06 -04:00
..
mmu KVM: x86/mmu: Don't save mmu_invalidate_seq after checking private attr 2024-06-05 06:45:06 -04:00
svm KVM: SEV-ES: Delegate LBR virtualization to the processor 2024-06-03 13:07:18 -04:00
vmx Merge branch 'kvm-fixes-6.10-1' into HEAD 2024-06-03 13:18:08 -04:00
.gitignore
Kconfig KVM: x86: Force KVM_WERROR if the global WERROR is enabled 2024-05-23 12:33:31 -04:00
Makefile
cpuid.c KVM x86 misc changes for 6.10: 2024-05-12 03:18:44 -04:00
cpuid.h
debugfs.c
emulate.c
fpu.h
governed_features.h
hyperv.c
hyperv.h
i8254.c
i8254.h
i8259.c
ioapic.c
ioapic.h
irq.c
irq.h
irq_comm.c
kvm-asm-offsets.c
kvm_cache_regs.h
kvm_emulate.h
kvm_onhyperv.c
kvm_onhyperv.h
lapic.c KVM: x86: Drop support for hand tuning APIC timer advancement from userspace 2024-06-03 13:08:05 -04:00
lapic.h KVM: x86: Drop support for hand tuning APIC timer advancement from userspace 2024-06-03 13:08:05 -04:00
mmu.h KVM x86 misc changes for 6.10: 2024-05-12 03:18:44 -04:00
mtrr.c
pmu.c
pmu.h
reverse_cpuid.h
smm.c
smm.h
trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
tss.h
x86.c KVM: x86: Drop support for hand tuning APIC timer advancement from userspace 2024-06-03 13:08:05 -04:00
x86.h
xen.c
xen.h