KVM: x86: handle SMBASE as physical address in RSM
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 30 Oct 2015 15:36:25 +0000 (16:36 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Nov 2015 15:24:32 +0000 (16:24 +0100)
commitf40606b147dd5b4678cedc877a71deb520ca507e
treea862d51db7a097195e82da280b3dda77b3fb265e
parent7a036a6f670f63b32c5ee126425f9109271ca13f
KVM: x86: handle SMBASE as physical address in RSM

GET_SMSTATE depends on real mode to ensure that smbase+offset is treated
as a physical address, which has already caused a bug after shuffling
the code.  Enforce physical addressing.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Reported-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c