All of lore.kernel.org
 help / color / mirror / Atom feed
* Xen Paravirt
@ 2007-07-18 22:45 Chuck Short
  2007-07-18 23:46 ` Jeremy Fitzhardinge
  2007-07-19  6:17 ` Ian Campbell
  0 siblings, 2 replies; 5+ messages in thread
From: Chuck Short @ 2007-07-18 22:45 UTC (permalink / raw)
  To: xen-devel

Hi,

So that Xen paravirt ops has made it upstream what is needed in order to use it?

Any pointers would be much appreciated.

Thanks
chuck

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

* Re: Xen Paravirt
  2007-07-18 22:45 Xen Paravirt Chuck Short
@ 2007-07-18 23:46 ` Jeremy Fitzhardinge
  2007-07-19  4:05   ` Nate Carlson
  2007-07-19  6:17 ` Ian Campbell
  1 sibling, 1 reply; 5+ messages in thread
From: Jeremy Fitzhardinge @ 2007-07-18 23:46 UTC (permalink / raw)
  To: Chuck Short; +Cc: xen-devel

Chuck Short wrote:
> Hi,
>
> So that Xen paravirt ops has made it upstream what is needed in order
> to use it?
>
> Any pointers would be much appreciated.

Hm, I should prepare a documentation patch.

If you build the kernel with CONFIG_PARAVIRT=y, CONFIG_XEN=y and enable
the Xen console, block and net devices (they will default =y), then you
should be able to use the resulting kernel with an existing Xen
installation (it will also boot native).  Unfortunately you can't use
the same actual kernel image file in both cases, but you can use the
same modules.

To boot native: boot the bzImage file as usual.

To boot under Xen, use the vmlinux file as your kernel image (you can
strip and gzip it if you wish).

The console is hvc0, so you may need to pass console=hvc0 in your Xen
config.

Similarly, the blockfront device is /dev/xvd[abc...][123...]; you'll
probably need to pass the appropriate root= kernel command line option. 
It does not support stealing the hdX or sdX names, so that part of the
Xen config will be ignored.

Netfront appears as ethX as usual.

The kernel does not support balloon or suspend/migrate/resume yet, so
that won't work.  You should be able to cleanly shutdown/reboot the
domain via xm.

Tell me how it goes!

    J

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

* Re: Xen Paravirt
  2007-07-18 23:46 ` Jeremy Fitzhardinge
@ 2007-07-19  4:05   ` Nate Carlson
  2007-07-19  5:04     ` Jeremy Fitzhardinge
  0 siblings, 1 reply; 5+ messages in thread
From: Nate Carlson @ 2007-07-19  4:05 UTC (permalink / raw)
  To: xen-devel

On Wed, 18 Jul 2007, Jeremy Fitzhardinge wrote:
> If you build the kernel with CONFIG_PARAVIRT=y, CONFIG_XEN=y and enable 
> the Xen console, block and net devices (they will default =y), then you 
> should be able to use the resulting kernel with an existing Xen 
> installation (it will also boot native).  Unfortunately you can't use 
> the same actual kernel image file in both cases, but you can use the 
> same modules.

Just curious, will that change?  :)

------------------------------------------------------------------------
| nate carlson | natecars@natecarlson.com | http://www.natecarlson.com |
|       depriving some poor village of its idiot since 1981            |
------------------------------------------------------------------------

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

* Re: Xen Paravirt
  2007-07-19  4:05   ` Nate Carlson
@ 2007-07-19  5:04     ` Jeremy Fitzhardinge
  0 siblings, 0 replies; 5+ messages in thread
From: Jeremy Fitzhardinge @ 2007-07-19  5:04 UTC (permalink / raw)
  To: Nate Carlson; +Cc: xen-devel

Nate Carlson wrote:
> On Wed, 18 Jul 2007, Jeremy Fitzhardinge wrote:
>> If you build the kernel with CONFIG_PARAVIRT=y, CONFIG_XEN=y and
>> enable the Xen console, block and net devices (they will default =y),
>> then you should be able to use the resulting kernel with an existing
>> Xen installation (it will also boot native).  Unfortunately you can't
>> use the same actual kernel image file in both cases, but you can use
>> the same modules.
>
> Just curious, will that change?  :)

Yeah, it's a work in progress.  I have some test patches to extend the
bzImage format to contain ELF notes, and a corresponding Xen patch to
add a new file format for the domain builder. But its a bit
up-in-the-air because nobody has agreed to the bzImage format changes,
and its all a bit subtle to make sure it keeps working with a wide range
of fairly poorly implemented bootloaders.

    J

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

* Re: Xen Paravirt
  2007-07-18 22:45 Xen Paravirt Chuck Short
  2007-07-18 23:46 ` Jeremy Fitzhardinge
@ 2007-07-19  6:17 ` Ian Campbell
  1 sibling, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2007-07-19  6:17 UTC (permalink / raw)
  To: Chuck Short; +Cc: xen-devel

On Wed, 2007-07-18 at 18:45 -0400, Chuck Short wrote:
> So that Xen paravirt ops has made it upstream what is needed in order to use it?

I haven't been able to test yet but hopefully the xen-unstable build
system should already be prepared for this.

For now you can use:
	make linux-2.6-tip-build LINUX_VER=2.6-git

Once the next -rc comes out you can use:
	make linux-2.6-rc-build (/-dist/-install/-prep/-etc)

Once a real release is available the linux-2.6-tip-FOO without the
LINUX_VER should work.

All the above should work using
	make KERNELS="linux-2.6-xen linux-2.6-tip" dist
and friends as well. You need the -xen still for domain 0.

Finally, you need XEN_TARGET_ARCH=x86_32 since only 32 bit is currently
supported.

Ian.

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

end of thread, other threads:[~2007-07-19  6:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-18 22:45 Xen Paravirt Chuck Short
2007-07-18 23:46 ` Jeremy Fitzhardinge
2007-07-19  4:05   ` Nate Carlson
2007-07-19  5:04     ` Jeremy Fitzhardinge
2007-07-19  6:17 ` Ian Campbell

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.