[libvirt] [PATCH 7/9] Make handling of monitor prompts more general.