shithub: riscv

Download patch

ref: 1470d22cdbebc9c0c18a590891f2d43d1646f4bd
parent: 4ee54b14169eb02a59754c8e9027549ada3f8533
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun May 15 12:23:13 EDT 2022

icanhasvmx: our vmx requires unrestricted guest too

--- a/sys/src/cmd/aux/icanhasvmx.c
+++ b/sys/src/cmd/aux/icanhasvmx.c
@@ -241,6 +241,10 @@
 				print("no VPID support\n");
 				no++;
 			}
+			if((msr >> 32 & PROCB_UNRESTR) == 0){
+				print("no unrestricted guest support\n");
+				no++;
+			}
 		}
 		if(no == 0)
 			print("VMX is supported\n");