Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80868
b: refs/heads/master
c: 97db56c
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed Jan 30, 2008
1 parent f990270 commit c2e5f13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75e68e607896c84310dee37c783c45220e56ce8c
refs/heads/master: 97db56ce6cc2a0766b536cc227a1da20acc5d82f
14 changes: 6 additions & 8 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -2187,12 +2187,6 @@ int kvm_arch_init(void *opaque)
int r;
struct kvm_x86_ops *ops = (struct kvm_x86_ops *)opaque;

r = kvm_mmu_module_init();
if (r)
goto out_fail;

kvm_init_msr_list();

if (kvm_x86_ops) {
printk(KERN_ERR "kvm: already loaded the other module\n");
r = -EEXIST;
Expand All @@ -2210,13 +2204,17 @@ int kvm_arch_init(void *opaque)
goto out;
}

r = kvm_mmu_module_init();
if (r)
goto out;

kvm_init_msr_list();

kvm_x86_ops = ops;
kvm_mmu_set_nonpresent_ptes(0ull, 0ull);
return 0;

out:
kvm_mmu_module_exit();
out_fail:
return r;
}

Expand Down

0 comments on commit c2e5f13

Please sign in to comment.