From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Feiner Subject: [kvm-unit-tests PATCH] x86: vmx: actually allocate io_bitmap_b Date: Mon, 22 Feb 2016 15:35:00 -0800 Message-ID: <1456184100-30323-1-git-send-email-pfeiner@google.com> Cc: pfeiner@google.com To: kvm@vger.kernel.org, drjones@redhat.com, pbonzini@redhat.com Return-path: Received: from mail-pa0-f49.google.com ([209.85.220.49]:33786 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756221AbcBVXfJ (ORCPT ); Mon, 22 Feb 2016 18:35:09 -0500 Received: by mail-pa0-f49.google.com with SMTP id fl4so98972667pad.0 for ; Mon, 22 Feb 2016 15:35:09 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: 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. Signed-off-by: Peter Feiner --- x86/vmx_tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c index 451fdd7..bb65c06 100644 --- a/x86/vmx_tests.c +++ b/x86/vmx_tests.c @@ -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); -- 2.7.0.rc3.207.g0ac5344