[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] How to find we are in Dom0 or DomU from a driver


I am currently using Citrix Xen6.0 Server and installed a couple of guests on it.

I am writing a PCI driver common for Dom0 and DomU.
In the driver, I need to write the code like

If I am in Dom0
Do Dom0 related ops (physical driver)
Do DomU related ops. (virtual driver)

So, How can we find out whether we are in Dom0 or DomU from the driver level.
Other than "/proc/xen/capabilities", is there any kernel function or data structure to find out this.

Petla Venkatesh

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.