Subject: custom kernel (from NetBSD one)
To: NetBSD/xen <port-xen@netbsd.org>
From: Joel CARNAT <joel@carnat.net>
List: port-xen
Date: 05/07/2005 18:07:16
--envbJBWh7q8WU6mo
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

just booting XEN0 (from netbsd-3 src) I see there is no ACPI nor
CardBus support. As I have a laptop with bad APM issues and atheros
wifi cardbus for connection, I feel a bit disapointed ;)

I tried to take my NetBSD kernel and add the diffs from GENERIC vs
XEN0 but this does not work. First try said :
ATHERIA.XEN0:262: ioapic*: unknown device `ioapic'
ATHERIA.XEN0:290: acpi0: unknown device `acpi'
ATHERIA.XEN0:297: acpiacad*: unknown device `acpiacad'
ATHERIA.XEN0:298: acpibat*: unknown device `acpibat'
ATHERIA.XEN0:299: acpibut*: unknown device `acpibut'
ATHERIA.XEN0:300: acpiec*: unknown device `acpiec'
ATHERIA.XEN0:301: acpilid*: unknown device `acpilid'
ATHERIA.XEN0:302: acpitz*: unknown device `acpitz'
ATHERIA.XEN0:305: com* at acpi?: `acpi' unknown
=2E.. blabla

Then I uncommented "include 	"arch/i386/conf/std.i386"" and got :
=2E./../../../arch/xen/conf/std.xen:6: syntax error
=2E./../../../arch/xen/conf/std.xen:8: already have options `EXEC_AOUT=3D1'
=2E./../../../arch/xen/conf/std.xen:9: already have options `EXEC_ELF32=3D1'
=2E./../../../arch/xen/conf/std.xen:10: already have options `EXEC_SCRIPT=
=3D1'
=2E./../../../arch/xen/conf/std.xen:12: already have options `INET6_MD_CKSU=
M=3D1'
ATHERIA.XEN0:1225: hypervisor*: unknown device `hypervisor'
=2E.. blabla

The diff between NetBSD and Xen kernel are :
-(ptijo@atheria)-(NetBSD 3.0_BETA)-(0 jobs)-(Sat May 07)-
-(17:58)-(/usr/src/sys/arch/i386/conf)- diff -u2 ATHERIA ATHERIA.XEN0=20
--- ATHERIA     2005-05-07 14:47:07.000000000 +0200
+++ ATHERIA.XEN0        2005-05-07 18:04:53.000000000 +0200
@@ -6,4 +6,5 @@
=20
 include        "arch/i386/conf/std.i386"
+include                "arch/xen/conf/std.xen"
=20
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
@@ -1220,2 +1221,11 @@
 pseudo-device  wsfont
 pseudo-device  ksyms                   # /dev/ksyms
+
+# xen
+hypervisor*    at mainbus?             # Xen hypervisor
+npx0           at hypervisor?          # x86 math coprocessor
+xencons*       at hypervisor?          # Xen virtual console
+pci*           at hypervisor? bus ?
+#xen pseudo-devices
+pseudo-device  xenevt
+

So,

1. is there ACPI and/or cardbus support on Xen (domain0) ?
2. how to build a kernel with support for this ?
3. better add NetBSD drivers ref to XEN0 kernel template or the contrary ?

TIA,
	Jo
--=20
,- This mail runs ------.
`--------- NetBSD/i386 -'

--envbJBWh7q8WU6mo
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFCfOe00/VH7L7F7Y4RAkSAAJ9AFm1YAMsk1ubTTOQ2M5Vkcsgl9QCeIgcI
C5CzkGfO3Gmi49NY7wbkyaM=
=dn2B
-----END PGP SIGNATURE-----

--envbJBWh7q8WU6mo--