Re: [Qemu-devel] [PATCH v2 2/9] python/qemu: improve event_wait method of vm

2019-06-03 Thread Vladimir Sementsov-Ogievskiy
01.06.2019 2:33, John Snow wrote: > > > On 5/31/19 12:31 PM, Vladimir Sementsov-Ogievskiy wrote: >> Support several names to wait for, which useful, when we don't sure >> which event will we get. For example when mirror fails we get >> BLOCK_JOB_COMPLETE otherwise we get BLOCK_JOB_READY (and only

Re: [Qemu-devel] [PATCH v2 2/9] python/qemu: improve event_wait method of vm

2019-05-31 Thread John Snow
On 5/31/19 12:31 PM, Vladimir Sementsov-Ogievskiy wrote: > Support several names to wait for, which useful, when we don't sure > which event will we get. For example when mirror fails we get > BLOCK_JOB_COMPLETE otherwise we get BLOCK_JOB_READY (and only then, > after completing block-job we get

[Qemu-devel] [PATCH v2 2/9] python/qemu: improve event_wait method of vm

2019-05-31 Thread Vladimir Sementsov-Ogievskiy
Support several names to wait for, which useful, when we don't sure which event will we get. For example when mirror fails we get BLOCK_JOB_COMPLETE otherwise we get BLOCK_JOB_READY (and only then, after completing block-job we get BLOCK_JOB_COMPLETE). Also, add filtered version for convenient use