KVM: x86: Replace cpu_dirty_logging_count with nr_memslots_dirty_logging
authorDavid Matlack <dmatlack@google.com>
Thu, 5 Jan 2023 21:43:03 +0000 (13:43 -0800)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:05:19 +0000 (10:05 -0800)
commitee661d8ea94e11b3452cd27c301241f2cfa95fca
treef1626cb014d68026e3f3718d029cda100b11396f
parent6213b701a9df047242e69672f56eba62ba0e2d8a
KVM: x86: Replace cpu_dirty_logging_count with nr_memslots_dirty_logging

Drop cpu_dirty_logging_count in favor of nr_memslots_dirty_logging.
Both fields count the number of memslots that have dirty-logging enabled,
with the only difference being that cpu_dirty_logging_count is only
incremented when using PML. So while nr_memslots_dirty_logging is not a
direct replacement for cpu_dirty_logging_count, it can be combined with
enable_pml to get the same information.

Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20230105214303.2919415-1-dmatlack@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c