|
|
495e37 |
From 575ca409fa21db088c76e57f7285021dd8da1569 Mon Sep 17 00:00:00 2001
|
|
|
495e37 |
From: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
495e37 |
Date: Wed, 16 Mar 2022 09:36:19 +0100
|
|
|
495e37 |
Subject: [PATCH 04/14] i386: Add Icelake-Server-v6 CPU model with 5-level EPT
|
|
|
495e37 |
support
|
|
|
495e37 |
|
|
|
495e37 |
RH-Author: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
495e37 |
RH-MergeRequest: 126: i386: Add Icelake-Server-v6 CPU model with 5-level EPT support
|
|
|
495e37 |
RH-Commit: [2/2] a047caa01fafd8ca6a5fa0704b379edab91d4ccc
|
|
|
495e37 |
RH-Bugzilla: 2038051
|
|
|
495e37 |
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
495e37 |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
495e37 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
495e37 |
|
|
|
495e37 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038051
|
|
|
495e37 |
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=43862630
|
|
|
495e37 |
|
|
|
495e37 |
commit 12cab535db6440af41ed8dfefe908a594321b6ce
|
|
|
495e37 |
Author: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
495e37 |
Date: Mon Feb 21 15:53:15 2022 +0100
|
|
|
495e37 |
|
|
|
495e37 |
i386: Add Icelake-Server-v6 CPU model with 5-level EPT support
|
|
|
495e37 |
|
|
|
495e37 |
Windows 11 with WSL2 enabled (Hyper-V) fails to boot with Icelake-Server
|
|
|
495e37 |
{-v5} CPU model but boots well with '-cpu host'. Apparently, it expects
|
|
|
495e37 |
5-level paging and 5-level EPT support to come in pair but QEMU's
|
|
|
495e37 |
Icelake-Server CPU model lacks the later. Introduce 'Icelake-Server-v6'
|
|
|
495e37 |
CPU model with 'vmx-page-walk-5' enabled by default.
|
|
|
495e37 |
|
|
|
495e37 |
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
495e37 |
Message-Id: <20220221145316.576138-1-vkuznets@redhat.com>
|
|
|
495e37 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
495e37 |
|
|
|
495e37 |
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
495e37 |
---
|
|
|
495e37 |
target/i386/cpu.c | 8 ++++++++
|
|
|
495e37 |
1 file changed, 8 insertions(+)
|
|
|
495e37 |
|
|
|
495e37 |
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
|
|
|
495e37 |
index aa9e636800..6e25d13339 100644
|
|
|
495e37 |
--- a/target/i386/cpu.c
|
|
|
495e37 |
+++ b/target/i386/cpu.c
|
|
|
495e37 |
@@ -3505,6 +3505,14 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
495e37 |
{ /* end of list */ }
|
|
|
495e37 |
},
|
|
|
495e37 |
},
|
|
|
495e37 |
+ {
|
|
|
495e37 |
+ .version = 6,
|
|
|
495e37 |
+ .note = "5-level EPT",
|
|
|
495e37 |
+ .props = (PropValue[]) {
|
|
|
495e37 |
+ { "vmx-page-walk-5", "on" },
|
|
|
495e37 |
+ { /* end of list */ }
|
|
|
495e37 |
+ },
|
|
|
495e37 |
+ },
|
|
|
495e37 |
{ /* end of list */ }
|
|
|
495e37 |
}
|
|
|
495e37 |
},
|
|
|
495e37 |
--
|
|
|
495e37 |
2.31.1
|
|
|
495e37 |
|