]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: pass kvm_vcpu to kvm_read_guest_virt and kvm_write_guest_virt_system
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Jun 2018 15:37:49 +0000 (17:37 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Jun 2018 13:06:28 +0000 (15:06 +0200)
commit067d4afbfe2ca5248751ee82142b5c3f9068cc0b
tree3aa7fc16c03c0205c1e08945f3553e3631ad2bd5
parentf353a1779dc70caacf5c85fd6bb166f442dd9091
KVM: x86: pass kvm_vcpu to kvm_read_guest_virt and kvm_write_guest_virt_system

Int the next patch the emulator's .read_std and .write_std callbacks will
grow another argument, which is not needed in kvm_read_guest_virt and
kvm_write_guest_virt_system's callers.  Since we have to make separate
functions, let's give the currently existing names a nicer interface, too.

Fixes: 49a3070254e6 ("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/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h