From 57b6a317bb0ed7c7d2937b477ba9fb8a2ba50bae Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 31 Jul 2025 17:28:31 +0300 Subject: [PATCH] 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 --- update.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/update.go b/update.go index bc8ed1318..d1697a6a7 100644 --- a/update.go +++ b/update.go @@ -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