git: 9front

Download patch

ref: 6055eaade201e5b2bdbc544d752059c7eccb9440
parent: a79f75e9b80a4f2e3bec986707492006909148e5
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");
--