]> git.proxmox.com Git - mirror_qemu.git/commit - kvm-all.c
KVM: Add helper to run KVM_CHECK_EXTENSION on vm fd
authorAlexander Graf <agraf@suse.de>
Mon, 14 Jul 2014 17:15:15 +0000 (19:15 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:51 +0000 (12:50 +0200)
commit7d0a07fa926436baf1238dcf68a55ea96cf5b9ab
treeaf01a6fc89d8d623ee1a4a6a33e2ab28fca9907f
parent4bc02e230d1e0fd41d2a892d81dcad56e3b3702d
KVM: Add helper to run KVM_CHECK_EXTENSION on vm fd

We now can call KVM_CHECK_EXTENSION on the kvm fd or on the vm fd, whereas
the vm version is more accurate when it comes to PPC KVM.

Add a helper to make the vm version available that falls back to the non-vm
variant if the vm one is not available yet to stay compatible.

Signed-off-by: Alexander Graf <agraf@suse.de>
include/sysemu/kvm.h
kvm-all.c