KVM: x86: Warn if guest virtual address space is not 48-bits
authorNadav Amit <namit@cs.technion.ac.il>
Tue, 16 Sep 2014 12:10:03 +0000 (15:10 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Sep 2014 12:07:48 +0000 (14:07 +0200)
commitdd598091de4aabbc8bd7290a04f364e443c03455
tree72123be86eb587d26b0bce0cca474aa05d3a2555
parent3c3c29fd0d7cddc32862c350d0700ce69953e3bd
KVM: x86: Warn if guest virtual address space is not 48-bits

The KVM emulator code assumes that the guest virtual address space (in 64-bit)
is 48-bits wide.  Fail the KVM_SET_CPUID and KVM_SET_CPUID2 ioctl if
userspace tries to create a guest that does not obey this restriction.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/cpuid.h