thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-target-i386-add-VMX-features-to-named-CPU-models.patch

016a62
From a958a54a1072e201d209fd54e3fd0b55a331c5da Mon Sep 17 00:00:00 2001
016a62
From: Paolo Bonzini <pbonzini@redhat.com>
016a62
Date: Fri, 22 Nov 2019 11:53:47 +0000
016a62
Subject: [PATCH 14/16] target/i386: add VMX features to named CPU models
016a62
016a62
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
016a62
Message-id: <20191122115348.25000-15-pbonzini@redhat.com>
016a62
Patchwork-id: 92613
016a62
O-Subject: [RHEL8.2/rhel qemu-kvm PATCH 14/15] target/i386: add VMX features to named CPU models
016a62
Bugzilla: 1689270
016a62
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
016a62
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
016a62
RH-Acked-by: Maxim Levitsky <mlevitsk@redhat.com>
016a62
016a62
This allows using "-cpu Haswell,+vmx", which we did not really want to
016a62
support in QEMU but was produced by Libvirt when using the "host-model"
016a62
CPU model.  Without this patch, no VMX feature is _actually_ supported
016a62
(only the basic instruction set extensions are) and KVM fails to load
016a62
in the guest.
016a62
016a62
This was produced from the output of scripts/kvm/vmxcap using the following
016a62
very ugly Python script:
016a62
016a62
    bits = {
016a62
            'INS/OUTS instruction information': ['FEAT_VMX_BASIC', 'MSR_VMX_BASIC_INS_OUTS'],
016a62
            'IA32_VMX_TRUE_*_CTLS support': ['FEAT_VMX_BASIC', 'MSR_VMX_BASIC_TRUE_CTLS'],
016a62
            'External interrupt exiting': ['FEAT_VMX_PINBASED_CTLS', 'VMX_PIN_BASED_EXT_INTR_MASK'],
016a62
            'NMI exiting': ['FEAT_VMX_PINBASED_CTLS', 'VMX_PIN_BASED_NMI_EXITING'],
016a62
            'Virtual NMIs': ['FEAT_VMX_PINBASED_CTLS', 'VMX_PIN_BASED_VIRTUAL_NMIS'],
016a62
            'Activate VMX-preemption timer': ['FEAT_VMX_PINBASED_CTLS', 'VMX_PIN_BASED_VMX_PREEMPTION_TIMER'],
016a62
            'Process posted interrupts': ['FEAT_VMX_PINBASED_CTLS', 'VMX_PIN_BASED_POSTED_INTR'],
016a62
            'Interrupt window exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_VIRTUAL_INTR_PENDING'],
016a62
            'Use TSC offsetting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_USE_TSC_OFFSETING'],
016a62
            'HLT exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_HLT_EXITING'],
016a62
            'INVLPG exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_INVLPG_EXITING'],
016a62
            'MWAIT exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_MWAIT_EXITING'],
016a62
            'RDPMC exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_RDPMC_EXITING'],
016a62
            'RDTSC exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_RDTSC_EXITING'],
016a62
            'CR3-load exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_CR3_LOAD_EXITING'],
016a62
            'CR3-store exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_CR3_STORE_EXITING'],
016a62
            'CR8-load exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_CR8_LOAD_EXITING'],
016a62
            'CR8-store exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_CR8_STORE_EXITING'],
016a62
            'Use TPR shadow': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_TPR_SHADOW'],
016a62
            'NMI-window exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_VIRTUAL_NMI_PENDING'],
016a62
            'MOV-DR exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_MOV_DR_EXITING'],
016a62
            'Unconditional I/O exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_UNCOND_IO_EXITING'],
016a62
            'Use I/O bitmaps': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_USE_IO_BITMAPS'],
016a62
            'Monitor trap flag': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_MONITOR_TRAP_FLAG'],
016a62
            'Use MSR bitmaps': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_USE_MSR_BITMAPS'],
016a62
            'MONITOR exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_MONITOR_EXITING'],
016a62
            'PAUSE exiting': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_PAUSE_EXITING'],
016a62
            'Activate secondary control': ['FEAT_VMX_PROCBASED_CTLS', 'VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS'],
016a62
            'Virtualize APIC accesses': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES'],
016a62
            'Enable EPT': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_ENABLE_EPT'],
016a62
            'Descriptor-table exiting': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_DESC'],
016a62
            'Enable RDTSCP': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_RDTSCP'],
016a62
            'Virtualize x2APIC mode': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE'],
016a62
            'Enable VPID': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_ENABLE_VPID'],
016a62
            'WBINVD exiting': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_WBINVD_EXITING'],
016a62
            'Unrestricted guest': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST'],
016a62
            'APIC register emulation': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_APIC_REGISTER_VIRT'],
016a62
            'Virtual interrupt delivery': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY'],
016a62
            'PAUSE-loop exiting': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_PAUSE_LOOP_EXITING'],
016a62
            'RDRAND exiting': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_RDRAND_EXITING'],
016a62
            'Enable INVPCID': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_ENABLE_INVPCID'],
016a62
            'Enable VM functions': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_ENABLE_VMFUNC'],
016a62
            'VMCS shadowing': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_SHADOW_VMCS'],
016a62
            'RDSEED exiting': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_RDSEED_EXITING'],
016a62
            'Enable PML': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_ENABLE_PML'],
016a62
            'Enable XSAVES/XRSTORS': ['FEAT_VMX_SECONDARY_CTLS', 'VMX_SECONDARY_EXEC_XSAVES'],
016a62
            'Save debug controls': ['FEAT_VMX_EXIT_CTLS', 'VMX_VM_EXIT_SAVE_DEBUG_CONTROLS'],
016a62
            'Load IA32_PERF_GLOBAL_CTRL': ['FEAT_VMX_EXIT_CTLS', 'VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL'],
016a62
            'Acknowledge interrupt on exit': ['FEAT_VMX_EXIT_CTLS', 'VMX_VM_EXIT_ACK_INTR_ON_EXIT'],
016a62
            'Save IA32_PAT': ['FEAT_VMX_EXIT_CTLS', 'VMX_VM_EXIT_SAVE_IA32_PAT'],
016a62
            'Load IA32_PAT': ['FEAT_VMX_EXIT_CTLS', 'VMX_VM_EXIT_LOAD_IA32_PAT'],
016a62
            'Save IA32_EFER': ['FEAT_VMX_EXIT_CTLS', 'VMX_VM_EXIT_SAVE_IA32_EFER'],
016a62
            'Load IA32_EFER': ['FEAT_VMX_EXIT_CTLS', 'VMX_VM_EXIT_LOAD_IA32_EFER'],
016a62
            'Save VMX-preemption timer value': ['FEAT_VMX_EXIT_CTLS', 'VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER'],
016a62
            'Clear IA32_BNDCFGS': ['FEAT_VMX_EXIT_CTLS', 'VMX_VM_EXIT_CLEAR_BNDCFGS'],
016a62
            'Load debug controls': ['FEAT_VMX_ENTRY_CTLS', 'VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS'],
016a62
            'IA-32e mode guest': ['FEAT_VMX_ENTRY_CTLS', 'VMX_VM_ENTRY_IA32E_MODE'],
016a62
            'Load IA32_PERF_GLOBAL_CTRL': ['FEAT_VMX_ENTRY_CTLS', 'VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL'],
016a62
            'Load IA32_PAT': ['FEAT_VMX_ENTRY_CTLS', 'VMX_VM_ENTRY_LOAD_IA32_PAT'],
016a62
            'Load IA32_EFER': ['FEAT_VMX_ENTRY_CTLS', 'VMX_VM_ENTRY_LOAD_IA32_EFER'],
016a62
            'Load IA32_BNDCFGS': ['FEAT_VMX_ENTRY_CTLS', 'VMX_VM_ENTRY_LOAD_BNDCFGS'],
016a62
            'Store EFER.LMA into IA-32e mode guest control': ['FEAT_VMX_MISC', 'MSR_VMX_MISC_STORE_LMA'],
016a62
            'HLT activity state': ['FEAT_VMX_MISC', 'MSR_VMX_MISC_ACTIVITY_HLT'],
016a62
            'VMWRITE to VM-exit information fields': ['FEAT_VMX_MISC', 'MSR_VMX_MISC_VMWRITE_VMEXIT'],
016a62
            'Inject event with insn length=0': ['FEAT_VMX_MISC', 'MSR_VMX_MISC_ZERO_LEN_INJECT'],
016a62
            'Execute-only EPT translations': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_EXECONLY'],
016a62
            'Page-walk length 4': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_PAGE_WALK_LENGTH_4'],
016a62
            'Paging-structure memory type WB': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_WB'],
016a62
            '2MB EPT pages': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_2MB | MSR_VMX_EPT_1GB'],
016a62
            'INVEPT supported': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_INVEPT'],
016a62
            'EPT accessed and dirty flags': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_AD_BITS'],
016a62
            'Single-context INVEPT': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT'],
016a62
            'All-context INVEPT': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_INVEPT_ALL_CONTEXT'],
016a62
            'INVVPID supported': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_INVVPID'],
016a62
            'Individual-address INVVPID': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_INVVPID_SINGLE_ADDR'],
016a62
            'Single-context INVVPID': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT'],
016a62
            'All-context INVVPID': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_INVVPID_ALL_CONTEXT'],
016a62
            'Single-context-retaining-globals INVVPID': ['FEAT_VMX_EPT_VPID_CAPS', 'MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS'],
016a62
            'EPTP Switching': ['FEAT_VMX_VMFUNC', 'MSR_VMX_VMFUNC_EPT_SWITCHING']
016a62
    }
016a62
016a62
    import sys
016a62
    import textwrap
016a62
016a62
    out = {}
016a62
    for l in sys.stdin.readlines():
016a62
        l = l.rstrip()
016a62
        if l.endswith('!!'):
016a62
            l = l[:-2].rstrip()
016a62
        if l.startswith('    ') and (l.endswith('default') or l.endswith('yes')):
016a62
            l = l[4:]
016a62
            for key, value in bits.items():
016a62
                if l.startswith(key):
016a62
                    ctl, bit = value
016a62
                    if ctl in out:
016a62
                        out[ctl] = out[ctl] + ' | '
016a62
                    else:
016a62
                        out[ctl] = '    [%s] = ' % ctl
016a62
                    out[ctl] = out[ctl] + bit
016a62
016a62
    for x in sorted(out.keys()):
016a62
        print("\n         ".join(textwrap.wrap(out[x] + ",")))
016a62
016a62
Note that the script has a bug in that some keys apply to both VM entry
016a62
and VM exit controls ("load IA32_PERF_GLOBAL_CTRL", "load IA32_EFER",
016a62
"load IA32_PAT".  Those have to be fixed by hand.
016a62
016a62
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
016a62
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
016a62
(cherry picked from commit 0723cc8a5558c94388db75ae1f4991314914edd3)
016a62
016a62
RHEL: no Denverton and Snowridge
016a62
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
016a62
---
016a62
 target/i386/cpu.c | 617 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
016a62
 1 file changed, 617 insertions(+)
016a62
016a62
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
016a62
index 9074a2e..36c9252 100644
016a62
--- a/target/i386/cpu.c
016a62
+++ b/target/i386/cpu.c
016a62
@@ -1689,6 +1689,34 @@ static CPUCaches epyc_cache_info = {
016a62
     },
016a62
 };
016a62
 
016a62
+/* The following VMX features are not supported by KVM and are left out in the
016a62
+ * CPU definitions:
016a62
+ *
016a62
+ *  Dual-monitor support (all processors)
016a62
+ *  Entry to SMM
016a62
+ *  Deactivate dual-monitor treatment
016a62
+ *  Number of CR3-target values
016a62
+ *  Shutdown activity state
016a62
+ *  Wait-for-SIPI activity state
016a62
+ *  PAUSE-loop exiting (Westmere and newer)
016a62
+ *  EPT-violation #VE (Broadwell and newer)
016a62
+ *  Inject event with insn length=0 (Skylake and newer)
016a62
+ *  Conceal non-root operation from PT
016a62
+ *  Conceal VM exits from PT
016a62
+ *  Conceal VM entries from PT
016a62
+ *  Enable ENCLS exiting
016a62
+ *  Mode-based execute control (XS/XU)
016a62
+ s  TSC scaling (Skylake Server and newer)
016a62
+ *  GPA translation for PT (IceLake and newer)
016a62
+ *  User wait and pause
016a62
+ *  ENCLV exiting
016a62
+ *  Load IA32_RTIT_CTL
016a62
+ *  Clear IA32_RTIT_CTL
016a62
+ *  Advanced VM-exit information for EPT violations
016a62
+ *  Sub-page write permissions
016a62
+ *  PT in VMX operation
016a62
+ */
016a62
+
016a62
 static X86CPUDefinition builtin_x86_defs[] = {
016a62
     {
016a62
         /* qemu64 is the default CPU model for all *-rhel7.* machine-types.
016a62
@@ -1769,6 +1797,24 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX,
016a62
         .features[FEAT_8000_0001_ECX] =
016a62
             CPUID_EXT3_LAHF_LM,
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] = VMX_VM_EXIT_ACK_INTR_ON_EXIT,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz",
016a62
     },
016a62
@@ -1796,6 +1842,20 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
                     CPUID_EXT3_OSVW, CPUID_EXT3_IBS, CPUID_EXT3_SVM */
016a62
         .features[FEAT_8000_0001_ECX] =
016a62
             0,
016a62
+        /* VMX features from Cedar Mill/Prescott */
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] = VMX_VM_EXIT_ACK_INTR_ON_EXIT,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Common KVM processor"
016a62
     },
016a62
@@ -1827,6 +1887,19 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_EXT_SSE3,
016a62
         .features[FEAT_8000_0001_ECX] =
016a62
             0,
016a62
+        /* VMX features from Yonah */
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] = VMX_VM_EXIT_ACK_INTR_ON_EXIT,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_MOV_DR_EXITING | VMX_CPU_BASED_UNCOND_IO_EXITING |
016a62
+             VMX_CPU_BASED_USE_IO_BITMAPS | VMX_CPU_BASED_MONITOR_EXITING |
016a62
+             VMX_CPU_BASED_PAUSE_EXITING | VMX_CPU_BASED_USE_MSR_BITMAPS,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Common 32-bit KVM processor"
016a62
     },
016a62
@@ -1848,6 +1921,18 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_EXT_SSE3 | CPUID_EXT_MONITOR,
016a62
         .features[FEAT_8000_0001_EDX] =
016a62
             CPUID_EXT2_NX,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] = VMX_VM_EXIT_ACK_INTR_ON_EXIT,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_MOV_DR_EXITING | VMX_CPU_BASED_UNCOND_IO_EXITING |
016a62
+             VMX_CPU_BASED_USE_IO_BITMAPS | VMX_CPU_BASED_MONITOR_EXITING |
016a62
+             VMX_CPU_BASED_PAUSE_EXITING | VMX_CPU_BASED_USE_MSR_BITMAPS,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Genuine Intel(R) CPU           T2600  @ 2.16GHz",
016a62
     },
016a62
@@ -1977,6 +2062,24 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_EXT2_LM | CPUID_EXT2_NX | CPUID_EXT2_SYSCALL,
016a62
         .features[FEAT_8000_0001_ECX] =
016a62
             CPUID_EXT3_LAHF_LM,
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] = VMX_VM_EXIT_ACK_INTR_ON_EXIT,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Celeron_4x0 (Conroe/Merom Class Core 2)",
016a62
     },
016a62
@@ -2000,6 +2103,27 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_EXT2_LM | CPUID_EXT2_NX | CPUID_EXT2_SYSCALL,
016a62
         .features[FEAT_8000_0001_ECX] =
016a62
             CPUID_EXT3_LAHF_LM,
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] = VMX_VM_EXIT_ACK_INTR_ON_EXIT |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Core 2 Duo P9xxx (Penryn Class Core 2)",
016a62
     },
016a62
@@ -2023,6 +2147,46 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX,
016a62
         .features[FEAT_8000_0001_ECX] =
016a62
             CPUID_EXT3_LAHF_LM,
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Core i7 9xx (Nehalem Class Core i7)",
016a62
     },
016a62
@@ -2074,6 +2238,47 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_EXT3_LAHF_LM,
016a62
         .features[FEAT_6_EAX] =
016a62
             CPUID_6_EAX_ARAT,
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT |
016a62
+             MSR_VMX_MISC_STORE_LMA,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID | VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Westmere E56xx/L56xx/X56xx (Nehalem-C)",
016a62
     },
016a62
@@ -2133,6 +2338,47 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_XSAVE_XSAVEOPT,
016a62
         .features[FEAT_6_EAX] =
016a62
             CPUID_6_EAX_ARAT,
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT |
016a62
+             MSR_VMX_MISC_STORE_LMA,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID | VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Xeon E312xx (Sandy Bridge)",
016a62
     },
016a62
@@ -2200,6 +2446,50 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_XSAVE_XSAVEOPT,
016a62
         .features[FEAT_6_EAX] =
016a62
             CPUID_6_EAX_ARAT,
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT |
016a62
+             MSR_VMX_MISC_STORE_LMA,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER | VMX_PIN_BASED_POSTED_INTR,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID | VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST |
016a62
+             VMX_SECONDARY_EXEC_APIC_REGISTER_VIRT |
016a62
+             VMX_SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY |
016a62
+             VMX_SECONDARY_EXEC_RDRAND_EXITING,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Xeon E3-12xx v2 (Ivy Bridge)",
016a62
     },
016a62
@@ -2347,6 +2637,52 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_XSAVE_XSAVEOPT,
016a62
         .features[FEAT_6_EAX] =
016a62
             CPUID_6_EAX_ARAT,
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS | MSR_VMX_EPT_AD_BITS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT |
016a62
+             MSR_VMX_MISC_STORE_LMA | MSR_VMX_MISC_VMWRITE_VMEXIT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER | VMX_PIN_BASED_POSTED_INTR,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID | VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST |
016a62
+             VMX_SECONDARY_EXEC_APIC_REGISTER_VIRT |
016a62
+             VMX_SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY |
016a62
+             VMX_SECONDARY_EXEC_RDRAND_EXITING | VMX_SECONDARY_EXEC_ENABLE_INVPCID |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VMFUNC | VMX_SECONDARY_EXEC_SHADOW_VMCS,
016a62
+        .features[FEAT_VMX_VMFUNC] = MSR_VMX_VMFUNC_EPT_SWITCHING,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Core Processor (Haswell)",
016a62
     },
016a62
@@ -2502,6 +2838,53 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_XSAVE_XSAVEOPT,
016a62
         .features[FEAT_6_EAX] =
016a62
             CPUID_6_EAX_ARAT,
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS | MSR_VMX_EPT_AD_BITS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT |
016a62
+             MSR_VMX_MISC_STORE_LMA | MSR_VMX_MISC_VMWRITE_VMEXIT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER | VMX_PIN_BASED_POSTED_INTR,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID | VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST |
016a62
+             VMX_SECONDARY_EXEC_APIC_REGISTER_VIRT |
016a62
+             VMX_SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY |
016a62
+             VMX_SECONDARY_EXEC_RDRAND_EXITING | VMX_SECONDARY_EXEC_ENABLE_INVPCID |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VMFUNC | VMX_SECONDARY_EXEC_SHADOW_VMCS |
016a62
+             VMX_SECONDARY_EXEC_RDSEED_EXITING | VMX_SECONDARY_EXEC_ENABLE_PML,
016a62
+        .features[FEAT_VMX_VMFUNC] = MSR_VMX_VMFUNC_EPT_SWITCHING,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Core Processor (Broadwell)",
016a62
     },
016a62
@@ -2587,6 +2970,51 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_XSAVE_XGETBV1,
016a62
         .features[FEAT_6_EAX] =
016a62
             CPUID_6_EAX_ARAT,
016a62
+        /* Missing: Mode-based execute control (XS/XU), processor tracing, TSC scaling */
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS | MSR_VMX_EPT_AD_BITS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT |
016a62
+             MSR_VMX_MISC_STORE_LMA | MSR_VMX_MISC_VMWRITE_VMEXIT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID | VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST |
016a62
+             VMX_SECONDARY_EXEC_RDRAND_EXITING | VMX_SECONDARY_EXEC_ENABLE_INVPCID |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VMFUNC | VMX_SECONDARY_EXEC_SHADOW_VMCS |
016a62
+             VMX_SECONDARY_EXEC_RDSEED_EXITING | VMX_SECONDARY_EXEC_ENABLE_PML,
016a62
+        .features[FEAT_VMX_VMFUNC] = MSR_VMX_VMFUNC_EPT_SWITCHING,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Core Processor (Skylake)",
016a62
     },
016a62
@@ -2682,6 +3110,54 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_XSAVE_XGETBV1,
016a62
         .features[FEAT_6_EAX] =
016a62
             CPUID_6_EAX_ARAT,
016a62
+        /* Missing: Mode-based execute control (XS/XU), processor tracing, TSC scaling */
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS | MSR_VMX_EPT_AD_BITS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT |
016a62
+             MSR_VMX_MISC_STORE_LMA | MSR_VMX_MISC_VMWRITE_VMEXIT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER | VMX_PIN_BASED_POSTED_INTR,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID | VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST |
016a62
+             VMX_SECONDARY_EXEC_APIC_REGISTER_VIRT |
016a62
+             VMX_SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY |
016a62
+             VMX_SECONDARY_EXEC_RDRAND_EXITING | VMX_SECONDARY_EXEC_ENABLE_INVPCID |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VMFUNC | VMX_SECONDARY_EXEC_SHADOW_VMCS |
016a62
+             VMX_SECONDARY_EXEC_RDSEED_EXITING | VMX_SECONDARY_EXEC_ENABLE_PML,
016a62
+        .features[FEAT_VMX_VMFUNC] = MSR_VMX_VMFUNC_EPT_SWITCHING,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Xeon Processor (Skylake)",
016a62
     },
016a62
@@ -2785,6 +3261,54 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_XSAVE_XGETBV1,
016a62
         .features[FEAT_6_EAX] =
016a62
             CPUID_6_EAX_ARAT,
016a62
+        /* Missing: Mode-based execute control (XS/XU), processor tracing, TSC scaling */
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS | MSR_VMX_EPT_AD_BITS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT |
016a62
+             MSR_VMX_MISC_STORE_LMA | MSR_VMX_MISC_VMWRITE_VMEXIT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER | VMX_PIN_BASED_POSTED_INTR,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID | VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST |
016a62
+             VMX_SECONDARY_EXEC_APIC_REGISTER_VIRT |
016a62
+             VMX_SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY |
016a62
+             VMX_SECONDARY_EXEC_RDRAND_EXITING | VMX_SECONDARY_EXEC_ENABLE_INVPCID |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VMFUNC | VMX_SECONDARY_EXEC_SHADOW_VMCS |
016a62
+             VMX_SECONDARY_EXEC_RDSEED_EXITING | VMX_SECONDARY_EXEC_ENABLE_PML,
016a62
+        .features[FEAT_VMX_VMFUNC] = MSR_VMX_VMFUNC_EPT_SWITCHING,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Xeon Processor (Cascadelake)",
016a62
     },
016a62
@@ -2840,6 +3364,51 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_XSAVE_XGETBV1,
016a62
         .features[FEAT_6_EAX] =
016a62
             CPUID_6_EAX_ARAT,
016a62
+        /* Missing: Mode-based execute control (XS/XU), processor tracing, TSC scaling */
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS | MSR_VMX_EPT_AD_BITS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT |
016a62
+             MSR_VMX_MISC_STORE_LMA | MSR_VMX_MISC_VMWRITE_VMEXIT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID | VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST |
016a62
+             VMX_SECONDARY_EXEC_RDRAND_EXITING | VMX_SECONDARY_EXEC_ENABLE_INVPCID |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VMFUNC | VMX_SECONDARY_EXEC_SHADOW_VMCS |
016a62
+             VMX_SECONDARY_EXEC_RDSEED_EXITING | VMX_SECONDARY_EXEC_ENABLE_PML,
016a62
+        .features[FEAT_VMX_VMFUNC] = MSR_VMX_VMFUNC_EPT_SWITCHING,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Core Processor (Icelake)",
016a62
     },
016a62
@@ -2898,6 +3467,54 @@ static X86CPUDefinition builtin_x86_defs[] = {
016a62
             CPUID_XSAVE_XGETBV1,
016a62
         .features[FEAT_6_EAX] =
016a62
             CPUID_6_EAX_ARAT,
016a62
+        /* Missing: Mode-based execute control (XS/XU), processor tracing, TSC scaling */
016a62
+        .features[FEAT_VMX_BASIC] = MSR_VMX_BASIC_INS_OUTS |
016a62
+             MSR_VMX_BASIC_TRUE_CTLS,
016a62
+        .features[FEAT_VMX_ENTRY_CTLS] = VMX_VM_ENTRY_IA32E_MODE |
016a62
+             VMX_VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL | VMX_VM_ENTRY_LOAD_IA32_PAT |
016a62
+             VMX_VM_ENTRY_LOAD_DEBUG_CONTROLS | VMX_VM_ENTRY_LOAD_IA32_EFER,
016a62
+        .features[FEAT_VMX_EPT_VPID_CAPS] = MSR_VMX_EPT_EXECONLY |
016a62
+             MSR_VMX_EPT_PAGE_WALK_LENGTH_4 | MSR_VMX_EPT_WB | MSR_VMX_EPT_2MB |
016a62
+             MSR_VMX_EPT_1GB | MSR_VMX_EPT_INVEPT |
016a62
+             MSR_VMX_EPT_INVEPT_SINGLE_CONTEXT | MSR_VMX_EPT_INVEPT_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID | MSR_VMX_EPT_INVVPID_SINGLE_ADDR |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT | MSR_VMX_EPT_INVVPID_ALL_CONTEXT |
016a62
+             MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS | MSR_VMX_EPT_AD_BITS,
016a62
+        .features[FEAT_VMX_EXIT_CTLS] =
016a62
+             VMX_VM_EXIT_ACK_INTR_ON_EXIT | VMX_VM_EXIT_SAVE_DEBUG_CONTROLS |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL |
016a62
+             VMX_VM_EXIT_LOAD_IA32_PAT | VMX_VM_EXIT_LOAD_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_IA32_PAT | VMX_VM_EXIT_SAVE_IA32_EFER |
016a62
+             VMX_VM_EXIT_SAVE_VMX_PREEMPTION_TIMER,
016a62
+        .features[FEAT_VMX_MISC] = MSR_VMX_MISC_ACTIVITY_HLT |
016a62
+             MSR_VMX_MISC_STORE_LMA | MSR_VMX_MISC_VMWRITE_VMEXIT,
016a62
+        .features[FEAT_VMX_PINBASED_CTLS] = VMX_PIN_BASED_EXT_INTR_MASK |
016a62
+             VMX_PIN_BASED_NMI_EXITING | VMX_PIN_BASED_VIRTUAL_NMIS |
016a62
+             VMX_PIN_BASED_VMX_PREEMPTION_TIMER | VMX_PIN_BASED_POSTED_INTR,
016a62
+        .features[FEAT_VMX_PROCBASED_CTLS] = VMX_CPU_BASED_VIRTUAL_INTR_PENDING |
016a62
+             VMX_CPU_BASED_USE_TSC_OFFSETING | VMX_CPU_BASED_HLT_EXITING |
016a62
+             VMX_CPU_BASED_INVLPG_EXITING | VMX_CPU_BASED_MWAIT_EXITING |
016a62
+             VMX_CPU_BASED_RDPMC_EXITING | VMX_CPU_BASED_RDTSC_EXITING |
016a62
+             VMX_CPU_BASED_CR8_LOAD_EXITING | VMX_CPU_BASED_CR8_STORE_EXITING |
016a62
+             VMX_CPU_BASED_TPR_SHADOW | VMX_CPU_BASED_MOV_DR_EXITING |
016a62
+             VMX_CPU_BASED_UNCOND_IO_EXITING | VMX_CPU_BASED_USE_IO_BITMAPS |
016a62
+             VMX_CPU_BASED_MONITOR_EXITING | VMX_CPU_BASED_PAUSE_EXITING |
016a62
+             VMX_CPU_BASED_VIRTUAL_NMI_PENDING | VMX_CPU_BASED_USE_MSR_BITMAPS |
016a62
+             VMX_CPU_BASED_CR3_LOAD_EXITING | VMX_CPU_BASED_CR3_STORE_EXITING |
016a62
+             VMX_CPU_BASED_MONITOR_TRAP_FLAG |
016a62
+             VMX_CPU_BASED_ACTIVATE_SECONDARY_CONTROLS,
016a62
+        .features[FEAT_VMX_SECONDARY_CTLS] =
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
016a62
+             VMX_SECONDARY_EXEC_WBINVD_EXITING | VMX_SECONDARY_EXEC_ENABLE_EPT |
016a62
+             VMX_SECONDARY_EXEC_DESC | VMX_SECONDARY_EXEC_RDTSCP |
016a62
+             VMX_SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VPID | VMX_SECONDARY_EXEC_UNRESTRICTED_GUEST |
016a62
+             VMX_SECONDARY_EXEC_APIC_REGISTER_VIRT |
016a62
+             VMX_SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY |
016a62
+             VMX_SECONDARY_EXEC_RDRAND_EXITING | VMX_SECONDARY_EXEC_ENABLE_INVPCID |
016a62
+             VMX_SECONDARY_EXEC_ENABLE_VMFUNC | VMX_SECONDARY_EXEC_SHADOW_VMCS |
016a62
+             VMX_SECONDARY_EXEC_RDSEED_EXITING | VMX_SECONDARY_EXEC_ENABLE_PML,
016a62
+        .features[FEAT_VMX_VMFUNC] = MSR_VMX_VMFUNC_EPT_SWITCHING,
016a62
         .xlevel = 0x80000008,
016a62
         .model_id = "Intel Xeon Processor (Icelake)",
016a62
     },
016a62
-- 
016a62
1.8.3.1
016a62