]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Warn if guest virtual address space is not 48-bits
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 18 Sep 2014 19:39:35 +0000 (22:39 +0300)
committerJiri Slaby <jslaby@suse.cz>
Mon, 16 Feb 2015 13:06:44 +0000 (14:06 +0100)
commit293e0568a4320cec3d5226fbb3ed14abac3b05d1
treed535dd953e687efda9b73c2e68d25aa208253917
parent297b900186075ead7d08bccb2d46137f1838b220
KVM: x86: Warn if guest virtual address space is not 48-bits

commit dd598091de4aabbc8bd7290a04f364e443c03455 upstream.

The KVM emulator code assumes that the guest virtual address space (in 64-bit)
is 48-bits wide.  Since we are about to add more code that makes the same
assumption, this patch adds an assertion to make sure guest virtual address
space is indeed 48-bits wide.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Bruce Rogers <brogers@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/x86/kvm/cpuid.c
arch/x86/kvm/cpuid.h