4841a6
From f0f87dcea3fe14b20b8599cda9b1151ca2490d0c Mon Sep 17 00:00:00 2001
4841a6
From: Jon Maloy <jmaloy@redhat.com>
4841a6
Date: Wed, 30 Mar 2022 14:52:34 -0400
4841a6
Subject: [PATCH 07/18] vmxcap: Add 5-level EPT bit
4841a6
4841a6
RH-Author: Jon Maloy <jmaloy@redhat.com>
4841a6
RH-MergeRequest: 139: vmxcap: Add 5-level EPT bit
4841a6
RH-Commit: [1/2] 4c098f551f1ed8e2a5582f466afda35b28d97055 (jmaloy/qemu-kvm)
4841a6
RH-Bugzilla: 2065207
60061b
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
60061b
4841a6
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2065207
4841a6
UPSTREAM: Merged
60061b
60061b
commit d312378e59658473aa91aa15c67ec6200d92e5ff
60061b
Author: Vitaly Kuznetsov <vkuznets@redhat.com>
60061b
Date:   Mon Feb 21 15:53:16 2022 +0100
60061b
60061b
    vmxcap: Add 5-level EPT bit
60061b
60061b
    5-level EPT is present in Icelake Server CPUs and is supported by QEMU
60061b
    ('vmx-page-walk-5').
60061b
60061b
    Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
60061b
    Message-Id: <20220221145316.576138-2-vkuznets@redhat.com>
60061b
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
60061b
4841a6
(cherry picked from commit d312378e59658473aa91aa15c67ec6200d92e5ff)
4841a6
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
60061b
---
60061b
 scripts/kvm/vmxcap | 1 +
60061b
 1 file changed, 1 insertion(+)
60061b
60061b
diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap
60061b
index 6fe66d5f57..f140040104 100755
60061b
--- a/scripts/kvm/vmxcap
60061b
+++ b/scripts/kvm/vmxcap
60061b
@@ -249,6 +249,7 @@ controls = [
60061b
         bits = {
60061b
             0: 'Execute-only EPT translations',
60061b
             6: 'Page-walk length 4',
60061b
+            7: 'Page-walk length 5',
60061b
             8: 'Paging-structure memory type UC',
60061b
             14: 'Paging-structure memory type WB',
60061b
             16: '2MB EPT pages',
60061b
-- 
60061b
2.27.0
60061b