Paolo Bonzini 4cd2927472 hmp: introduce cmd_available
Combine the RUN_STATE_PRECONFIG and cmd_can_preconfig checks
into a single function, to avoid repeating the same expression
(or its negation after applying DeMorgan's rule) over and
over again.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-12-10 12:15:15 -05:00
..
2020-12-10 12:15:15 -05:00
2020-11-13 12:45:51 +00:00
2020-12-10 12:15:10 -05:00
2020-10-09 07:08:20 +02:00