* [PATCH] ioemu: Get guest uuid from xenstore
@ 2009-01-19 7:00 Yosuke Iwamatsu
2009-01-19 18:02 ` Ian Jackson
0 siblings, 1 reply; 7+ messages in thread
From: Yosuke Iwamatsu @ 2009-01-19 7:00 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
xenstore_get_guess_uuid() retrieves the guest uuid by using a sysctl
hypercall through libxc now, but when we use the ioemu-stubdom, the
hcall is not allowed to be invoked.
This patch makes ioemu get the guest uuid from xenstore, instead of
using libxc.
Regards,
-----------------------
Yosuke Iwamatsu
NEC Corporation
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
[-- Attachment #2: ioemu_guest_uuid.patch --]
[-- Type: all/allfiles, Size: 2643 bytes --]
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] ioemu: Get guest uuid from xenstore
2009-01-19 7:00 [PATCH] ioemu: Get guest uuid from xenstore Yosuke Iwamatsu
@ 2009-01-19 18:02 ` Ian Jackson
2009-01-19 18:16 ` Keir Fraser
0 siblings, 1 reply; 7+ messages in thread
From: Ian Jackson @ 2009-01-19 18:02 UTC (permalink / raw)
To: Yosuke Iwamatsu; +Cc: xen-devel
Yosuke Iwamatsu writes ("[Xen-devel] [PATCH] ioemu: Get guest uuid from xenstore"):
> xenstore_get_guess_uuid() retrieves the guest uuid by using a sysctl
> hypercall through libxc now, but when we use the ioemu-stubdom, the
> hcall is not allowed to be invoked.
> This patch makes ioemu get the guest uuid from xenstore, instead of
> using libxc.
I don't think this patch is safe. /local/domain/<domid>/vm is
owned by (and thus writeable by) the domain in question. We need a
trustworthy copy of this information.
Ian.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] ioemu: Get guest uuid from xenstore
2009-01-19 18:02 ` Ian Jackson
@ 2009-01-19 18:16 ` Keir Fraser
2009-01-20 2:12 ` Yosuke Iwamatsu
0 siblings, 1 reply; 7+ messages in thread
From: Keir Fraser @ 2009-01-19 18:16 UTC (permalink / raw)
To: Ian Jackson, Yosuke Iwamatsu; +Cc: xen-devel
On 19/01/2009 18:02, "Ian Jackson" <Ian.Jackson@eu.citrix.com> wrote:
> I don't think this patch is safe. /local/domain/<domid>/vm is
> owned by (and thus writeable by) the domain in question. We need a
> trustworthy copy of this information.
Perhaps worth checking with a xenstore-ls -p, or a xenstore-write attempt
within a domU, but the vm node should be owned by dom0 and read-only by the
domU. The recent xenstore permissions fixes should ensure that.
So the patch should be safe and if it's not it's a xend bug that needs
fixing.
-- Keir
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] ioemu: Get guest uuid from xenstore
2009-01-19 18:16 ` Keir Fraser
@ 2009-01-20 2:12 ` Yosuke Iwamatsu
2009-01-20 10:32 ` Ian Jackson
0 siblings, 1 reply; 7+ messages in thread
From: Yosuke Iwamatsu @ 2009-01-20 2:12 UTC (permalink / raw)
To: Keir Fraser, Ian Jackson; +Cc: xen-devel
Keir Fraser wrote:
> On 19/01/2009 18:02, "Ian Jackson" <Ian.Jackson@eu.citrix.com> wrote:
>
>> I don't think this patch is safe. /local/domain/<domid>/vm is
>> owned by (and thus writeable by) the domain in question. We need a
>> trustworthy copy of this information.
>
> Perhaps worth checking with a xenstore-ls -p, or a xenstore-write attempt
> within a domU, but the vm node should be owned by dom0 and read-only by the
> domU. The recent xenstore permissions fixes should ensure that.
>
> So the patch should be safe and if it's not it's a xend bug that needs
> fixing.
I checked with 'xenstore-ls -p' on my system and could confirm that
the permission of /local/domain/<domid>/vm was set properly
(owned by dom0 and set read-only by domU), apparently since cs 18933.
Thanks,
Yosuke
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ioemu: Get guest uuid from xenstore
2009-01-20 2:12 ` Yosuke Iwamatsu
@ 2009-01-20 10:32 ` Ian Jackson
2009-01-27 11:04 ` Yosuke Iwamatsu
0 siblings, 1 reply; 7+ messages in thread
From: Ian Jackson @ 2009-01-20 10:32 UTC (permalink / raw)
To: Yosuke Iwamatsu; +Cc: xen-devel, Keir Fraser
Yosuke Iwamatsu writes ("[Xen-devel] [PATCH] ioemu: Get guest uuid from xenstore"):
> Keir Fraser wrote:
> > Perhaps worth checking with a xenstore-ls -p, or a xenstore-write attempt
> > within a domU, but the vm node should be owned by dom0 and read-only by the
> > domU. The recent xenstore permissions fixes should ensure that.
I looked with xenstore-ls -p but perhaps my test box is out of date.
I'll update it and see what it does then ...
Ian.
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH] ioemu: Get guest uuid from xenstore
2009-01-20 10:32 ` Ian Jackson
@ 2009-01-27 11:04 ` Yosuke Iwamatsu
2009-01-27 11:40 ` Ian Jackson
0 siblings, 1 reply; 7+ messages in thread
From: Yosuke Iwamatsu @ 2009-01-27 11:04 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel, Keir Fraser
Ian Jackson wrote:
> Yosuke Iwamatsu writes ("[Xen-devel] [PATCH] ioemu: Get guest uuid from xenstore"):
>> Keir Fraser wrote:
>>> Perhaps worth checking with a xenstore-ls -p, or a xenstore-write attempt
>>> within a domU, but the vm node should be owned by dom0 and read-only by the
>>> domU. The recent xenstore permissions fixes should ensure that.
>
> I looked with xenstore-ls -p but perhaps my test box is out of date.
> I'll update it and see what it does then ...
>
Any progress on this?
Please note that there is a real problem with the current implementation
(xenstore_get_guest_uuid() returns NULL in stub-dom mode) that sometime
the ioemu-domain crashes while running a Linux HVM domain, So we should
fix it somehow.
Thank you,
Yosuke
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] ioemu: Get guest uuid from xenstore
2009-01-27 11:04 ` Yosuke Iwamatsu
@ 2009-01-27 11:40 ` Ian Jackson
0 siblings, 0 replies; 7+ messages in thread
From: Ian Jackson @ 2009-01-27 11:40 UTC (permalink / raw)
To: Yosuke Iwamatsu; +Cc: xen-devel, Keir Fraser
Yosuke Iwamatsu writes ("[Xen-devel] [PATCH] ioemu: Get guest uuid from xenstore"):
> Ian Jackson wrote:
> > I looked with xenstore-ls -p but perhaps my test box is out of date.
> > I'll update it and see what it does then ...
... what it did was break utterly and after I'd fixed it I'm afraid I
forgot about your patch. I've checked now and it's fine so I have
applied your patch.
Thanks for the reminder.
Ian.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-01-27 11:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19 7:00 [PATCH] ioemu: Get guest uuid from xenstore Yosuke Iwamatsu
2009-01-19 18:02 ` Ian Jackson
2009-01-19 18:16 ` Keir Fraser
2009-01-20 2:12 ` Yosuke Iwamatsu
2009-01-20 10:32 ` Ian Jackson
2009-01-27 11:04 ` Yosuke Iwamatsu
2009-01-27 11:40 ` Ian Jackson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.