Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2012 03:03:38 +0000 (UTC)
From:      Neel Natu <neel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r242334 - in projects/bhyve/sys: dev/pci kern
Message-ID:  <201210300303.q9U33cER000529@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: neel
Date: Tue Oct 30 03:03:37 2012
New Revision: 242334
URL: http://svn.freebsd.org/changeset/base/242334

Log:
  Teach FreeBSD to detect that it is a guest running inside BHyVe.
  
  Reviewed by:	grehan
  Obtained from:	NetApp

Modified:
  projects/bhyve/sys/dev/pci/pci.c
  projects/bhyve/sys/kern/subr_param.c

Modified: projects/bhyve/sys/dev/pci/pci.c
==============================================================================
--- projects/bhyve/sys/dev/pci/pci.c	Tue Oct 30 01:52:49 2012	(r242333)
+++ projects/bhyve/sys/dev/pci/pci.c	Tue Oct 30 03:03:37 2012	(r242334)
@@ -244,6 +244,7 @@ static const struct pci_quirk const pci_
 	 * but support MSI just fine.  QEMU uses the Intel 82440.
 	 */
 	{ 0x12378086, PCI_QUIRK_ENABLE_MSI_VM,	0,	0 },
+	{ 0x12751275, PCI_QUIRK_ENABLE_MSI_VM,	0, 	0 },	/* BHyVe */
 
 	/*
 	 * HPET MMIO base address may appear in Bar1 for AMD SB600 SMBus

Modified: projects/bhyve/sys/kern/subr_param.c
==============================================================================
--- projects/bhyve/sys/kern/subr_param.c	Tue Oct 30 01:52:49 2012	(r242333)
+++ projects/bhyve/sys/kern/subr_param.c	Tue Oct 30 03:03:37 2012	(r242334)
@@ -157,6 +157,7 @@ static const char *const vm_bnames[] = {
 	"Plex86",			/* Plex86 */
 	"Bochs",			/* Bochs */
 	"Xen",				/* Xen */
+	"BHYVE",			/* BHyVe */
 	NULL
 };
 



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