]> git.baikalelectronics.ru Git - kernel.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)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Nov 2015 15:24:32 +0000 (16:24 +0100)
commitd86663033e403c6684e37cfe683d4359f770f7b6
treea862d51db7a097195e82da280b3dda77b3fb265e
parentc813a3d8fdc0da4856923b9fee2b83c87336f7d6
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