Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2014 19:07:55 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262615 - head/sys/amd64/vmm/intel
Message-ID:  <201402281907.s1SJ7tRR035419@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Feb 28 19:07:55 2014
New Revision: 262615
URL: http://svnweb.freebsd.org/changeset/base/262615

Log:
  Workaround an apparent bug in VMWare Fusion's nested VT support where it
  triggers a VM exit with the exit reason of an external interrupt but
  without a valid interrupt set in the exit interrupt information.
  
  Tested by:	Michael Dexter
  Reviewed by:	neel
  MFC after:	1 week

Modified:
  head/sys/amd64/vmm/intel/vmx.c

Modified: head/sys/amd64/vmm/intel/vmx.c
==============================================================================
--- head/sys/amd64/vmm/intel/vmx.c	Fri Feb 28 18:29:09 2014	(r262614)
+++ head/sys/amd64/vmm/intel/vmx.c	Fri Feb 28 19:07:55 2014	(r262615)
@@ -1827,6 +1827,13 @@ vmx_exit_process(struct vmx *vmx, int vc
 		 * this virtual interrupt during the subsequent VM enter.
 		 */
 		intr_info = vmcs_read(VMCS_EXIT_INTR_INFO);
+
+		/*
+		 * XXX: Ignore this exit if VMCS_INTR_VALID is not set.
+		 * This appears to be a bug in VMWare Fusion?
+		 */
+		if (!(intr_info & VMCS_INTR_VALID))
+			return (1);
 		KASSERT((intr_info & VMCS_INTR_VALID) != 0 &&
 		    (intr_info & VMCS_INTR_T_MASK) == VMCS_INTR_T_HWINTR,
 		    ("VM exit interruption info invalid: %#x", intr_info));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402281907.s1SJ7tRR035419>