]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainOpenGraphics: Start job early
authorJiri Denemark <jdenemar@redhat.com>
Tue, 20 Sep 2016 13:25:06 +0000 (15:25 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 21 Sep 2016 12:11:26 +0000 (14:11 +0200)
commit53ae58b0edb772513ca2ac355354ce51a361988c
tree32b1ad165e199c52ba9edf8cd5358ea15f8caa35
parenteff8f77255808c36f973da9601ce7506762538da
qemuDomainOpenGraphics: Start job early

Checking if a domain's definition or if it is active before we got a job
is pointless since the domain might have changed in the meantime.

Luckily libvirtd didn't crash when the API tried to talk to an inactive
domain:

debug : qemuDomainObjBeginJobInternal:2914 : Started job: modify
    (async=none vm=0x7f8f340140c0 name=ble)
debug : qemuDomainObjEnterMonitorInternal:3137 : Entering monitor
    (mon=(nil) vm=0x7f8f340140c0 name=ble)
warning : virObjectLock:319 : Object (nil) ((unknown)) is not a
    virObjectLockable instance
debug : qemuMonitorOpenGraphics:3505 : protocol=spice fd=27
    fdname=graphicsfd skipauth=1
error : qemuMonitorOpenGraphics:3508 : invalid argument: monitor must
    not be NULL
debug : qemuDomainObjExitMonitorInternal:3160 : Exited monitor
    (mon=(nil) vm=0x7f8f340140c0 name=ble)
debug : qemuDomainObjEndJob:3068 : Stopping job: modify (async=none
    vm=0x7f8f340140c0 name=ble)

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_driver.c