svn commit: r242334 - in projects/bhyve/sys: dev/pci kern

Neel Natu neel at FreeBSD.org
Tue Oct 30 03:03:38 UTC 2012


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
 };
 


More information about the svn-src-projects mailing list