From: Jan Kiszka <[email protected]>

We need the corresponding features in IA32_VMX_PROCBASED_CTLS2 when the
CPU has support for those instructions. Add the missing checks to the
script.

Signed-off-by: Jan Kiszka <[email protected]>
---
 tools/jailhouse-hardware-check | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/jailhouse-hardware-check b/tools/jailhouse-hardware-check
index 37e02b7d..375816e2 100755
--- a/tools/jailhouse-hardware-check
+++ b/tools/jailhouse-hardware-check
@@ -221,6 +221,10 @@ if cpu_vendor == 'GenuineIntel':
     check_feature('  RDTSCP', procbased2 & (1 << 3),
                   'rdtscp' not in cpu_features)
     check_feature('  Unrestricted guest', procbased2 & (1 << 7))
+    check_feature('  INVPCID', procbased2 & (1 << 12),
+                  'invpcid' not in cpu_features)
+    check_feature('  XSAVES', procbased2 & (1 << 20),
+                  'xsaves' not in cpu_features)

     check_feature('  EPT', procbased2 & (1 << 1))
     ept_cap = msr.read(MSR.IA32_VMX_EPT_VPID_CAP)
--
2.16.4

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/236865fc-d4ac-104f-9afb-3083f4548a3b%40web.de.

Reply via email to