KVM: Support vCPU-based gfn->hva cache
authorCao, Lei <Lei.Cao@stratus.com>
Fri, 3 Feb 2017 20:04:35 +0000 (20:04 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Feb 2017 17:42:46 +0000 (18:42 +0100)
commitbbd6411513aa8ef3ea02abab61318daf87c1af1e
treef7ac33a72d71c0c37e60e927669d5f84a24814d5
parent4bd518f1598d41985eb933aa73bac2605b70984c
KVM: Support vCPU-based gfn->hva cache

Provide versions of struct gfn_to_hva_cache functions that
take vcpu as a parameter instead of struct kvm.  The existing functions
are not needed anymore, so delete them.  This allows dirty pages to
be logged in the vcpu dirty ring, instead of the global dirty ring,
for ring-based dirty memory tracking.

Signed-off-by: Lei Cao <lei.cao@stratus.com>
Message-Id: <CY1PR08MB19929BD2AC47A291FD680E83F04F0@CY1PR08MB1992.namprd08.prod.outlook.com>
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c