runc update: don't lose intelRdt state

Prevent --l3-cache-schema from clearing the intel_rdt.memBwSchema state
and --mem-bw-schema clearing l3_cache_schema, respectively.

Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
This commit is contained in:
Markus Lehtonen
2025-07-31 17:28:31 +03:00
parent 5d04e7f60c
commit 57b6a317bb
+6 -2
View File
@@ -387,8 +387,12 @@ other options are ignored.
return err
}
}
config.IntelRdt.L3CacheSchema = l3CacheSchema
config.IntelRdt.MemBwSchema = memBwSchema
if l3CacheSchema != "" {
config.IntelRdt.L3CacheSchema = l3CacheSchema
}
if memBwSchema != "" {
config.IntelRdt.MemBwSchema = memBwSchema
}
}
// XXX(kolyshkin@): currently "runc update" is unable to change