summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2012-10-30 03:03:37 +0000
committerneel <neel@FreeBSD.org>2012-10-30 03:03:37 +0000
commit55bf9997b92988e5555ae278f82221fb9e0f2291 (patch)
treeb19b48f972f249ac4f12c6018f0402be78d55bd0
parentaee862ac3fd36264249b7160eaecaeacab119ac3 (diff)
downloadFreeBSD-src-55bf9997b92988e5555ae278f82221fb9e0f2291.zip
FreeBSD-src-55bf9997b92988e5555ae278f82221fb9e0f2291.tar.gz
Teach FreeBSD to detect that it is a guest running inside BHyVe.
Reviewed by: grehan Obtained from: NetApp
-rw-r--r--sys/dev/pci/pci.c1
-rw-r--r--sys/kern/subr_param.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 6503421..a6c6238 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -244,6 +244,7 @@ static const struct pci_quirk const pci_quirks[] = {
* 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
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index 8c13336..0f72f2f 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -157,6 +157,7 @@ static const char *const vm_bnames[] = {
"Plex86", /* Plex86 */
"Bochs", /* Bochs */
"Xen", /* Xen */
+ "BHYVE", /* BHyVe */
NULL
};
OpenPOWER on IntegriCloud