Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2018 17:55:41 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335008 - head/sys/riscv/conf
Message-ID:  <201806121755.w5CHtfd3035197@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Tue Jun 12 17:55:40 2018
New Revision: 335008
URL: https://svnweb.freebsd.org/changeset/base/335008

Log:
  Include VirtIO devices to the GENERIC configuration file.
  
  These are now available in QEMU/RISC-V.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/riscv/conf/GENERIC

Modified: head/sys/riscv/conf/GENERIC
==============================================================================
--- head/sys/riscv/conf/GENERIC	Tue Jun 12 17:45:15 2018	(r335007)
+++ head/sys/riscv/conf/GENERIC	Tue Jun 12 17:55:40 2018	(r335008)
@@ -81,11 +81,21 @@ options 	INTRNG
 # RISC-V SBI console
 device		rcons
 
+# VirtIO support
+device		virtio			# Generic VirtIO bus (required)
+device		virtio_pci		# VirtIO PCI device
+device		vtnet			# VirtIO Ethernet device
+device		virtio_blk		# VirtIO Block device
+device		virtio_mmio		# VirtIO MMIO bus
+
 # Uncomment for memory disk
 # options 	MD_ROOT
 # options 	MD_ROOT_SIZE=32768	# 32MB ram disk
 # makeoptions	MFS_IMAGE=/path/to/img
 # options 	ROOTDEVNAME=\"ufs:/dev/md0\"
+
+# Uncomment for virtio block device
+# options 	ROOTDEVNAME=\"ufs:/dev/vtbd0\"
 
 # Debugging support.  Always need this:
 options 	KDB			# Enable kernel debugger support.



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