[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] Mirage and sensor data
On Sun, Aug 17, 2014 at 6:35 PM, Phil Tomson <philtomson@xxxxxxxxx> wrote:
On a Xen host, there's always something in dom0. Xen doesn't care what OS is running in dom0, but only certain OSes have the necessary Xen dom0 support available. Linux's Xen support is very good. You could create a cut down Linux configuration by removing all the drivers you don't need, and creating a trivial userspace (perhaps something based on an embedded Linux distro?) This is the path of least resistance for now.
One day it would be interesting to create a minimal Mirage-based dom0 kernel. I don't know what state the hardware is in when dom0 starts booting -- clearly the console works already. On Intel/AMD you'd "just" need to initialise the hardware to allow PCI devices to be passed-through to driver domains (running Linux/FreeBSD). How hard could it be? ;-)
Â
A driver domain can have any kernel (Linux, FreeBSD, Mirage etc) but it needs a device driver for the physical hardware. If you wanted to run the same software on lots of different bits of hardware (say generic PCs or laptops) then you'll need a large number of drivers -- Linux would be a good choice for that. I doubt Mirage will ever rival Linux's physical hardware support :-) However if you have fixed hardware in mind then it's up to you.
I think Anil's suggestion of accessing GPIO in dom0 and serving requests over vchan is a good place to start. It would be worth asking on xen-devel whether a driver domain could be given access to the GPIO hardware-- I don't know what the possibilities are on ARM devices. On Intel/AMD driver-domains operate at the granularity of PCI devices. It's possible to "pass-through" specific PCI devices to driver domains, where they can perform DMA to virtual memory addresses handled by the IOMMU. I'm optimistic about ARM, since they seem to have done a nice job of their hardware virtualisation support generally.
Cheers, Dave Â
Dave Scott _______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |