Skip to contentSkip to conversation

x86: vmx: actually allocate io_bitmap_b

PATCH New Peter Feiner 1 participant 1 message Feb 22, 2016 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: vmx: actually allocate io_bitmap_b

Test would run and pass with io_bitmap_b = 0.

I discovered the problem while developing a new test. I expected to get an 'Unhandled cpu exception 14' message but the test VM rebooted instead. I suspect it hit a triple fault but I didn't debug further.

---
 x86/vmx_tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/vmx_tests.c +1 -1
index 451fdd7..bb65c06 100644
@@ -566,7 +566,7 @@ static int iobmp_init()
 	u32 ctrl_cpu0;
 
 	io_bitmap_a = alloc_page();
-	io_bitmap_a = alloc_page();
+	io_bitmap_b = alloc_page();
 	memset(io_bitmap_a, 0x0, PAGE_SIZE);
 	memset(io_bitmap_b, 0x0, PAGE_SIZE);
 	ctrl_cpu0 = vmcs_read(CPU_EXEC_CTRL0);
Signature · 1 line
2.7.0.rc3.207.g0ac5344