-/* $OpenBSD: cpu.c,v 1.88 2023/04/13 02:19:04 jsg Exp $ */
+/* $OpenBSD: cpu.c,v 1.89 2023/04/29 08:50:53 kettenis Exp $ */
/*
* Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
/*
* ID_AA64MMFR1
*
- * We omit printing virtualization related fields like XNX, VH
- * and VMIDBits as they are not really relevant for us.
+ * We omit printing most virtualization related fields for now.
*/
id = READ_SPECIALREG(id_aa64mmfr1_el1);
sep = ",";
}
+ if (ID_AA64MMFR1_VH(id) >= ID_AA64MMFR1_VH_IMPL) {
+ printf("%sVH", sep);
+ sep = ",";
+ }
+
if (ID_AA64MMFR1_HAFDBS(id) >= ID_AA64MMFR1_HAFDBS_AF) {
printf("%sHAF", sep);
sep = ",";