cpu_map: Drop vmx-invvpid-single-context from CPU models

QEMU calls the same feature differently, but translating the names in
libvirt does not make sense because the name in QEMU conflicts with
another feature. QEMU will not change the name for compatibility reasons
so we can just drop our invented name as it is not supported by QEMU.
Apart from this slightly different reason behind the feature being
unsupported by QEMU the situation is similar to vmx-ept-{uc,wb} dropped
in the previous patch and so is the implications.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jiri Denemark 2024-10-08 12:26:46 +02:00
parent b1d4196580
commit 93d97d8fa2
33 changed files with 2 additions and 32 deletions

View File

@ -70,7 +70,6 @@ FEATURES_EXTRA = {
18: "cvt16",
},
(0x0000048c,): {
41: "vmx-invvpid-single-context", # wrong name in qemu
43: "vmx-invvpid-single-context-noglobals", # wrong name in qemu
}
}

View File

@ -287,7 +287,6 @@ def translate_feature(name):
"MSR_VMX_EPT_INVEPT_ALL_CONTEXT": "vmx-invept-all-context",
"MSR_VMX_EPT_INVVPID": "vmx-invvpid",
"MSR_VMX_EPT_INVVPID_SINGLE_ADDR": "vmx-invvpid-single-addr",
"MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT": "vmx-invvpid-single-context",
"MSR_VMX_EPT_INVVPID_ALL_CONTEXT": "vmx-invvpid-all-context",
"MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT_NOGLOBALS": "vmx-invvpid-single-context-noglobals",
@ -306,6 +305,7 @@ def translate_feature(name):
name in ("MSR_VMX_BASIC_DUAL_MONITOR", "dual-monitor"),
name in ("CPUID_EXT3_TOPOEXT", "topoext"),
name in ("MSR_VMX_EPT_UC", "MSR_VMX_EPT_WB"),
name in ("MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT"),
])
if ignore:

View File

@ -100,7 +100,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -98,7 +98,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -97,7 +97,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -99,7 +99,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -111,7 +111,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -112,7 +112,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -122,7 +122,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -151,7 +151,6 @@
<feature name='vmx-invvpid'/>
<feature name='vmx-invvpid-all-context'/>
<feature name='vmx-invvpid-single-addr'/>
<feature name='vmx-invvpid-single-context'/>
<feature name='vmx-invvpid-single-context-noglobals'/>
<feature name='vmx-io-bitmap'/>
<feature name='vmx-io-exit'/>

View File

@ -96,7 +96,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -94,7 +94,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -93,7 +93,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -95,7 +95,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -121,7 +121,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -122,7 +122,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -85,7 +85,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -84,7 +84,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -74,7 +74,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -73,7 +73,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -77,7 +77,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -76,7 +76,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -144,7 +144,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -105,7 +105,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -103,7 +103,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -104,7 +104,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -109,7 +109,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -108,7 +108,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -108,7 +108,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -103,7 +103,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -72,7 +72,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -73,7 +73,6 @@
<feature name='vmx-invvpid' added='yes'/>
<feature name='vmx-invvpid-all-context' added='yes'/>
<feature name='vmx-invvpid-single-addr' added='yes'/>
<feature name='vmx-invvpid-single-context' added='yes'/>
<feature name='vmx-invvpid-single-context-noglobals' added='yes'/>
<feature name='vmx-io-bitmap' added='yes'/>
<feature name='vmx-io-exit' added='yes'/>

View File

@ -3535,6 +3535,7 @@ const char *ignoredFeatures[] = {
"cmt", "mbm_total", "mbm_local", /* never supported by QEMU */
"osxsave", "ospke", /* dropped from QEMU */
"vmx-ept-uc", "vmx-ept-wb", /* never supported by QEMU */
"vmx-invvpid-single-context", /* never supported by QEMU */
};
bool