Implement Intel RDT matching line check for pre-existing ClosId schemata.#3833
Implement Intel RDT matching line check for pre-existing ClosId schemata.#3833ipuustin wants to merge 1 commit intoopencontainers:mainfrom
Conversation
965a493 to
5d46fd0
Compare
libcontainer/intelrdt/intelrdt.go
Outdated
| // They also remove whitespace around the parsed keys and values. Note that not | ||
| // all theoretically correct lines are accepted (for example lines beginning with | ||
| // ';' are not allowed), but all the "reasonable" ones should be. | ||
| mbLineMatch = regexp.MustCompile(`^MB:(?:\s*\w+\s*=\s*\w+\s*;+)*(?:\s*\w+\s*=\s*\w+\s*);*\s*$`) |
There was a problem hiding this comment.
Note that the easiest way to review the regexp is to use an online regexps creator tool, which allows to graphically match the regexp against different inputs.
bfccafc to
ec0e49e
Compare
|
ping @kolyshkin @xiaochenshen |
ec0e49e to
9381660
Compare
Thanks for the review! I moved the schemata line parsing and comparsion to a separate file now. |
9381660 to
1621ea2
Compare
|
Rebased. |
1621ea2 to
eac9f98
Compare
|
Rebased. |
007d457 to
5dee697
Compare
|
Thanks @kolyshkin for the review! All the review comments should be addressed now. I think it makes sense to work on this PR first, because the other PR (with the proposed spec changes) will need rework when we modify the spec according to your proposal there. |
5dee697 to
f99bb27
Compare
|
Rebased. @kolyshkin WDYT? |
OCI Linux config spec specifies that if ClosId is set, the assigned values must match to the current values. Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
f99bb27 to
ff864db
Compare
|
Rebased. Ping @kolyshkin ! |
OCI Linux config spec specifies that if ClosId is set, the assigned values must match to the current values (if the closid resctrl sub-directory was pre-existing). Previously there was a TODO indicating that this functionality was missing.