]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
i386: Add Icelake-Server-v6 CPU model with 5-level EPT support
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 21 Feb 2022 14:53:15 +0000 (15:53 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Mar 2022 10:50:50 +0000 (11:50 +0100)
Windows 11 with WSL2 enabled (Hyper-V) fails to boot with Icelake-Server
{-v5} CPU model but boots well with '-cpu host'. Apparently, it expects
5-level paging and 5-level EPT support to come in pair but QEMU's
Icelake-Server CPU model lacks the later. Introduce 'Icelake-Server-v6'
CPU model with 'vmx-page-walk-5' enabled by default.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220221145316.576138-1-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c

index 351a1e4f2aaa97a9f77ebd506a489dadeb841025..916d3354fe3204331040df71a3d3521d3b9caa73 100644 (file)
@@ -3526,6 +3526,14 @@ static const X86CPUDefinition builtin_x86_defs[] = {
                     { /* end of list */ }
                 },
             },
+            {
+                .version = 6,
+                .note = "5-level EPT",
+                .props = (PropValue[]) {
+                    { "vmx-page-walk-5", "on" },
+                    { /* end of list */ }
+                },
+            },
             { /* end of list */ }
         }
     },