On Mon, Sep 30, 2024, Xin Li (Intel) wrote: > Add a prerequisite to existence of VMCS fields as some of them exist > only on processors that support certain CPU features. > > This is required to fix KVM unit test VMX_VMCS_ENUM.MAX_INDEX. If making the KVM-Unit-Test pass is the driving force for this code, then NAK. We looked at this in detail a few years back, and came to the conclusion that trying to precisely track which fields are/aren't supported would likely do more harm than good. https://lore.kernel.org/all/1629192673-9911-4-git-send-email-robert.hu@xxxxxxxxxxxxxxx