]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Revert "conf: Introduce MTE domain feature"
authorAndrea Bolognani <abologna@redhat.com>
Mon, 22 May 2023 07:50:20 +0000 (09:50 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 22 May 2023 13:13:19 +0000 (15:13 +0200)
The QEMU interface is still in a state of flux, and KVM support
has been pulled shortly after having been merged. Let's not
commit to a stable interface in libvirt just yet.

Reverts: 720e8f13ff71377580cd37b118cee8a1f982d1d8
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
docs/formatdomain.rst
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/schemas/domaincommon.rng
src/qemu/qemu_validate.c
tests/qemuxml2argvdata/aarch64-gic-v3.xml
tests/qemuxml2xmloutdata/aarch64-gic-v3.aarch64-latest.xml

index b46eefb0f67503fd99fbf62826420fe99ca17133..dd28a565e15aa0fcac828f7d87caabcc25ac5f88 100644 (file)
@@ -2000,7 +2000,6 @@ Hypervisors may allow certain CPU / machine features to be toggled on/off.
      <tcg>
        <tb-cache unit='MiB'>128</tb-cache>
      </tcg>
-     <mte state='on'/>
    </features>
    ...
 
@@ -2231,12 +2230,6 @@ are:
    tb-cache    The size of translation block cache size       an integer (a multiple of MiB)                      :since:`8.0.0`
    =========== ============================================== =================================================== ==============
 
-``mte``
-   Configure Memory Tagging Extensions for ARM guests. Possible values for the
-   ``state`` attribute are ``on`` and ``off``.  If the attribute is not
-   defined, the hypervisor default will be used. :since:`Since 9.4.0` (QEMU/KVM
-   only)
-
 Time keeping
 ------------
 
index 047a4c97bf0b745f7ee5b884a45193ce9274755b..6a864a8db9e7db999ab73dd0d5f8ecf95cfa1f79 100644 (file)
@@ -181,7 +181,6 @@ VIR_ENUM_IMPL(virDomainFeature,
               "sbbc",
               "ibs",
               "tcg",
-              "mte",
 );
 
 VIR_ENUM_IMPL(virDomainCapabilitiesPolicy,
@@ -16646,8 +16645,7 @@ virDomainFeaturesDefParse(virDomainDef *def,
 
         case VIR_DOMAIN_FEATURE_HTM:
         case VIR_DOMAIN_FEATURE_NESTED_HV:
-        case VIR_DOMAIN_FEATURE_CCF_ASSIST:
-        case VIR_DOMAIN_FEATURE_MTE: {
+        case VIR_DOMAIN_FEATURE_CCF_ASSIST: {
             virTristateSwitch state;
 
             if (virXMLPropTristateSwitch(nodes[i], "state",
@@ -20488,7 +20486,6 @@ virDomainDefFeaturesCheckABIStability(virDomainDef *src,
         case VIR_DOMAIN_FEATURE_HTM:
         case VIR_DOMAIN_FEATURE_NESTED_HV:
         case VIR_DOMAIN_FEATURE_CCF_ASSIST:
-        case VIR_DOMAIN_FEATURE_MTE:
             if (src->features[i] != dst->features[i]) {
                 virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                                _("State of feature '%1$s' differs: source: '%2$s', destination: '%3$s'"),
@@ -27008,7 +27005,6 @@ virDomainDefFormatFeatures(virBuffer *buf,
         case VIR_DOMAIN_FEATURE_HTM:
         case VIR_DOMAIN_FEATURE_NESTED_HV:
         case VIR_DOMAIN_FEATURE_CCF_ASSIST:
-        case VIR_DOMAIN_FEATURE_MTE:
             switch ((virTristateSwitch) def->features[i]) {
             case VIR_TRISTATE_SWITCH_LAST:
             case VIR_TRISTATE_SWITCH_ABSENT:
index 3f8d6e81c0ac0efc9bf68209cfd9d5733f59041f..c1cb2ed69d8f1fabbe619b412d8a1fb0ac5b88e8 100644 (file)
@@ -2169,7 +2169,6 @@ typedef enum {
     VIR_DOMAIN_FEATURE_SBBC,
     VIR_DOMAIN_FEATURE_IBS,
     VIR_DOMAIN_FEATURE_TCG,
-    VIR_DOMAIN_FEATURE_MTE,
 
     VIR_DOMAIN_FEATURE_LAST
 } virDomainFeature;
index 37e350ac2c6a9cd7de1f9c6e2d12b9ebefd23a52..f8c7b6a64854004adab12b0504facb51f7dddc63 100644 (file)
           <optional>
             <ref name="tcgfeatures"/>
           </optional>
-          <optional>
-            <element name="mte">
-              <ref name="featurestate"/>
-            </element>
-          </optional>
         </interleave>
       </element>
     </optional>
index 99c7775e9bf11c247b6f341e7799fabfc8a132a4..da4b9a3b359e85055a2a7142d8a544491a761136 100644 (file)
@@ -123,7 +123,6 @@ qemuValidateDomainDefFeatures(const virDomainDef *def,
             break;
 
         case VIR_DOMAIN_FEATURE_GIC:
-        case VIR_DOMAIN_FEATURE_MTE:
             if (def->features[i] == VIR_TRISTATE_SWITCH_ON &&
                 !qemuDomainIsARMVirt(def)) {
                 virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
index b9317284b081f4507ea6dcfa22d28282f9f79d67..247d6025f71751f089d077120b969f80571dd0bf 100644 (file)
@@ -10,7 +10,6 @@
   </os>
   <features>
     <gic version='3'/>
-    <mte state='on'/>
   </features>
   <cpu mode='host-passthrough' check='none'/>
   <clock offset='utc'/>
index 1a74903aaa0c2390af28f9659ac6692a9aa3d3ae..5b2fb7df753d2203e08f10379f7d1554d2a1f053 100644 (file)
@@ -10,7 +10,6 @@
   </os>
   <features>
     <gic version='3'/>
-    <mte state='on'/>
   </features>
   <cpu mode='host-passthrough' check='none'/>
   <clock offset='utc'/>