Skip to content

Commit e20b2c7

Browse files
authored
Merge pull request #4828 from marquiz/devel/runc-update-rdt-single-schema
runc update: don't lose intelRdt state
2 parents 5d04e7f + 57b6a31 commit e20b2c7

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)