OSDN Git Service

KVM: x86: introduce linear_{read,write}_system
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Jun 2018 14:43:02 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Jun 2018 07:54:26 +0000 (09:54 +0200)
commit8417244a3aac8dd083dd1cb4407f1e1e77b2bd24
tree2b2ae9493e1967b8fe1f89ca030b45edbbb40843
parent09b20d9a7c862d6161b0260b235c10e9ae596590
KVM: x86: introduce linear_{read,write}_system

commit 79367a65743975e5cac8d24d08eccc7fdae832b0 upstream.

Wrap the common invocation of ctxt->ops->read_std and ctxt->ops->write_std, so
as to have a smaller patch when the functions grow another argument.

Fixes: 129a72a0d3c8 ("KVM: x86: Introduce segmented_write_std", 2017-01-12)
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/emulate.c