Skip to content
Commit 2b0418e4 authored by Nadav Amit's avatar Nadav Amit Committed by Paolo Bonzini
Browse files

x86: vmx: Comprehensive max VMCS field search



Search all VMCS fields when looking for the max VMCS field index.
Perform the search backwards to save some time. Change the existing test
to compare the maximum expected index (based on MSRs) is equal to the
actual one.  This improves the test that currently performs
greater-equal comparison.

Suggested-by: default avatarJim Mattson <jmattson@google.com>
Cc: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: default avatarNadav Amit <namit@vmware.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 3c13c642
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment