From 6fdc57357e7b2d1f1c659aa95b09d76d30b1eb62 Mon Sep 17 00:00:00 2001 From: Ruslan Bukin Date: Tue, 12 Jun 2018 17:55:40 +0000 Subject: [PATCH] Include VirtIO devices to the GENERIC configuration file. These are now available in QEMU/RISC-V. Sponsored by: DARPA, AFRL --- sys/riscv/conf/GENERIC | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/riscv/conf/GENERIC b/sys/riscv/conf/GENERIC index b006ae1a009a..e4138f9182a6 100644 --- a/sys/riscv/conf/GENERIC +++ b/sys/riscv/conf/GENERIC @@ -81,12 +81,22 @@ 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. options KDB_TRACE # Print a stack trace for a panic.