aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 9cbfc0698118..06925b4bcc27 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -6031,8 +6031,11 @@ void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu)
6031 free_page((unsigned long)vcpu->arch.pio_data); 6031 free_page((unsigned long)vcpu->arch.pio_data);
6032} 6032}
6033 6033
6034int kvm_arch_init_vm(struct kvm *kvm) 6034int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
6035{ 6035{
6036 if (type)
6037 return -EINVAL;
6038
6036 INIT_LIST_HEAD(&kvm->arch.active_mmu_pages); 6039 INIT_LIST_HEAD(&kvm->arch.active_mmu_pages);
6037 INIT_LIST_HEAD(&kvm->arch.assigned_dev_head); 6040 INIT_LIST_HEAD(&kvm->arch.assigned_dev_head);
6038 6041