OpenCloudOS-Kernel/arch/x86/kvm/mmu
Ben Gardon 8f79b06495 kvm: mmu: Separate generating and setting mmio ptes
Separate the functions for generating MMIO page table entries from the
function that inserts them into the paging structure. This refactoring
will facilitate changes to the MMU sychronization model to use atomic
compare / exchanges (which are not guaranteed to succeed) instead of a
monolithic MMU lock.

No functional change expected.

Tested by running kvm-unit-tests on an Intel Haswell machine. This
commit introduced no new failures.

Signed-off-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-02-05 15:54:07 +01:00
..
mmu.c kvm: mmu: Separate generating and setting mmio ptes 2020-02-05 15:54:07 +01:00
page_track.c KVM: x86: create mmu/ subdirectory 2019-11-21 12:03:50 +01:00
paging_tmpl.h KVM: x86/mmu: Fold max_mapping_level() into kvm_mmu_hugepage_adjust() 2020-01-27 20:00:08 +01:00