* [PATCH 1/2] i386: Add Icelake-Server-v6 CPU model with 5-level EPT support
@ 2022-02-21 14:53 Vitaly Kuznetsov
2022-02-21 14:53 ` [PATCH 2/2] vmxcap: Add 5-level EPT bit Vitaly Kuznetsov
0 siblings, 1 reply; 3+ messages in thread
From: Vitaly Kuznetsov @ 2022-02-21 14:53 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Marcelo Tosatti
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>
---
target/i386/cpu.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index aa9e6368004c..6e25d1333971 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -3505,6 +3505,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 */ }
}
},
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] vmxcap: Add 5-level EPT bit
2022-02-21 14:53 [PATCH 1/2] i386: Add Icelake-Server-v6 CPU model with 5-level EPT support Vitaly Kuznetsov
@ 2022-02-21 14:53 ` Vitaly Kuznetsov
2022-02-23 9:47 ` Paolo Bonzini
0 siblings, 1 reply; 3+ messages in thread
From: Vitaly Kuznetsov @ 2022-02-21 14:53 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Marcelo Tosatti
5-level EPT is present in Icelake Server CPUs and is supported by QEMU
('vmx-page-walk-5').
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
---
scripts/kvm/vmxcap | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap
index 6fe66d5f5753..f140040104bf 100755
--- a/scripts/kvm/vmxcap
+++ b/scripts/kvm/vmxcap
@@ -249,6 +249,7 @@ controls = [
bits = {
0: 'Execute-only EPT translations',
6: 'Page-walk length 4',
+ 7: 'Page-walk length 5',
8: 'Paging-structure memory type UC',
14: 'Paging-structure memory type WB',
16: '2MB EPT pages',
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] vmxcap: Add 5-level EPT bit
2022-02-21 14:53 ` [PATCH 2/2] vmxcap: Add 5-level EPT bit Vitaly Kuznetsov
@ 2022-02-23 9:47 ` Paolo Bonzini
0 siblings, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2022-02-23 9:47 UTC (permalink / raw)
To: Vitaly Kuznetsov, qemu-devel; +Cc: Marcelo Tosatti
On 2/21/22 15:53, Vitaly Kuznetsov wrote:
> 5-level EPT is present in Icelake Server CPUs and is supported by QEMU
> ('vmx-page-walk-5').
>
> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
> ---
> scripts/kvm/vmxcap | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap
> index 6fe66d5f5753..f140040104bf 100755
> --- a/scripts/kvm/vmxcap
> +++ b/scripts/kvm/vmxcap
> @@ -249,6 +249,7 @@ controls = [
> bits = {
> 0: 'Execute-only EPT translations',
> 6: 'Page-walk length 4',
> + 7: 'Page-walk length 5',
> 8: 'Paging-structure memory type UC',
> 14: 'Paging-structure memory type WB',
> 16: '2MB EPT pages',
Queued both, thanks.
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-23 10:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-21 14:53 [PATCH 1/2] i386: Add Icelake-Server-v6 CPU model with 5-level EPT support Vitaly Kuznetsov
2022-02-21 14:53 ` [PATCH 2/2] vmxcap: Add 5-level EPT bit Vitaly Kuznetsov
2022-02-23 9:47 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).