KVM: x86: introduce linear_{read,write}_system
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Jun 2018 14:43:02 +0000 (16:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Jun 2018 13:06:15 +0000 (15:06 +0200)
commit79367a65743975e5cac8d24d08eccc7fdae832b0
tree1fc7cabb9c83f369b23d0788f0f6449bd77fca52
parent727ba748e110b4de50d142edca9d6a9b7e6111d8
KVM: x86: introduce linear_{read,write}_system

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>
arch/x86/kvm/emulate.c