4244f0
From 54c2ad4a764658ec8a9aadc52c749eabf1de73a0 Mon Sep 17 00:00:00 2001
4244f0
From: "Richard W.M. Jones" <rjones@redhat.com>
4244f0
Date: Thu, 5 Jan 2023 12:34:02 +0000
4244f0
Subject: [PATCH] Detect OCI containers
4244f0
4244f0
Podman using OCI containers sets container=oci in PID 1's environment.
4244f0
Detect that and print "oci" fact.
4244f0
4244f0
This patch was originally contributed by Alessandro Valentini.  I
4244f0
modified it and added tests and documentation.
4244f0
4244f0
Reported-by: Alessandro Valentini
4244f0
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2155233
4244f0
---
4244f0
 configure.ac                          |   2 +
4244f0
 tests/oci/Makefile.am                 |  28 ++
4244f0
 tests/oci/proc/1/environ              | Bin 0 -> 124 bytes
4244f0
 tests/oci/proc/cpuinfo                | 671 ++++++++++++++++++++++++++
4244f0
 tests/oci/sbin/dmidecode              |   7 +
4244f0
 tests/oci/sbin/uname                  |   2 +
4244f0
 tests/oci/sbin/virt-what-cpuid-helper |   2 +
4244f0
 tests/oci/test.sh                     |  32 ++
4244f0
 virt-what.in                          |   6 +
4244f0
 virt-what.pod                         |   8 +-
4244f0
 10 files changed, 757 insertions(+), 1 deletion(-)
4244f0
 create mode 100644 tests/oci/Makefile.am
4244f0
 create mode 100644 tests/oci/proc/1/environ
4244f0
 create mode 100644 tests/oci/proc/cpuinfo
4244f0
 create mode 100755 tests/oci/sbin/dmidecode
4244f0
 create mode 100755 tests/oci/sbin/uname
4244f0
 create mode 100755 tests/oci/sbin/virt-what-cpuid-helper
4244f0
 create mode 100755 tests/oci/test.sh
4244f0
4244f0
diff --git a/configure.ac b/configure.ac
4244f0
index 8f808a38b..a80a4b6f0 100644
4244f0
--- a/configure.ac
4244f0
+++ b/configure.ac
4244f0
@@ -56,6 +56,7 @@ tests="\
4244f0
 	lx86 \
4244f0
 	lxc \
4244f0
 	nutanix-ahv \
4244f0
+	oci \
4244f0
 	parallels-desktop \
4244f0
 	podman \
4244f0
 	ppc64-baremetal \
4244f0
@@ -104,6 +105,7 @@ AC_CONFIG_FILES([Makefile
4244f0
 	         tests/lx86/Makefile
4244f0
 	         tests/lxc/Makefile
4244f0
 	         tests/nutanix-ahv/Makefile
4244f0
+	         tests/oci/Makefile
4244f0
 	         tests/parallels-desktop/Makefile
4244f0
 	         tests/podman/Makefile
4244f0
 	         tests/ppc64-baremetal/Makefile
4244f0
diff --git a/tests/oci/Makefile.am b/tests/oci/Makefile.am
4244f0
new file mode 100644
4244f0
index 000000000..b2f6f2469
4244f0
--- /dev/null
4244f0
+++ b/tests/oci/Makefile.am
4244f0
@@ -0,0 +1,28 @@
4244f0
+# Makefile for virt-what
4244f0
+# Copyright (C) 2008-2023 Red Hat Inc.
4244f0
+#
4244f0
+# This program is free software; you can redistribute it and/or modify
4244f0
+# it under the terms of the GNU General Public License as published by
4244f0
+# the Free Software Foundation; either version 2 of the License, or
4244f0
+# (at your option) any later version.
4244f0
+#
4244f0
+# This program is distributed in the hope that it will be useful,
4244f0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
4244f0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4244f0
+# GNU General Public License for more details.
4244f0
+#
4244f0
+# You should have received a copy of the GNU General Public License
4244f0
+# along with this program; if not, write to the Free Software
4244f0
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
4244f0
+
4244f0
+CLEANFILES = *~
4244f0
+
4244f0
+TESTS = test.sh
4244f0
+
4244f0
+EXTRA_DIST = \
4244f0
+	test.sh \
4244f0
+	proc/1/environ \
4244f0
+	proc/cpuinfo \
4244f0
+	sbin/dmidecode \
4244f0
+	sbin/uname \
4244f0
+	sbin/virt-what-cpuid-helper
4244f0
diff --git a/tests/oci/proc/1/environ b/tests/oci/proc/1/environ
4244f0
new file mode 100644
4244f0
index 0000000000000000000000000000000000000000..03d40a45377eaeccef15532734d2f5b7fd42234e
4244f0
GIT binary patch
4244f0
literal 124
4244f0
zcmWG=4DqnlFD)+8&&f|t%+W7S%FMGu;={QJ39t}^3uH2cxCZ&!R+OX`
4244f0
r=A{
4244f0
4244f0
literal 0
4244f0
HcmV?d00001
4244f0
4244f0
diff --git a/tests/oci/proc/cpuinfo b/tests/oci/proc/cpuinfo
4244f0
new file mode 100644
4244f0
index 000000000..82b147bb4
4244f0
--- /dev/null
4244f0
+++ b/tests/oci/proc/cpuinfo
4244f0
@@ -0,0 +1,671 @@
4244f0
+processor	: 0
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 0
4244f0
+cpu cores	: 12
4244f0
+apicid		: 0
4244f0
+initial apicid	: 0
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 1
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 1
4244f0
+cpu cores	: 12
4244f0
+apicid		: 2
4244f0
+initial apicid	: 2
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 2
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 2
4244f0
+cpu cores	: 12
4244f0
+apicid		: 4
4244f0
+initial apicid	: 4
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 3
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 4
4244f0
+cpu cores	: 12
4244f0
+apicid		: 8
4244f0
+initial apicid	: 8
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 4
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 5
4244f0
+cpu cores	: 12
4244f0
+apicid		: 10
4244f0
+initial apicid	: 10
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 5
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 6
4244f0
+cpu cores	: 12
4244f0
+apicid		: 12
4244f0
+initial apicid	: 12
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 6
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2194.032
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 8
4244f0
+cpu cores	: 12
4244f0
+apicid		: 16
4244f0
+initial apicid	: 16
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 7
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 9
4244f0
+cpu cores	: 12
4244f0
+apicid		: 18
4244f0
+initial apicid	: 18
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 8
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 10
4244f0
+cpu cores	: 12
4244f0
+apicid		: 20
4244f0
+initial apicid	: 20
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 9
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 12
4244f0
+cpu cores	: 12
4244f0
+apicid		: 24
4244f0
+initial apicid	: 24
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 10
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 13
4244f0
+cpu cores	: 12
4244f0
+apicid		: 26
4244f0
+initial apicid	: 26
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 11
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 14
4244f0
+cpu cores	: 12
4244f0
+apicid		: 28
4244f0
+initial apicid	: 28
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 12
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2194.248
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 0
4244f0
+cpu cores	: 12
4244f0
+apicid		: 1
4244f0
+initial apicid	: 1
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 13
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 3973.398
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 1
4244f0
+cpu cores	: 12
4244f0
+apicid		: 3
4244f0
+initial apicid	: 3
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 14
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 2
4244f0
+cpu cores	: 12
4244f0
+apicid		: 5
4244f0
+initial apicid	: 5
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 15
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 4
4244f0
+cpu cores	: 12
4244f0
+apicid		: 9
4244f0
+initial apicid	: 9
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 16
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 5
4244f0
+cpu cores	: 12
4244f0
+apicid		: 11
4244f0
+initial apicid	: 11
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 17
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 6
4244f0
+cpu cores	: 12
4244f0
+apicid		: 13
4244f0
+initial apicid	: 13
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 18
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2195.748
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 8
4244f0
+cpu cores	: 12
4244f0
+apicid		: 17
4244f0
+initial apicid	: 17
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 19
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 9
4244f0
+cpu cores	: 12
4244f0
+apicid		: 19
4244f0
+initial apicid	: 19
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 20
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2196.733
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 10
4244f0
+cpu cores	: 12
4244f0
+apicid		: 21
4244f0
+initial apicid	: 21
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 21
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 12
4244f0
+cpu cores	: 12
4244f0
+apicid		: 25
4244f0
+initial apicid	: 25
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 22
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2200.000
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 13
4244f0
+cpu cores	: 12
4244f0
+apicid		: 27
4244f0
+initial apicid	: 27
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
+
4244f0
+processor	: 23
4244f0
+vendor_id	: AuthenticAMD
4244f0
+cpu family	: 23
4244f0
+model		: 113
4244f0
+model name	: AMD Ryzen 9 3900X 12-Core Processor
4244f0
+stepping	: 0
4244f0
+microcode	: 0x8701013
4244f0
+cpu MHz		: 2194.867
4244f0
+cache size	: 512 KB
4244f0
+physical id	: 0
4244f0
+siblings	: 24
4244f0
+core id		: 14
4244f0
+cpu cores	: 12
4244f0
+apicid		: 29
4244f0
+initial apicid	: 29
4244f0
+fpu		: yes
4244f0
+fpu_exception	: yes
4244f0
+cpuid level	: 16
4244f0
+wp		: yes
4244f0
+flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
4244f0
+bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
4244f0
+bogomips	: 7585.66
4244f0
+TLB size	: 3072 4K pages
4244f0
+clflush size	: 64
4244f0
+cache_alignment	: 64
4244f0
+address sizes	: 43 bits physical, 48 bits virtual
4244f0
+power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]
4244f0
diff --git a/tests/oci/sbin/dmidecode b/tests/oci/sbin/dmidecode
4244f0
new file mode 100755
4244f0
index 000000000..48a6de126
4244f0
--- /dev/null
4244f0
+++ b/tests/oci/sbin/dmidecode
4244f0
@@ -0,0 +1,7 @@
4244f0
+#!/bin/sh -
4244f0
+cat <<'EOF'
4244f0
+# dmidecode 3.3
4244f0
+Scanning /dev/mem for entry point.
4244f0
+/dev/mem: No such file or directory
4244f0
+EOF
4244f0
+exit 1
4244f0
diff --git a/tests/oci/sbin/uname b/tests/oci/sbin/uname
4244f0
new file mode 100755
4244f0
index 000000000..ab0ec896d
4244f0
--- /dev/null
4244f0
+++ b/tests/oci/sbin/uname
4244f0
@@ -0,0 +1,2 @@
4244f0
+#!/bin/sh -
4244f0
+echo x86_64
4244f0
diff --git a/tests/oci/sbin/virt-what-cpuid-helper b/tests/oci/sbin/virt-what-cpuid-helper
4244f0
new file mode 100755
4244f0
index 000000000..481e1e67c
4244f0
--- /dev/null
4244f0
+++ b/tests/oci/sbin/virt-what-cpuid-helper
4244f0
@@ -0,0 +1,2 @@
4244f0
+#!/bin/sh -
4244f0
+# no output
4244f0
diff --git a/tests/oci/test.sh b/tests/oci/test.sh
4244f0
new file mode 100755
4244f0
index 000000000..5028ebc60
4244f0
--- /dev/null
4244f0
+++ b/tests/oci/test.sh
4244f0
@@ -0,0 +1,32 @@
4244f0
+# Test for OCI
4244f0
+# Copyright (C) 2008-2023 Red Hat Inc.
4244f0
+#
4244f0
+# This program is free software; you can redistribute it and/or modify
4244f0
+# it under the terms of the GNU General Public License as published by
4244f0
+# the Free Software Foundation; either version 2 of the License, or
4244f0
+# (at your option) any later version.
4244f0
+#
4244f0
+# This program is distributed in the hope that it will be useful,
4244f0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
4244f0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4244f0
+# GNU General Public License for more details.
4244f0
+#
4244f0
+# You should have received a copy of the GNU General Public License
4244f0
+# along with this program; if not, write to the Free Software
4244f0
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
4244f0
+
4244f0
+output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
4244f0
+expected="oci"
4244f0
+
4244f0
+if [ "$output" != "$expected" ]; then
4244f0
+    echo "$0: test failed because output did not match expected"
4244f0
+    echo "Expected output was:"
4244f0
+    echo "----------------------------------------"
4244f0
+    echo "$expected"
4244f0
+    echo "----------------------------------------"
4244f0
+    echo "But the actual output of the program was:"
4244f0
+    echo "----------------------------------------"
4244f0
+    echo "$output"
4244f0
+    echo "----------------------------------------"
4244f0
+    exit 1
4244f0
+fi
4244f0
diff --git a/virt-what.in b/virt-what.in
4244f0
index c6e4a1e00..102e23f67 100644
4244f0
--- a/virt-what.in
4244f0
+++ b/virt-what.in
4244f0
@@ -192,6 +192,12 @@ if [ -f "${root}/.dockerenv" ] || [ -f "${root}/.dockerinit" ] || \
4244f0
     echo docker
4244f0
 fi
4244f0
 
4244f0
+# Check for OCI.
4244f0
+if [ -e "${root}/proc/1/environ" ] &&
4244f0
+    cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=oci'; then
4244f0
+    echo oci
4244f0
+fi
4244f0
+
4244f0
 # Check for Podman.
4244f0
 if [ -e "${root}/proc/1/environ" ] &&
4244f0
     cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=podman'; then
4244f0
diff --git a/virt-what.pod b/virt-what.pod
4244f0
index 2c346bded..9dbc079f9 100644
4244f0
--- a/virt-what.pod
4244f0
+++ b/virt-what.pod
4244f0
@@ -203,6 +203,12 @@ The guest is running inside Nutanix Acropolis Hypervisor (AHV).
4244f0
 
4244f0
 Status: confirmed by RWMJ.
4244f0
 
4244f0
+=item B<oci>
4244f0
+
4244f0
+The guest is running in an OCI container.
4244f0
+
4244f0
+Status: contributed by Alessandro Valentini, confirmed by RWMJ
4244f0
+
4244f0
 =item B<openvz>
4244f0
 
4244f0
 The guest appears to be running inside an OpenVZ or Virtuozzo
4244f0
@@ -226,7 +232,7 @@ Status: contributed by Justin Clift
4244f0
 
4244f0
 =item B<podman>
4244f0
 
4244f0
-This is a Podman container.
4244f0
+This is a Podman container.  (See also C<oci> above.)
4244f0
 
4244f0
 Status: contributed by Jordan Webb
4244f0
 
4244f0
-- 
4244f0
2.31.1
4244f0