KVM: Allow KVM_CHECK_EXTENSION on the vm fd
authorAlexander Graf <agraf@suse.de>
Mon, 14 Jul 2014 16:33:08 +0000 (18:33 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:19:06 +0000 (17:19 +0200)
commitc509fab667c6a02b0763a4343c73d134c6a09328
tree1a318327cf3054ff33757d242bc237b17db04deb
parent7b6de249336851f2fb8515b2f428bc9e56a8dbb1
KVM: Allow KVM_CHECK_EXTENSION on the vm fd

The KVM_CHECK_EXTENSION is only available on the kvm fd today. Unfortunately
on PPC some of the capabilities change depending on the way a VM was created.

So instead we need a way to expose capabilities as VM ioctl, so that we can
see which VM type we're using (HV or PR). To enable this, add the
KVM_CHECK_EXTENSION ioctl to our vm ioctl portfolio.

Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 92b591a4c46b103ebd3fc0d03a084e1efd331253)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Documentation/virtual/kvm/api.txt
include/uapi/linux/kvm.h
virt/kvm/kvm_main.c