]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Test IPI to halted vCPU in xAPIC while backing page moves
authorPeter Shier <pshier@google.com>
Thu, 5 Nov 2020 22:38:23 +0000 (14:38 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:17 +0000 (05:27 -0500)
commit0664fb9e8075ef8e20815526cbbd629f81c33ff4
treed8e49bd6b437602e2f6e4e8a9ea9bed079f40c7a
parent224842662ac0376026e54f00e2b178ed079b51d4
KVM: selftests: Test IPI to halted vCPU in xAPIC while backing page moves

When a guest is using xAPIC KVM allocates a backing page for the required
EPT entry for the APIC access address set in the VMCS. If mm decides to
move that page the KVM mmu notifier will update the VMCS with the new
HPA. This test induces a page move to test that APIC access continues to
work correctly. It is a directed test for
commit 506b82d2d64e "KVM: x86: Fix APIC page invalidation race".

Tested: ran for 1 hour on a skylake, migrating backing page every 1ms

Depends on patch "selftests: kvm: Add exception handling to selftests"
from aaronlewis@google.com that has not yet been queued.

Signed-off-by: Peter Shier <pshier@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Ricardo Koller <ricarkol@google.com>
Message-Id: <20201105223823.850068-1-pshier@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/x86_64/xapic_ipi_test.c [new file with mode: 0644]