Skip to contentSkip to conversation

Add migration support when using direct build EPT

RFC New Yulei Zhang 1 participant 1 message Aug 5, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

RFC 7/9 Add migration support when using direct build EPT

From: Yulei Zhang <[email protected]>

Make migration available in direct build ept mode whether pml enabled or not.

---
 arch/x86/include/asm/kvm_host.h |   2 +
 arch/x86/kvm/mmu/mmu.c          | 153 +++++++++++++++++++++++++++++++-
 arch/x86/kvm/x86.c              |  44 +++++----
 3 files changed, 178 insertions(+), 21 deletions(-)
arch/x86/include/asm/kvm_host.h +2 -0
index 69c946831ca7..7063b9d2cac0 100644
@@ -1329,6 +1329,8 @@ void kvm_mmu_zap_all(struct kvm *kvm);
 void kvm_mmu_invalidate_mmio_sptes(struct kvm *kvm, u64 gen);
 unsigned long kvm_mmu_calculate_default_mmu_pages(struct kvm *kvm);
 void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned long kvm_nr_mmu_pages);
+void kvm_mmu_slot_direct_build_handle_wp(struct kvm *kvm,
+					 struct kvm_memory_slot *memslot);
 
 int load_pdptrs(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, unsigned long cr3);
 bool pdptrs_changed(struct kvm_vcpu *vcpu);
arch/x86/kvm/mmu/mmu.c +150 -3

173 lines not on this page · raw message

arch/x86/kvm/x86.c +26 -18

60 lines not on this page · raw message

Signature · 1 line
2.17.1