kvm: Add KVM_GET_EMULATED_CPUID
authorBorislav Petkov <bp@suse.de>
Sun, 22 Sep 2013 14:44:50 +0000 (16:44 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 30 Oct 2013 17:54:39 +0000 (18:54 +0100)
commit9c15bb1d0a8411f9bb3395d21d5309bde7da0c1c
tree33f00dcd75d1ef4f97e037f1c97acb2365131de4
parent5bb3398dd2df2c26261b2156c98cf4c95b3f91fe
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>
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