From owner-freebsd-virtualization@FreeBSD.ORG Sun Aug 4 16:20:52 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 21BE42EB for ; Sun, 4 Aug 2013 16:20:52 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: from mail-ve0-x230.google.com (mail-ve0-x230.google.com [IPv6:2607:f8b0:400c:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D77DC2E60 for ; Sun, 4 Aug 2013 16:20:51 +0000 (UTC) Received: by mail-ve0-f176.google.com with SMTP id b10so2263482vea.21 for ; Sun, 04 Aug 2013 09:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=y/xySalS2YsQ9/GXCP3Znda5856P/gm/7X0RuuSQBWQ=; b=BuMBo9Td/ObYWNwid+L3mWvYjOkeOiE5SzOywvmcZiKrpHt2NA5/3Oho9P7A3tGDVx nkFAkUqcv2BZka1fv8pWNPgPv8IAbxFECme6BEmhsbIrMyejhyvhHv8den7e3xmbPisS PR+v+UFFB89vIb2aeTlZl9M8NiZQPPp1ll1y29MT2hOuLNvec0fQUcLUi/NE3zmuYb7E Qp2XNdf7Izk8dKCeBDTY8/ZrzIHjb3OFSJAfH5Y6V8FzicbxS/fzbC0XN0ZUz886/bbN E58CYemZP2NIdvO9wNW5L1aqydsIVt3IGKFm3Yu3tDgCC7u4UvrQ8gXL/Y4dqJ9ESHwD 8RIA== MIME-Version: 1.0 X-Received: by 10.52.165.239 with SMTP id zb15mr3900094vdb.44.1375633250921; Sun, 04 Aug 2013 09:20:50 -0700 (PDT) Received: by 10.220.96.78 with HTTP; Sun, 4 Aug 2013 09:20:50 -0700 (PDT) Date: Sun, 4 Aug 2013 12:20:50 -0400 Message-ID: Subject: PCI passthrough support for VGA devices in VirtualBox on FreeBSD From: "Sam Fourman Jr." To: FreeBSD virtualization mailing list Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Aug 2013 16:20:52 -0000 Hello List, would anyone be able to tell me if PCI passthrough is available in Virtualbox if FreeBSD is the host? it has been available since version 4.1 http://www.virtualbox.org/manual/ch09.html#idp14053504 I know that this requires a VirtualBox extension pack, and i am not certian if FreeBSD needs one? My use case is, I want to pass through a AMD raedon PCI-E graphics card to a Linux guest. I built a FreeBSD kernel based on experimental work being done here: https://wiki.freebsd.org/AMD_GPU here are excerpts from a dmesg: info: [drm] Initialized drm 1.1.0 20060810 drmn0: on vgapci0 info: [drm] MSI enabled 1 message(s) info: [drm] RADEON_IS_PCIE info: [drm] initializing kernel modesetting (TAHITI 0x1002:0x679A 0x1462:0x2773). info: [drm] register mmio base: 0xFE700000 info: [drm] register mmio size: 262144 info: [drm] radeon_atrm_get_bios: ===> Try ATRM... info: [drm] radeon_atrm_get_bios: pci_find_class() found: 0:7:0:0, vendor=1002, device=679a info: [drm] radeon_atrm_get_bios: Get ACPI device handle info: [drm] radeon_acpi_vfct_bios: ===> Try VFCT... info: [drm] radeon_acpi_vfct_bios: Get "VFCT" ACPI table info: [drm] radeon_acpi_vfct_bios: Failed to get "VFCT" table: AE_NOT_FOUND info: [drm] igp_read_bios_from_vram: ===> Try IGP's VRAM... info: [drm] igp_read_bios_from_vram: VRAM base address: 0xc0000000 info: [drm] igp_read_bios_from_vram: Map address: 0xfffffe00c0000000 (262144 bytes) info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0x6207 info: [drm] radeon_read_bios: ===> Try PCI Expansion ROM... vga_pci_map_bios: Mapping BIOS shadow info: [drm] radeon_read_bios: Map address: 0xfffffe00000c0000 (131072 bytes) vga_pci_unmap_bios: Unmapping BIOS shadow info: [drm] ATOM BIOS: 113 drmn0: info: VRAM: 3072M 0x0000000000000000 - 0x00000000BFFFFFFF (3072M used) drmn0: info: GTT: 512M 0x00000000C0000000 - 0x00000000DFFFFFFF info: [drm] Detected VRAM RAM=3072M, BAR=256M info: [drm] RAM width 384bits DDR [TTM] Zone kernel: Available graphics memory: 16714132 kiB [TTM] Zone dma32: Available graphics memory: 2097152 kiB my hope is to use VirtualBox until Behyve supports booting linux guests Thank you for your help -- Sam Fourman Jr.