libxl/PCI: make "rdm=" parsing comply with documentation
authorJan Beulich <jbeulich@suse.com>
Thu, 27 Feb 2020 14:44:41 +0000 (15:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 27 Feb 2020 14:44:41 +0000 (15:44 +0100)
commitdf04e202c91a6e79199ecbaf53fbcc0a97ee522f
tree94ecdcbd95bd6a0b25676e005133f60c81dd4a52
parent6fdb8eef873b82bf771eb7c74c5d9236c3fa28c4
libxl/PCI: make "rdm=" parsing comply with documentation

Documentation says "<RDM_RESERVATION_STRING> is a comma separated list
of <KEY=VALUE> settings, from the following list". There's no mention
of a specific order, yet so far the parsing logic did accept only
strategy, then policy (and neither of the two omitted). Make "state"
move
- back to STATE_TYPE when finding a comma after having parsed the
  <VALUE> part of a setting,
- to STATE_TERMINAL otherwise.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libxl/libxlu_pci.c