]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: process: Fix failure semantics for perf events
authorPeter Krempa <pkrempa@redhat.com>
Wed, 27 Apr 2016 12:58:32 +0000 (14:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 2 May 2016 07:06:52 +0000 (09:06 +0200)
commitedadd46c05b1eb93479a88017783bae648709bfa
tree2abb682dfceb0176dd029441c73b18de71c47431
parente64e394223c564008dc46ad02f37a832906192b6
qemu: process: Fix failure semantics for perf events

For strange reasons if a perf event type was not supported or failed to
be enabled at VM start libvirt would ignore the failure.

On the other hand on restart if the event could not be re-enabled
libvirt would fail to reconnect to the VM and kill it.

Both don't make really sense. Fix it by failing to start the VM if the
event is not supported and change the event to disabled if it can't be
reconnected (unlikely).

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1329045
src/qemu/qemu_process.c