|
@@ -8447,7 +8447,6 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
|
|
|
|
|
|
raw_spin_lock_init(&kvm->arch.tsc_write_lock);
|
|
|
mutex_init(&kvm->arch.apic_map_lock);
|
|
|
- mutex_init(&kvm->arch.hyperv.hv_lock);
|
|
|
spin_lock_init(&kvm->arch.pvclock_gtod_sync_lock);
|
|
|
|
|
|
kvm->arch.kvmclock_offset = -ktime_get_boot_ns();
|
|
@@ -8456,6 +8455,7 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
|
|
|
INIT_DELAYED_WORK(&kvm->arch.kvmclock_update_work, kvmclock_update_fn);
|
|
|
INIT_DELAYED_WORK(&kvm->arch.kvmclock_sync_work, kvmclock_sync_fn);
|
|
|
|
|
|
+ kvm_hv_init_vm(kvm);
|
|
|
kvm_page_track_init(kvm);
|
|
|
kvm_mmu_init_vm(kvm);
|
|
|
|
|
@@ -8586,6 +8586,7 @@ void kvm_arch_destroy_vm(struct kvm *kvm)
|
|
|
kvfree(rcu_dereference_check(kvm->arch.apic_map, 1));
|
|
|
kvm_mmu_uninit_vm(kvm);
|
|
|
kvm_page_track_cleanup(kvm);
|
|
|
+ kvm_hv_destroy_vm(kvm);
|
|
|
}
|
|
|
|
|
|
void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free,
|