All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Building domains as a lesser user (was Re: boot loaders for domain != 0)
@ 2005-02-04  2:30 Ian Pratt
  2005-02-04  3:09 ` Jeremy Katz
  2005-02-04  3:29 ` Anthony Liguori
  0 siblings, 2 replies; 16+ messages in thread
From: Ian Pratt @ 2005-02-04  2:30 UTC (permalink / raw)
  To: Anthony Liguori, Jacob Gorm Hansen; +Cc: xen-devel

> I've been thinking about this and it seems to get worse and worse the 
> more I think about it.  Pushing loading off to domU isn't much better 
> because you still need to load a boot loader of some sort.  At what 
> point do we then have to implement support for loading the 
> boot loader 
> from domU's device (in order to support exotic boot scenarios like 
> booting from a CD, BOOTP, etc.).

One fairly simple option is to use Linux as a domU boot loader. Boot
with an intrd, 
mount the specified filesystem, read off grub.conf, display a menu over
the xencons, kexec the appropriate kernel.

I'd have to think through whether kexec would need modifications, but I
believe it uses the same 32 bit kernel entry point that xen/linux does
(no grubby 16bit nastiness). 

This sounds quite a good soloution.

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: Building domains as a lesser user (was Re: boot loaders for domain != 0)
@ 2005-02-04 12:33 Ian Pratt
  2005-02-04 20:48 ` Anthony Liguori
  0 siblings, 1 reply; 16+ messages in thread
From: Ian Pratt @ 2005-02-04 12:33 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Jacob Gorm Hansen, xen-devel, katzj

> Yeah, I think kexec would work but unfortunately it's not part of the 
> kernel yet.  It could be folded into Xen but I agree with 
> Jeremy that it 
> seems like overkill.  Boot through Linux just to get to a grub screen 
> seems a little strange too.

The 'action' part of kexec is very arch specific, and the Xen
environment make it easily to implement. We don't have to wory about
shutting down virtual devices or such like as they will recover
automatically.

Knocking up an arch xen kexec should be easy.

We could implement the system call in arch Xen even though it isn't in
the mainstream kernel yet.

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: Building domains as a lesser user (was Re: boot loaders for domain != 0)
@ 2005-02-04  9:44 Ian Pratt
  0 siblings, 0 replies; 16+ messages in thread
From: Ian Pratt @ 2005-02-04  9:44 UTC (permalink / raw)
  To: Anthony Liguori, Jacob Gorm Hansen; +Cc: xen-devel

 
> The current architecture of Xen requires that we trust whatever is 
> running in Domain-0.  The problems being cited wouldn't be a 
> problem if 
> you could create domains from unpriviledged Domains because you could 
> have creator Domains who could be created from a trusted 
> source and used 
> as a buffer against attack.

It's always been part of the plan to be able to delegate dom0 functions
to enable one domain to be given control over another e.g. to create it,
map its pages, stop/start, debug etc.

It just hasn't been a priority to implement this, but it's the direction
we're heading with some of the security work.

Of course, we'll have to rename dom0_op to something else :-)

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: boot loaders for domain != 0
@ 2005-02-03 22:11 Ian Pratt
  2005-02-04  1:09 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 16+ messages in thread
From: Ian Pratt @ 2005-02-03 22:11 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Jeremy Katz, Andy Whitcroft, xen-devel


> For what it's worth, I think doing a quick mount, read, and 
> then umount 
> is the easiest approach since it extends well to doing things like 
> peeking at an ISO's contents by mounting an ISO image.  Using 
> libraries 
> would probably introduce some nasty dependencies without 
> really gaining 
> much...

>From a security POV, using libext2 etc would be raher better. I just
don't trust Linux to be defensive enough mounting a potentially
malicious bag of bits. [I once came across an ext2 file systems that
deterministically crashed Linux whenever I mounted it. It's been a
couple of years, but I reckon such bugs are still lurking.]

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-02-04 20:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-04  2:30 Building domains as a lesser user (was Re: boot loaders for domain != 0) Ian Pratt
2005-02-04  3:09 ` Jeremy Katz
2005-02-04  5:13   ` Ronald G. Minnich
2005-02-04  3:29 ` Anthony Liguori
2005-02-04  3:38   ` Jacob Gorm Hansen
2005-02-04  3:54     ` Anthony Liguori
2005-02-04  4:02       ` Jacob Gorm Hansen
2005-02-04 19:49   ` Adam Sulmicki
  -- strict thread matches above, loose matches on Subject: below --
2005-02-04 12:33 Ian Pratt
2005-02-04 20:48 ` Anthony Liguori
2005-02-04  9:44 Ian Pratt
2005-02-03 22:11 boot loaders for domain != 0 Ian Pratt
2005-02-04  1:09 ` Jacob Gorm Hansen
2005-02-04  2:16   ` Building domains as a lesser user (was Re: boot loaders for domain != 0) Anthony Liguori
2005-02-04  3:12     ` Jacob Gorm Hansen
2005-02-04  3:16     ` Jacob Gorm Hansen
2005-02-04  3:34       ` Anthony Liguori
2005-02-04  3:56         ` Jacob Gorm Hansen

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.