Re: [Qemu-devel] [PATCH v6 2/7] qemu.py: fix is_running() return before first launch()

2017-08-02 Thread Stefan Hajnoczi
On Tue, Aug 01, 2017 at 02:56:55PM +0200, Amador Pahim wrote: > On Tue, Aug 1, 2017 at 12:50 PM, Eduardo Habkost wrote: > > On Tue, Aug 01, 2017 at 11:09:25AM +0100, Stefan Hajnoczi wrote: > >> On Mon, Jul 31, 2017 at 10:51:05AM +0200, Amador Pahim wrote: > >> > is_running()

Re: [Qemu-devel] [PATCH v6 2/7] qemu.py: fix is_running() return before first launch()

2017-08-01 Thread Amador Pahim
On Tue, Aug 1, 2017 at 12:50 PM, Eduardo Habkost wrote: > On Tue, Aug 01, 2017 at 11:09:25AM +0100, Stefan Hajnoczi wrote: >> On Mon, Jul 31, 2017 at 10:51:05AM +0200, Amador Pahim wrote: >> > is_running() returns None when called before the first time we >> > call launch():

Re: [Qemu-devel] [PATCH v6 2/7] qemu.py: fix is_running() return before first launch()

2017-08-01 Thread Eduardo Habkost
On Tue, Aug 01, 2017 at 11:09:25AM +0100, Stefan Hajnoczi wrote: > On Mon, Jul 31, 2017 at 10:51:05AM +0200, Amador Pahim wrote: > > is_running() returns None when called before the first time we > > call launch(): > > > > >>> import qemu > > >>> vm =

Re: [Qemu-devel] [PATCH v6 2/7] qemu.py: fix is_running() return before first launch()

2017-08-01 Thread Stefan Hajnoczi
On Mon, Jul 31, 2017 at 10:51:05AM +0200, Amador Pahim wrote: > is_running() returns None when called before the first time we > call launch(): > > >>> import qemu > >>> vm = qemu.QEMUMachine('qemu-system-x86_64') > >>> vm.is_running() > >>> > > It should retunt False instead.

[Qemu-devel] [PATCH v6 2/7] qemu.py: fix is_running() return before first launch()

2017-07-31 Thread Amador Pahim
is_running() returns None when called before the first time we call launch(): >>> import qemu >>> vm = qemu.QEMUMachine('qemu-system-x86_64') >>> vm.is_running() >>> It should retunt False instead. This patch fixes that. Signed-off-by: Amador Pahim ---