Skip to content

Commit 57b6a31

Browse files
committed
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 <[email protected]>
1 parent 5d04e7f commit 57b6a31

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

update.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,12 @@ other options are ignored.
387387
return err
388388
}
389389
}
390-
config.IntelRdt.L3CacheSchema = l3CacheSchema
391-
config.IntelRdt.MemBwSchema = memBwSchema
390+
if l3CacheSchema != "" {
391+
config.IntelRdt.L3CacheSchema = l3CacheSchema
392+
}
393+
if memBwSchema != "" {
394+
config.IntelRdt.MemBwSchema = memBwSchema
395+
}
392396
}
393397

394398
// XXX(kolyshkin@): currently "runc update" is unable to change

0 commit comments

Comments
 (0)