]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: add read_phys to x86_emulate_ops
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 30 Oct 2015 15:36:24 +0000 (16:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 19:34:16 +0000 (14:34 -0500)
commitbead1229f821de2ec81b5d361e1750a8e564d248
tree071f1307901e778246c7c89bfa24eca13c1f73eb
parentff3a8601b8a4be9932c714b59392900ecb10bc84
KVM: x86: add read_phys to x86_emulate_ops

commit 7a036a6f670f63b32c5ee126425f9109271ca13f upstream.

We want to read the physical memory when emulating RSM.

X86EMUL_IO_NEEDED is returned on all errors for consistency with other
helpers.

Signed-off-by: Radim Krčmář <rkrcmar@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/include/asm/kvm_emulate.h
arch/x86/kvm/x86.c