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

Re: [Xen-users] local domid of PV guest inside its userspace or kernel (prefered)



On Thu, Jan 19, 2017 at 10:03:02PM +0200, Michalis R wrote:
> Hi
> Is there any way to get the domid of the running PV Guest?
> For example if from dom0 I have created a guest with domain id 42, I
> need to get this domid number (not hardwired) either in guest
> userspace or guest kernel.

You can read it from xenstore, it's in the "domid" relative path. You can fetch
it from userspace by doing:

# xenstore-read domid

Roger.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
https://lists.xen.org/xen-users

 


Rackspace

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