MICROVM.common revision 1.2
1# $NetBSD: MICROVM.common,v 1.2 2025/05/06 04:34:58 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# Print kernel boot time
69options		BOOTCYCLETIME
70
71#
72# Device configuration
73#
74
75# ACPI will be used if present. If not it will fall back to MPBIOS
76options 	MPBIOS			# configure CPUs and APICs using MPBIOS
77# Provide bug-for-bug compatibility with Linux in MP Table searching
78# and parsing.  Firecracker relies on these bugs.
79options		MPTABLE_LINUX_BUG_COMPAT
80
81#pci*	at mainbus? bus ?
82#acpi0	at mainbus0
83
84# ISA bus support
85isa0	at mainbus?
86
87# ISA serial interfaces
88com0	at isa? port 0x3f8 irq 4	# Standard PC serial ports
89
90# Virtual bus for non-PCI devices
91pv* at pvbus?
92
93## Virtio devices
94# Use MMIO by default
95virtio* at pv?
96#virtio* at acpi?
97#virtio* at pci? dev ? function ?	# Virtio PCI device
98
99include "dev/virtio/virtio.config"
100no viomb* at virtio?			# XXX ?
101no vioscsi* at virtio?			# XXX ?
102
103pseudo-device	md			# memory disk device (ramdisk)
104#options 	MEMORY_DISK_HOOKS	# enable md specific hooks
105#options 	MEMORY_DISK_DYNAMIC	# enable dynamic resizing
106#
107pseudo-device	vnd			# disk-like interface to files
108#options 	VND_COMPRESSION		# compressed vnd(4)
109
110## network pseudo-devices
111pseudo-device	bpfilter		# Berkeley packet filter
112pseudo-device	loop			# network loopback
113
114## miscellaneous pseudo-devices
115pseudo-device	pty			# pseudo-terminals
116# userland interface to drivers, including autoconf and properties retrieval
117pseudo-device	drvctl
118
119file-system	PUFFS
120pseudo-device	putter
121