]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Move MMU's PML logic to common code
authorSean Christopherson <seanjc@google.com>
Sat, 13 Feb 2021 00:50:10 +0000 (16:50 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Feb 2021 08:08:34 +0000 (03:08 -0500)
commit6634991d35bc2c58f76d1834ff56aa1dd1f4f604
tree633c3b3b51e00239268aea9873d5687ca631df2a
parentfe5c02e90ef74a754bad499aa3879e56ab614979
KVM: x86: Move MMU's PML logic to common code

Drop the facade of KVM's PML logic being vendor specific and move the
bits that aren't truly VMX specific into common x86 code.  The MMU logic
for dealing with PML is tightly coupled to the feature and to VMX's
implementation, bouncing through kvm_x86_ops obfuscates the code without
providing any meaningful separation of concerns or encapsulation.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210213005015.1651772-10-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm-x86-ops.h
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c