|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Does xen has driver for i2c / spi / gpio pin ?
On 8/5/20 7:05 AM, AshishKumar Mishra wrote: In Xen, there's typically one or more domains that have at least some hardware drivers. Traditionally the "dom0" is the only domain with access to hardware, though there are also driver domains https://wiki.xenproject.org/wiki/Driver_Domain. Then there are unprivileged guest domains that do not talk directly to hardware. The drivers you're talking about in 1) are to provide a paravirtualized interface to the unprivileged guest domains. See https://wiki.xenproject.org/wiki/Xen_Networking for an example. The dom0 is the default privileged domain. Otherwise, this may help explain how to pass through hardware to other domains that are not the dom0: https://xenbits.xen.org/docs/4.14-testing/misc/arm/passthrough.txtIf you only need to control hardware without sharing it between domains, well-behaved drivers should Just Work. If instead you need shared use of a resource that doesn't already have a paravirtualized driver, I would probably look at doing something custom via https://xenbits.xen.org/docs/4.14-testing/man/xen-pv-channel.7.html or the under documented https://www.cs.uic.edu/~xzhang/vchan/ --Sarah
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |