]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 19:34:17 +0000 (14:34 -0500)
commitb6b8b23bd73762dbb662b5a5a17d1c86f708fa01
tree1b3dfe2bc813fe32ab5dc6b64172378026c2cb06
parentbead1229f821de2ec81b5d361e1750a8e564d248
KVM: x86: handle SMBASE as physical address in RSM

commit f40606b147dd5b4678cedc877a71deb520ca507e upstream.

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>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/emulate.c