kvm: Add KVM_GET_EMULATED_CPUID
authorBorislav Petkov <bp@suse.de>
Sun, 22 Sep 2013 14:44:50 +0000 (16:44 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:17 +0000 (17:18 +0200)
commitb4fe3057a0c543ed42aa2a69a6ab9a5312571c34
tree6c35e98b9a2b2ac6234866a33004ce8e67c9a99b
parente845f9d367f2ac8197a142fd29d1baa8fcc4dd75
kvm: Add KVM_GET_EMULATED_CPUID

Add a kvm ioctl which states which system functionality kvm emulates.
The format used is that of CPUID and we return the corresponding CPUID
bits set for which we do emulate functionality.

Make sure ->padding is being passed on clean from userspace so that we
can use it for something in the future, after the ioctl gets cast in
stone.

s/kvm_dev_ioctl_get_supported_cpuid/kvm_dev_ioctl_get_cpuid/ while at
it.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 9c15bb1d0a8411f9bb3395d21d5309bde7da0c1c)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Documentation/virtual/kvm/api.txt
arch/x86/include/uapi/asm/kvm.h
arch/x86/kvm/cpuid.c
arch/x86/kvm/cpuid.h
arch/x86/kvm/x86.c
include/uapi/linux/kvm.h