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:45:14 +0000 (09:45 +0200)
commit3d2f03393267d42bdd8612ac1db265ee6591d14e
tree3358bde44e089d35f7a42cb268c5991b42189b20
parent9791d9d7e2acede3d38cce1d64a7caf29e27ace4
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