spheenik / vfio-isolate

CPU and memory isolation for VFIO
MIT License
90 stars 8 forks source link

Error executing cpuset-modify #12

Closed FallingSnow closed 1 year ago

FallingSnow commented 1 year ago
model name      : 13th Gen Intel(R) Core(TM) i5-13600K
$ uname -a
Linux divinity2 6.2.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 03 Mar 2023 15:58:31 +0000 x86_64 GNU/Linux
$ sudo vfio-isolate cpuset-modify --cpus C0-4 /system.slice cpuset-modify --cpus C0-4 /user.slice
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 1663, in lex
    token = self.root_lexer.next_token(lexer_state, parser_state)
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 1589, in next_token
    raise UnexpectedCharacters(lex_state.text, line_ctr.char_pos, line_ctr.line, line_ctr.column,
vfio_isolate.nodeset_parser.UnexpectedCharacters: No terminal matches '
' in the current parser context, at line 1 col 5

0-19
    ^
Expected one of: 
        * MINUS
        * COMMA
        * MASK_ENTRY
        * NUMBER

Previous tokens: Token('NUMBER', '19')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/vfio-isolate", line 33, in <module>
    sys.exit(load_entry_point('vfio-isolate==0.5.1', 'console_scripts', 'vfio-isolate')())
  File "/usr/lib/python3.10/site-packages/vfio_isolate/cli.py", line 200, in run_cli
    executor.run()
  File "/usr/lib/python3.10/site-packages/vfio_isolate/cli.py", line 191, in run
    for undo in e.action.record_undo(e.params):
  File "/usr/lib/python3.10/site-packages/vfio_isolate/action/cpuset_modify.py", line 39, in record_undo
    cpus=cpu_set.get_cpus(),
  File "/usr/lib/python3.10/site-packages/vfio_isolate/cpuset.py", line 69, in get_cpus
    return self.impl.get_cpus(self)
  File "/usr/lib/python3.10/site-packages/vfio_isolate/cpuset.py", line 234, in get_cpus
    return CPUNodeSet(f.read())
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset.py", line 68, in __init__
    self.nodes = NodeSetParser.parse(initial)
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset.py", line 57, in parse
    return parser.parse(string_representation)
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 3047, in parse
    return self.parser.parse(text, start=start, on_error=on_error)
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 2420, in parse
    return self.parser.parse(stream, chosen_start, **kw)
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 2104, in parse
    return self.parser.parse(lexer, start)
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 2240, in parse
    return self.parse_from_state(parser_state)
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 2257, in parse_from_state
    raise e
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 2247, in parse_from_state
    for token in state.lexer.lex(state):
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 1666, in lex
    raise e  ##
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 1652, in lex
    yield lexer.next_token(lexer_state, parser_state)
  File "/usr/lib/python3.10/site-packages/vfio_isolate/nodeset_parser.py", line 1589, in next_token
    raise UnexpectedCharacters(lex_state.text, line_ctr.char_pos, line_ctr.line, line_ctr.column,
vfio_isolate.nodeset_parser.UnexpectedCharacters: No terminal matches '
' in the current parser context, at line 1 col 5

0-19
    ^
Expected one of: 
        * COMMA

Previous tokens: Token('NUMBER', '19')