MICROVM.common revision 1.1
1# $NetBSD: MICROVM.common,v 1.1 2025/03/28 05:54:49 imil Exp $
2
3include         "conf/std"      # MI standard options
4include         "arch/xen/conf/std.xenversion"
5
6options         CPU_IN_CKSUM
7options         EXEC_SCRIPT     # exec #! scripts
8options         MTRR
9options         MULTIPROCESSOR
10
11options         CHILD_MAX=1024  # 160 is too few
12options         OPEN_MAX=1024   # 128 is too few
13
14mainbus0 at root
15cpu* at mainbus?
16ioapic* at mainbus? apid ?
17
18options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
19maxusers	8		# estimated number of users
20
21options 	INSECURE	# disable kernel security levels - X needs this
22
23options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT
24
25options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
26
27# Xen PV support for PVH and HVM guests, needed for PVH boot
28options 	XENPVHVM
29options 	XEN
30hypervisor*	at mainbus?		# Xen hypervisor
31xenbus*	 	at hypervisor?		# Xen virtual bus
32xencons*	at hypervisor?		# Xen virtual console
33
34# Include NetBSD 10 compatibility
35options		COMPAT_100
36#
37# Because gcc omits the frame pointer for any -O level, the line below
38# is needed to make backtraces in DDB work.
39#
40makeoptions	COPTS="-O2 -fno-omit-frame-pointer"
41
42# File systems
43#include "conf/filesystems.config"
44file-system FFS
45file-system EXT2FS
46file-system KERNFS
47file-system MFS
48file-system TMPFS
49file-system PTYFS
50file-system MSDOSFS
51file-system PROCFS
52
53options		DKWEDGE_AUTODISCOVER
54options		DKWEDGE_METHOD_GPT
55# File system options
56# ffs
57options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
58options 	WAPBL		# File system journaling support
59
60# Networking options
61#options 	GATEWAY		# packet forwarding
62options 	INET		# IP + ICMP + TCP + UDP
63options 	INET6		# IPV6
64
65# Kernel root file system and dump configuration.
66config		netbsd	root on ? type ?
67
68#
69# Device configuration
70#
71
72# ACPI will be used if present. If not it will fall back to MPBIOS
73options 	MPBIOS			# configure CPUs and APICs using MPBIOS
74# Provide bug-for-bug compatibility with Linux in MP Table searching
75# and parsing.  Firecracker relies on these bugs.
76options		MPTABLE_LINUX_BUG_COMPAT
77
78#pci*	at mainbus? bus ?
79#acpi0	at mainbus0
80
81# ISA bus support
82isa0	at mainbus?
83
84# ISA serial interfaces
85com0	at isa? port 0x3f8 irq 4	# Standard PC serial ports
86
87# Virtual bus for non-PCI devices
88pv* at pvbus?
89
90## Virtio devices
91# Use MMIO by default
92virtio* at pv?
93#virtio* at acpi?
94#virtio* at pci? dev ? function ?	# Virtio PCI device
95
96include "dev/virtio/virtio.config"
97no viomb* at virtio?			# XXX ?
98no vioscsi* at virtio?			# XXX ?
99
100pseudo-device	md			# memory disk device (ramdisk)
101#options 	MEMORY_DISK_HOOKS	# enable md specific hooks
102#options 	MEMORY_DISK_DYNAMIC	# enable dynamic resizing
103#
104pseudo-device	vnd			# disk-like interface to files
105#options 	VND_COMPRESSION		# compressed vnd(4)
106
107## network pseudo-devices
108pseudo-device	bpfilter		# Berkeley packet filter
109pseudo-device	loop			# network loopback
110
111## miscellaneous pseudo-devices
112pseudo-device	pty			# pseudo-terminals
113# userland interface to drivers, including autoconf and properties retrieval
114pseudo-device	drvctl
115
116file-system	PUFFS
117pseudo-device	putter
118