Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315860
b: refs/heads/master
c: 2106a54
h: refs/heads/master
v: v3
  • Loading branch information
Guo Chao authored and Marcelo Tosatti committed Jul 3, 2012
1 parent 1bf9650 commit 71112d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: f9808b7fd422b965cea52e05ba470e0a473c53d3
refs/heads/master: 2106a548122ef0557dc51eae4f3f1a538cebfa79
16 changes: 7 additions & 9 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -7290,23 +7290,21 @@ static int __init vmx_init(void)
if (!vmx_io_bitmap_a)
return -ENOMEM;

r = -ENOMEM;

vmx_io_bitmap_b = (unsigned long *)__get_free_page(GFP_KERNEL);
if (!vmx_io_bitmap_b) {
r = -ENOMEM;
if (!vmx_io_bitmap_b)
goto out;
}

vmx_msr_bitmap_legacy = (unsigned long *)__get_free_page(GFP_KERNEL);
if (!vmx_msr_bitmap_legacy) {
r = -ENOMEM;
if (!vmx_msr_bitmap_legacy)
goto out1;
}


vmx_msr_bitmap_longmode = (unsigned long *)__get_free_page(GFP_KERNEL);
if (!vmx_msr_bitmap_longmode) {
r = -ENOMEM;
if (!vmx_msr_bitmap_longmode)
goto out2;
}


/*
* Allow direct access to the PC debug port (it is often used for I/O
Expand Down

0 comments on commit 71112d4

Please sign in to comment.