]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Document priority of all known events on Intel CPUs
authorSean Christopherson <seanjc@google.com>
Tue, 30 Aug 2022 23:16:07 +0000 (23:16 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:03:10 +0000 (12:03 -0400)
commit694ac87753562c98f04413f6a0ef8475f3235a11
tree509c03adc7fe808c6d7b63707e961c04351ac0d0
parent2d4d1d6301cc35896384420ad20fc31414772f21
KVM: nVMX: Document priority of all known events on Intel CPUs

Add a gigantic comment above vmx_check_nested_events() to document the
priorities of all known events on Intel CPUs.  Intel's SDM doesn't
include VMX-specific events in its "Priority Among Concurrent Events",
which makes it painfully difficult to suss out the correct priority
between things like Monitor Trap Flag VM-Exits and pending #DBs.

Kudos to Jim Mattson for doing the hard work of collecting and
interpreting the priorities from various locations throughtout the SDM
(because putting them all in one place in the SDM would be too easy).

Cc: Jim Mattson <jmattson@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20220830231614.3580124-21-seanjc@google.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c