VMX: sync VM-exit perf counters with known VM-exit reasons
authorJan Beulich <jbeulich@suse.com>
Mon, 31 Jan 2022 09:56:28 +0000 (10:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 31 Jan 2022 09:56:28 +0000 (10:56 +0100)
commitc5539e6e7b9e9f8e12d4e05b5f6db97ca94539e7
treeb8d5b96af96e5d52e59ff64617c9ab9636f3f684
parent21170a738c11b24815b4afab2151bd3aa2a29acc
VMX: sync VM-exit perf counters with known VM-exit reasons

This has gone out of sync over time. Introduce a simplistic mechanism to
hopefully keep things in sync going forward.

Also limit the array index to just the "basic exit reason" part, which is
what the pseudo-enumeration covers.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/include/asm/hvm/vmx/vmx.h
xen/arch/x86/include/asm/perfc_defn.h