]> xenbits.xensource.com Git - libvirt.git/commit
Fix detection of JSON when restarting libvirtd
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 9 Dec 2009 18:28:30 +0000 (18:28 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 21 Dec 2009 23:37:37 +0000 (23:37 +0000)
commitc90e545f83d8536b8bf3dfb443cecb52df3339bb
tree2e730b1d62a8ad9487bcf4eba8f8f65b059197f3
parentcc3618d77bb4ef22cc5c937d78d64ccbe143f572
Fix detection of JSON when restarting libvirtd

The XML XPath for detecting JSON in the running VM statefile was
wrong causing all VMs to get JSON mode enabled at libvirtd restart.

In addition if a VM was running a JSON enabled QEMU once, and then
altered to point to a non-JSON enabled QEMU later the 'monJSON'
flag would not get reset to 0.

* src/qemu/qemu_driver.c: Fix setting/detection of JSON mode
src/qemu/qemu_driver.c