]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5bbe4db4b6fd492a6013313b9ebab11697cd62e8
treef7ac33a72d71c0c37e60e927669d5f84a24814d5
parent274cf938f0e8a9e80f3aec43640d727af1ad88f8
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