From: tgh <tianguanhua@ncic.ac.cn>
To: Mark Williamson <mark.williamson@cl.cam.ac.uk>
Cc: Derek.Murray@cl.cam.ac.uk, xen-devel@lists.xensource.com,
ruby young <yangyang@les.buaa.edu.cn>
Subject: Re: can I boot privilleged dom like dom0 via xm create
Date: Sun, 29 Jun 2008 12:20:22 +0800 [thread overview]
Message-ID: <48670D86.9040302@ncic.ac.cn> (raw)
In-Reply-To: <200806181831.13559.mark.williamson@cl.cam.ac.uk>
hi
I am interested in this issue, and I wonder wether we could manage
dom0 in xen architecture, that is ,to boot dom0, to reboot it ,to store
it ,or restore it ,while suspending domU in memory ,through some domctl
whenever necessary, or could we develop some new hypercall to make it
work ,or does xen architecture have some inherent limit in itself and
have no compatibility with this potential augment? and why not or
how to achieve it , could some one give some advise on it
Thanks in advance
Mark Williamson 写道:
> Ruby,
>
> Further to what Derek has said, I'd like to point out that what kernel you use
> never affects the privilege of the guest.
>
> All the -xen0 kernel name means is that the kernel /can/ do dom0 stuff. This
> is as opposed to a -xenU kernel, which has had the dom0 support removed from
> it. Removing the dom0 support in a xenU kernel is done /only to make the
> kernel smaller/. It doesn't have any effect on security or privilege.
>
> Actually, most distributions seem to now supply one -xen kernel that is used
> both in dom0 and domU.
>
> This is because, as Derek mentioned, Xen enforces the privileges of guests
> itself and doesn't have to trust their kernels. This is different to how
> User Mode Linux works, since in that system the kernel itself enforces the
> virtual machine boundaries. You can securely run any kernel you want in a
> domU - even one supplied by the user - because Xen will contain it.
>
> Cheers,
> Mark
>
>
>> At present, there is no way to do this with xm. In the hypervisor,
>> each struct domain has an is_privileged attribute (which is at present
>> only set when dom0 is created at boot). You could add a domctl to
>> control the setting of this bit, and then write a small C program that
>> uses do_domctl from libxc to set the privilege on a domain.
>>
>> However, simply running two privileged domains with parallel sets of
>> Xen tools is unlikely to work, for example because you will end up
>> with two instances of XenStore.
>>
>> Regards,
>>
>> Derek Murray.
>>
>> 2008/6/13 ruby young <yangyang@les.buaa.edu.cn>:
>>
>>> Hi all,
>>> I'm using vmlinuz-2.6.18-xen0 as domU kernel and I boot it via xm
>>> create. But the kernel didn't panic, it's running but all of xen tools
>>> can not work. I am surprised at this.
>>> Now My question whether I can boot privilleged dom like dom0 via xm
>>> create ? and how can I do it?
>>> I am looking forwards to your suggestions.
>>>
>>> Best wishes
>>>
>>> Ruby Young
>>>
>>> -------------------------------------------------------------------------
>>> --------------------------------------------------------------------------
>>> ------------------------------------------------ 杨漾
>>> 北京航空航天大学计算机学院体系结构研究所
>>> 电话:010-82338059-132
>>> 邮件:9907yruby@gmail.com
>>> 地址:北京市海淀区学院路37号北京航空航天大学新主楼 G座1026
>>> -------------------------------------------------------------------------
>>> ------- Yang Yang
>>> Institute of Computer Architecture and System
>>> BeiHang University(BUAA)
>>> Tel: (86-10)82338059-132
>>> Email: 9907yruby@gmail.com
>>> Addr: Room 1026,Building G,The New Main Building,37# Xueyuan Rd.,Haidian
>>> District, Beijing 100083, PRC
>>> _______________________________________________
>>> Xen-devel mailing list
>>> Xen-devel@lists.xensource.com
>>> http://lists.xensource.com/xen-devel
>>>
>
>
>
>
next prev parent reply other threads:[~2008-06-29 4:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-13 8:53 can I boot privilleged dom like dom0 via xm create ruby young
2008-06-13 10:02 ` Derek Murray
2008-06-18 17:31 ` Mark Williamson
2008-06-19 16:49 ` ruby young
2008-06-20 0:48 ` Mark Williamson
2008-06-29 4:20 ` tgh [this message]
2008-06-29 10:23 ` Daniel Stodden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48670D86.9040302@ncic.ac.cn \
--to=tianguanhua@ncic.ac.cn \
--cc=Derek.Murray@cl.cam.ac.uk \
--cc=mark.williamson@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
--cc=yangyang@les.buaa.edu.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.