* Is there a way to get the current PV domain's UUID? @ 2016-02-19 10:10 Razvan Cojocaru 2016-02-19 10:19 ` Razvan Cojocaru 2016-02-19 10:20 ` Ian Campbell 0 siblings, 2 replies; 12+ messages in thread From: Razvan Cojocaru @ 2016-02-19 10:10 UTC (permalink / raw) To: xen-devel@lists.xen.org Hello, Is there a way to get the UUID of a currently running PV domain, from within that domain? Thanks, Razvan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Is there a way to get the current PV domain's UUID? 2016-02-19 10:10 Is there a way to get the current PV domain's UUID? Razvan Cojocaru @ 2016-02-19 10:19 ` Razvan Cojocaru 2016-02-19 10:20 ` Ian Campbell 1 sibling, 0 replies; 12+ messages in thread From: Razvan Cojocaru @ 2016-02-19 10:19 UTC (permalink / raw) To: xen-devel@lists.xen.org > Is there a way to get the UUID of a currently running PV domain, from > within that domain? Found it, in case it helps someone else: http://old-list-archives.xenproject.org/xen-devel/2006-05/msg01127.html Thanks, Razvan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Is there a way to get the current PV domain's UUID? 2016-02-19 10:10 Is there a way to get the current PV domain's UUID? Razvan Cojocaru 2016-02-19 10:19 ` Razvan Cojocaru @ 2016-02-19 10:20 ` Ian Campbell 2016-02-19 10:44 ` Razvan Cojocaru 2016-02-19 14:32 ` [PATCH] version: Document guest_handle Konrad Rzeszutek Wilk 1 sibling, 2 replies; 12+ messages in thread From: Ian Campbell @ 2016-02-19 10:20 UTC (permalink / raw) To: Razvan Cojocaru, xen-devel@lists.xen.org On Fri, 2016-02-19 at 12:10 +0200, Razvan Cojocaru wrote: > Hello, > > Is there a way to get the UUID of a currently running PV domain, from > within that domain? The type associated with the UUID in the xen public headers is "xen_domain_handle_t" which is presumably why grepping didn't find it for you. Look for XENVER_guest_handle. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Is there a way to get the current PV domain's UUID? 2016-02-19 10:20 ` Ian Campbell @ 2016-02-19 10:44 ` Razvan Cojocaru 2016-02-19 10:56 ` Ian Campbell 2016-02-19 14:32 ` [PATCH] version: Document guest_handle Konrad Rzeszutek Wilk 1 sibling, 1 reply; 12+ messages in thread From: Razvan Cojocaru @ 2016-02-19 10:44 UTC (permalink / raw) To: Ian Campbell, xen-devel@lists.xen.org On 02/19/2016 12:20 PM, Ian Campbell wrote: > On Fri, 2016-02-19 at 12:10 +0200, Razvan Cojocaru wrote: >> Hello, >> >> Is there a way to get the UUID of a currently running PV domain, from >> within that domain? > > The type associated with the UUID in the xen public headers is > "xen_domain_handle_t" which is presumably why grepping didn't find it for > you. > > Look for XENVER_guest_handle. Much appreciated, that's much better than the XenStore hack. Thanks, Razvan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Is there a way to get the current PV domain's UUID? 2016-02-19 10:44 ` Razvan Cojocaru @ 2016-02-19 10:56 ` Ian Campbell 0 siblings, 0 replies; 12+ messages in thread From: Ian Campbell @ 2016-02-19 10:56 UTC (permalink / raw) To: Razvan Cojocaru, xen-devel@lists.xen.org On Fri, 2016-02-19 at 12:44 +0200, Razvan Cojocaru wrote: > On 02/19/2016 12:20 PM, Ian Campbell wrote: > > On Fri, 2016-02-19 at 12:10 +0200, Razvan Cojocaru wrote: > > > Hello, > > > > > > Is there a way to get the UUID of a currently running PV domain, from > > > within that domain? > > > > The type associated with the UUID in the xen public headers is > > "xen_domain_handle_t" which is presumably why grepping didn't find it > > for > > you. > > > > Look for XENVER_guest_handle. > > Much appreciated, that's much better than the XenStore hack. BTW, under Linux this is also exposed to userspace via /sys/hypervisor/uuid Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] version: Document guest_handle 2016-02-19 10:20 ` Ian Campbell 2016-02-19 10:44 ` Razvan Cojocaru @ 2016-02-19 14:32 ` Konrad Rzeszutek Wilk 2016-02-19 14:36 ` Razvan Cojocaru ` (2 more replies) 1 sibling, 3 replies; 12+ messages in thread From: Konrad Rzeszutek Wilk @ 2016-02-19 14:32 UTC (permalink / raw) To: xen-devel, rcojocaru Cc: Keir Fraser, Ian Campbell, Ian Jackson, Tim Deegan, Jan Beulich And what it is usually used for. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> --- xen/include/public/version.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/include/public/version.h b/xen/include/public/version.h index adca602..b97fc68 100644 --- a/xen/include/public/version.h +++ b/xen/include/public/version.h @@ -79,6 +79,10 @@ typedef struct xen_feature_info xen_feature_info_t; #define XENVER_pagesize 7 /* arg == xen_domain_handle_t. */ +/* + * The toolstack fills it out for the guest consumption. Usually it is + * the UUID of the guest but can be anything. + */ #define XENVER_guest_handle 8 #define XENVER_commandline 9 -- 2.5.0 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] version: Document guest_handle 2016-02-19 14:32 ` [PATCH] version: Document guest_handle Konrad Rzeszutek Wilk @ 2016-02-19 14:36 ` Razvan Cojocaru 2016-02-19 16:21 ` Konrad Rzeszutek Wilk 2016-02-19 16:23 ` Razvan Cojocaru 2016-02-22 12:32 ` Jan Beulich 2 siblings, 1 reply; 12+ messages in thread From: Razvan Cojocaru @ 2016-02-19 14:36 UTC (permalink / raw) To: Konrad Rzeszutek Wilk, xen-devel Cc: Keir Fraser, Ian Campbell, Ian Jackson, Tim Deegan, Jan Beulich On 02/19/2016 04:32 PM, Konrad Rzeszutek Wilk wrote: > And what it is usually used for. > > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> > --- > xen/include/public/version.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/xen/include/public/version.h b/xen/include/public/version.h > index adca602..b97fc68 100644 > --- a/xen/include/public/version.h > +++ b/xen/include/public/version.h > @@ -79,6 +79,10 @@ typedef struct xen_feature_info xen_feature_info_t; > #define XENVER_pagesize 7 > > /* arg == xen_domain_handle_t. */ > +/* > + * The toolstack fills it out for the guest consumption. Usually it is > + * the UUID of the guest but can be anything. > + */ > #define XENVER_guest_handle 8 > > #define XENVER_commandline 9 I'm not a maintainer for this code, so an Ack would be meaningless, but I just wanted to say thanks for documenting this. :) Thanks, Razvan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] version: Document guest_handle 2016-02-19 14:36 ` Razvan Cojocaru @ 2016-02-19 16:21 ` Konrad Rzeszutek Wilk 0 siblings, 0 replies; 12+ messages in thread From: Konrad Rzeszutek Wilk @ 2016-02-19 16:21 UTC (permalink / raw) To: Razvan Cojocaru Cc: Keir Fraser, Ian Campbell, Tim Deegan, Ian Jackson, Jan Beulich, xen-devel On Fri, Feb 19, 2016 at 04:36:14PM +0200, Razvan Cojocaru wrote: > On 02/19/2016 04:32 PM, Konrad Rzeszutek Wilk wrote: > > And what it is usually used for. > > > > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> > > --- > > xen/include/public/version.h | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/xen/include/public/version.h b/xen/include/public/version.h > > index adca602..b97fc68 100644 > > --- a/xen/include/public/version.h > > +++ b/xen/include/public/version.h > > @@ -79,6 +79,10 @@ typedef struct xen_feature_info xen_feature_info_t; > > #define XENVER_pagesize 7 > > > > /* arg == xen_domain_handle_t. */ > > +/* > > + * The toolstack fills it out for the guest consumption. Usually it is > > + * the UUID of the guest but can be anything. > > + */ > > #define XENVER_guest_handle 8 > > > > #define XENVER_commandline 9 > > I'm not a maintainer for this code, so an Ack would be meaningless, but > I just wanted to say thanks for documenting this. :) You can always do: Reviewed-by: :-) > > > Thanks, > Razvan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] version: Document guest_handle 2016-02-19 14:32 ` [PATCH] version: Document guest_handle Konrad Rzeszutek Wilk 2016-02-19 14:36 ` Razvan Cojocaru @ 2016-02-19 16:23 ` Razvan Cojocaru 2016-02-22 12:32 ` Jan Beulich 2 siblings, 0 replies; 12+ messages in thread From: Razvan Cojocaru @ 2016-02-19 16:23 UTC (permalink / raw) To: Konrad Rzeszutek Wilk, xen-devel Cc: Keir Fraser, Ian Campbell, Ian Jackson, Tim Deegan, Jan Beulich On 02/19/2016 04:32 PM, Konrad Rzeszutek Wilk wrote: > And what it is usually used for. > > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> > --- > xen/include/public/version.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/xen/include/public/version.h b/xen/include/public/version.h > index adca602..b97fc68 100644 > --- a/xen/include/public/version.h > +++ b/xen/include/public/version.h > @@ -79,6 +79,10 @@ typedef struct xen_feature_info xen_feature_info_t; > #define XENVER_pagesize 7 > > /* arg == xen_domain_handle_t. */ > +/* > + * The toolstack fills it out for the guest consumption. Usually it is > + * the UUID of the guest but can be anything. > + */ > #define XENVER_guest_handle 8 > > #define XENVER_commandline 9 Reviewed-by: Razvan Cojocaru <rcojocaru@bitdefender.com> Thanks, Razvan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] version: Document guest_handle 2016-02-19 14:32 ` [PATCH] version: Document guest_handle Konrad Rzeszutek Wilk 2016-02-19 14:36 ` Razvan Cojocaru 2016-02-19 16:23 ` Razvan Cojocaru @ 2016-02-22 12:32 ` Jan Beulich 2016-02-23 19:04 ` Konrad Rzeszutek Wilk 2 siblings, 1 reply; 12+ messages in thread From: Jan Beulich @ 2016-02-22 12:32 UTC (permalink / raw) To: Konrad Rzeszutek Wilk Cc: Keir Fraser, Ian Campbell, rcojocaru, Tim Deegan, Ian Jackson, xen-devel >>> On 19.02.16 at 15:32, <konrad@kernel.org> wrote: > --- a/xen/include/public/version.h > +++ b/xen/include/public/version.h > @@ -79,6 +79,10 @@ typedef struct xen_feature_info xen_feature_info_t; > #define XENVER_pagesize 7 > > /* arg == xen_domain_handle_t. */ > +/* > + * The toolstack fills it out for the guest consumption. Usually it is > + * the UUID of the guest but can be anything. > + */ > #define XENVER_guest_handle 8 Generally fine, but I'm not overly happy with the wording. I'd prefer if it was made slightly less vague this is meant to be the UUID. Maybe "The toolstack fills it out for guest consumption. It is intended to hold the UUID of the guest"? Jan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] version: Document guest_handle 2016-02-22 12:32 ` Jan Beulich @ 2016-02-23 19:04 ` Konrad Rzeszutek Wilk 2016-02-24 7:46 ` Jan Beulich 0 siblings, 1 reply; 12+ messages in thread From: Konrad Rzeszutek Wilk @ 2016-02-23 19:04 UTC (permalink / raw) To: Jan Beulich Cc: Keir Fraser, Ian Campbell, rcojocaru, Tim Deegan, Ian Jackson, xen-devel [-- Attachment #1: Type: text/plain, Size: 1881 bytes --] On Mon, Feb 22, 2016 at 05:32:53AM -0700, Jan Beulich wrote: > >>> On 19.02.16 at 15:32, <konrad@kernel.org> wrote: > > --- a/xen/include/public/version.h > > +++ b/xen/include/public/version.h > > @@ -79,6 +79,10 @@ typedef struct xen_feature_info xen_feature_info_t; > > #define XENVER_pagesize 7 > > > > /* arg == xen_domain_handle_t. */ > > +/* > > + * The toolstack fills it out for the guest consumption. Usually it is > > + * the UUID of the guest but can be anything. > > + */ > > #define XENVER_guest_handle 8 > > Generally fine, but I'm not overly happy with the wording. I'd > prefer if it was made slightly less vague this is meant to be the > UUID. Maybe "The toolstack fills it out for guest consumption. It > is intended to hold the UUID of the guest"? > > Jan > Attached as well: >From 7da6d169835acb4aa93bfa48b1ae6b8e198f8e5f Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Date: Fri, 19 Feb 2016 09:26:02 -0500 Subject: [PATCH] version: Document guest_handle And what it is usually used for. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Razvan Cojocaru <rcojocaru@bitdefender.com> --- v2: Reword per Jan's suggestion. --- xen/include/public/version.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xen/include/public/version.h b/xen/include/public/version.h index adca602..5e6a7ea 100644 --- a/xen/include/public/version.h +++ b/xen/include/public/version.h @@ -78,7 +78,11 @@ typedef struct xen_feature_info xen_feature_info_t; /* arg == NULL; returns host memory page size. */ #define XENVER_pagesize 7 -/* arg == xen_domain_handle_t. */ +/* arg == xen_domain_handle_t. + * + * The toolstack fills it out for guest consumption. It is intended to hold + * the UUID of the guest. + */ #define XENVER_guest_handle 8 #define XENVER_commandline 9 -- 2.1.0 [-- Attachment #2: 0001-version-Document-guest_handle.patch --] [-- Type: text/plain, Size: 1075 bytes --] >From 7da6d169835acb4aa93bfa48b1ae6b8e198f8e5f Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Date: Fri, 19 Feb 2016 09:26:02 -0500 Subject: [PATCH] version: Document guest_handle And what it is usually used for. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Razvan Cojocaru <rcojocaru@bitdefender.com> --- v2: Reword per Jan's suggestion. --- xen/include/public/version.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xen/include/public/version.h b/xen/include/public/version.h index adca602..5e6a7ea 100644 --- a/xen/include/public/version.h +++ b/xen/include/public/version.h @@ -78,7 +78,11 @@ typedef struct xen_feature_info xen_feature_info_t; /* arg == NULL; returns host memory page size. */ #define XENVER_pagesize 7 -/* arg == xen_domain_handle_t. */ +/* arg == xen_domain_handle_t. + * + * The toolstack fills it out for guest consumption. It is intended to hold + * the UUID of the guest. + */ #define XENVER_guest_handle 8 #define XENVER_commandline 9 -- 2.1.0 [-- Attachment #3: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] version: Document guest_handle 2016-02-23 19:04 ` Konrad Rzeszutek Wilk @ 2016-02-24 7:46 ` Jan Beulich 0 siblings, 0 replies; 12+ messages in thread From: Jan Beulich @ 2016-02-24 7:46 UTC (permalink / raw) To: Konrad Rzeszutek Wilk Cc: Keir Fraser, Ian Campbell, rcojocaru, Tim Deegan, Ian Jackson, xen-devel >>> On 23.02.16 at 20:04, <konrad.wilk@oracle.com> wrote: > From 7da6d169835acb4aa93bfa48b1ae6b8e198f8e5f Mon Sep 17 00:00:00 2001 > From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> > Date: Fri, 19 Feb 2016 09:26:02 -0500 > Subject: [PATCH] version: Document guest_handle > > And what it is usually used for. > > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> > Reviewed-by: Razvan Cojocaru <rcojocaru@bitdefender.com> > > --- > v2: Reword per Jan's suggestion. Acked-by: Jan Beulich <jbeulich@suse.com> ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2016-02-24 7:46 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-02-19 10:10 Is there a way to get the current PV domain's UUID? Razvan Cojocaru 2016-02-19 10:19 ` Razvan Cojocaru 2016-02-19 10:20 ` Ian Campbell 2016-02-19 10:44 ` Razvan Cojocaru 2016-02-19 10:56 ` Ian Campbell 2016-02-19 14:32 ` [PATCH] version: Document guest_handle Konrad Rzeszutek Wilk 2016-02-19 14:36 ` Razvan Cojocaru 2016-02-19 16:21 ` Konrad Rzeszutek Wilk 2016-02-19 16:23 ` Razvan Cojocaru 2016-02-22 12:32 ` Jan Beulich 2016-02-23 19:04 ` Konrad Rzeszutek Wilk 2016-02-24 7:46 ` Jan Beulich
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).