Mailing List Archive

[Xen-merge] FW: Xen and the Art of Linux/ia64 Virtualization
Here's the latest rev of the patch that I'm floating
for Linux/ia64. This patch combined with the attached
include/asm-ia64/xen/privop.h, a few source files in
arch/ia64, and drivers/xen (after it has been made
arch-neutral, which we've done out-of-tree but haven't
gotten merged back into the mainline yet) result
in a transparently paravirtualized Linux/ia64.

> -----Original Message-----
> From: linux-ia64-owner@vger.kernel.org
> [mailto:linux-ia64-owner@vger.kernel.org] On Behalf Of
> Magenheimer, Dan (HP Labs Fort Collins)
> Sent: Friday, August 12, 2005 4:09 PM
> To: linux-ia64@vger.kernel.org
> Cc: tony.luck@intel.com
> Subject: RE: Xen and the Art of Linux/ia64 Virtualization
>
> Revision 5. Incorporates abstraction changes to ia64_getreg
> and ia64_setreg as suggested by David Mosberger and Tony
> Luck. Also generalized a bit so that it will be easy to
> support other virtualization software that may come along.
> This patch is currently against 2.6.12 (thus for review only).
>
> Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
>
> Tony, I think this is now ready to go. I suppose the best
> thing would be for me to regenerate this against 2.6.13
> as soon as it comes out?
>
> I've also attached include/asm-ia64/xen/privop.h. Note
> that this is not quite final but is provided for now as
> a well-documented (para)virtualization example which
> should answer many questions.
>
> Dan
>
> > -----Original Message-----
> > From: Magenheimer, Dan (HP Labs Fort Collins)
> > Sent: Thursday, July 28, 2005 4:39 PM
> > To: 'linux-ia64@vger.kernel.org'
> > Cc: 'tony.luck@intel.com'
> > Subject: RE: Xen and the Art of Linux/ia64 Virtualization
> >
> > Revision 4. Minor formatting change suggested by
> > Christoph. Also, no change for "symmetry" suggested
> > by Christoph as Tony wanted to leave as is.
> >
> > Tony I think this is now ready to apply. If there is
> > anything else needed, please let me know.
> >
> > Thanks,
> > Dan Magenheimer
> >
> > > -----Original Message-----
> > > From: Magenheimer, Dan (HP Labs Fort Collins)
> > > Sent: Thursday, July 14, 2005 3:18 PM
> > > To: 'linux-ia64@vger.kernel.org'
> > > Subject: RE: Xen and the Art of Linux/ia64 Virtualization
> > >
> > > Revision 3. Incorporates some more feedback and
> > > a minor bug fix.
> > >
> > > Dan
> > >
> > > > -----Original Message-----
> > > > From: Magenheimer, Dan (HP Labs Fort Collins)
> > > > Sent: Wednesday, July 06, 2005 2:47 PM
> > > > To: 'linux-ia64@vger.kernel.org'
> > > > Subject: RE: Xen and the Art of Linux/ia64 Virtualization
> > > >
> > > > The patch I posted yesterday had a couple of bugs.
> > > > This version applies cleanly against 2.6.12 and
> > > > (when augmented with additional files from various
> > > > Xen subdirectories) has been booted both on Xen/ia64
> > > > and on hardware.
> > > >
> > > > Note that a patch to drivers/acpi/motherboard.c (that
> > > > allows for acpi to be enabled on a stubbed acpi tree
> > > > without a kernel null pointer dereference!) is required
> > > > and has been submitted separately to the linux-acpi list.
> > > >
> > > > With the exception of three short CONFIG_XEN
> > > > ifdefs, the vast majority of changes in this patch
> > > > are code rearrangement to enable a number of routines
> > > > and defines to add one level of abstraction.
> > > >
> > > > Comments and feedback would be much appreciated!
> > > >
> > > > arch/ia64/Kconfig | 7 +
> > > > arch/ia64/Makefile | 1
> > > > arch/ia64/hp/sim/Makefile | 2
> > > > arch/ia64/ia32/elfcore32.h | 2
> > > > arch/ia64/ia32/ia32_signal.c | 6 -
> > > > arch/ia64/ia32/ia32_support.c | 4 -
> > > > arch/ia64/kernel/entry.S | 30 ++++---
> > > > arch/ia64/kernel/head.S | 4 +
> > > > arch/ia64/kernel/irq_ia64.c | 12 +--
> > > > arch/ia64/kernel/pal.S | 5 -
> > > > arch/ia64/kernel/setup.c | 3
> > > > include/asm-ia64/delay.h | 53 -------------
> > > > include/asm-ia64/privop.h | 160
> > > > ++++++++++++++++++++++++++++++++++++++++++
> > > > include/asm-ia64/processor.h | 56 --------------
> > > > include/asm-ia64/system.h | 12 +--
> > > > 15 files changed, 217 insertions(+), 140 deletions(-)
> > > >
> > > > > -----Original Message-----
> > > > > From: Magenheimer, Dan (HP Labs Fort Collins)
> > > > > Sent: Tuesday, July 05, 2005 2:21 PM
> > > > > To: linux-ia64@vger.kernel.org
> > > > > Subject: RE: Xen and the Art of Linux/ia64 Virtualization
> > > > >
> > > > > Thanks to excellent feedback from David Mosberger and
> > > > > Christophe Hellwig, I have greatly cleaned up the attached
> > > > > patch by using some very nice abstractions. In fact,
> > > > > most of the bulk in the attached patch results from
> > > > > moving some code from asm-ia64/{delay,processor}.h to
> > > > > a new file, asm-ia64/privop.h. And the number of
> > > > > CONFIG_XEN ifdefs is dramatically reduced.
> > > > >
> > > > > More feedback appreciated (including comments about how
> > > > > close this might be to be ready for submission to Tony).
> > > > >
> > > > > Thanks,
> > > > > Dan Magenheimer
> > > > >
> > > > > P.S. Anybody who is attending OLS who wants to talk about
> > > > > Xen (and specifically Xen/ia64)? I'll be there... send
> > > > > me email.
> > > > >
> > > >
> > >
> >
>
Re: [Xen-merge] FW: Xen and the Art of Linux/ia64 Virtualization [ In reply to ]
* Magenheimer, Dan (HP Labs Fort Collins) (dan.magenheimer@hp.com) wrote:
> Here's the latest rev of the patch that I'm floating
> for Linux/ia64. This patch combined with the attached
> include/asm-ia64/xen/privop.h, a few source files in
> arch/ia64, and drivers/xen (after it has been made
> arch-neutral, which we've done out-of-tree but haven't
> gotten merged back into the mainline yet) result
> in a transparently paravirtualized Linux/ia64.

Nice. Couple insignificant bits...


diff -Naur linux-2.6.12/arch/ia64/hp/sim/Makefile linux-2.6.12-XenPatch/arch/ia64/hp/sim/Makefile
--- linux-2.6.12/arch/ia64/hp/sim/Makefile 2005-06-17 13:48:29.000000000 -0600
+++ linux-2.6.12-XenPatch/arch/ia64/hp/sim/Makefile 2005-08-12 16:06:00.000000000 -0600
@@ -14,3 +14,5 @@
obj-$(CONFIG_HP_SIMSERIAL) += simserial.o
obj-$(CONFIG_HP_SIMSERIAL_CONSOLE) += hpsim_console.o
obj-$(CONFIG_HP_SIMSCSI) += simscsi.o
+obj-$(CONFIG_XEN) += simserial.o
+obj-$(CONFIG_XEN) += hpsim_console.o

Could be common CONFIG (i.e. Xen config can select it).

<snip>
--- linux-2.6.12/arch/ia64/Makefile 2005-06-17 13:48:29.000000000 -0600
+++ linux-2.6.12-XenPatch/arch/ia64/Makefile 2005-08-12 16:06:00.000000000 -0600
@@ -57,6 +57,7 @@
core-$(CONFIG_IA64_HP_ZX1) += arch/ia64/dig/
core-$(CONFIG_IA64_HP_ZX1_SWIOTLB) += arch/ia64/dig/
core-$(CONFIG_IA64_SGI_SN2) += arch/ia64/sn/
+core-$(CONFIG_XEN) += arch/ia64/xen/ arch/ia64/hp/sim/

Same here. Also core-y vs. drivers-y have different meaning for link
order (probably not an issue).

drivers-$(CONFIG_PCI) += arch/ia64/pci/
drivers-$(CONFIG_IA64_HP_SIM) += arch/ia64/hp/sim/

_______________________________________________
Xen-merge mailing list
Xen-merge@lists.xensource.com
http://lists.xensource.com/xen-merge
RE: [Xen-merge] FW: Xen and the Art of Linux/ia64 Virtualization [ In reply to ]
Sorry for the lengthy delay. I unexpectedly had to take
a week off.

Thanks for the feedback. Could you elaborate what
you mean (e.g. common CONFIG)?

This mailing list has gone amazingly silent while I
was away. Has everyone absconded to a private chat room?

> -----Original Message-----
> From: Chris Wright [mailto:chrisw@osdl.org]
> Sent: Friday, August 12, 2005 4:37 PM
> To: Magenheimer, Dan (HP Labs Fort Collins)
> Cc: xen-merge@lists.xensource.com
> Subject: Re: [Xen-merge] FW: Xen and the Art of Linux/ia64
> Virtualization
>
> * Magenheimer, Dan (HP Labs Fort Collins)
> (dan.magenheimer@hp.com) wrote:
> > Here's the latest rev of the patch that I'm floating
> > for Linux/ia64. This patch combined with the attached
> > include/asm-ia64/xen/privop.h, a few source files in
> > arch/ia64, and drivers/xen (after it has been made
> > arch-neutral, which we've done out-of-tree but haven't
> > gotten merged back into the mainline yet) result
> > in a transparently paravirtualized Linux/ia64.
>
> Nice. Couple insignificant bits...
>
>
> diff -Naur linux-2.6.12/arch/ia64/hp/sim/Makefile
> linux-2.6.12-XenPatch/arch/ia64/hp/sim/Makefile
> --- linux-2.6.12/arch/ia64/hp/sim/Makefile 2005-06-17
> 13:48:29.000000000 -0600
> +++ linux-2.6.12-XenPatch/arch/ia64/hp/sim/Makefile
> 2005-08-12 16:06:00.000000000 -0600
> @@ -14,3 +14,5 @@
> obj-$(CONFIG_HP_SIMSERIAL) += simserial.o
> obj-$(CONFIG_HP_SIMSERIAL_CONSOLE) += hpsim_console.o
> obj-$(CONFIG_HP_SIMSCSI) += simscsi.o
> +obj-$(CONFIG_XEN) += simserial.o
> +obj-$(CONFIG_XEN) += hpsim_console.o
>
> Could be common CONFIG (i.e. Xen config can select it).
>
> <snip>
> --- linux-2.6.12/arch/ia64/Makefile 2005-06-17
> 13:48:29.000000000 -0600
> +++ linux-2.6.12-XenPatch/arch/ia64/Makefile 2005-08-12
> 16:06:00.000000000 -0600
> @@ -57,6 +57,7 @@
> core-$(CONFIG_IA64_HP_ZX1) += arch/ia64/dig/
> core-$(CONFIG_IA64_HP_ZX1_SWIOTLB) += arch/ia64/dig/
> core-$(CONFIG_IA64_SGI_SN2) += arch/ia64/sn/
> +core-$(CONFIG_XEN) += arch/ia64/xen/ arch/ia64/hp/sim/
>
> Same here. Also core-y vs. drivers-y have different meaning for link
> order (probably not an issue).
>
> drivers-$(CONFIG_PCI) += arch/ia64/pci/
> drivers-$(CONFIG_IA64_HP_SIM) += arch/ia64/hp/sim/
>

_______________________________________________
Xen-merge mailing list
Xen-merge@lists.xensource.com
http://lists.xensource.com/xen-merge
Re: [Xen-merge] FW: Xen and the Art of Linux/ia64 Virtualization [ In reply to ]
* Magenheimer, Dan (HP Labs Fort Collins) (dan.magenheimer@hp.com) wrote:
> Sorry for the lengthy delay. I unexpectedly had to take
> a week off.
>
> Thanks for the feedback. Could you elaborate what
> you mean (e.g. common CONFIG)?

As in for generic functionality $FOO, could be smth like:

CONFIG_FOO
bool
depends on XEN || HP_SIM...
default y

Similar to autoconf mentality which is to configure features over
specific setups (i.e. ARCH_HAS_FOO not ARCH_IS_RH9-Update6).

> This mailing list has gone amazingly silent while I
> was away. Has everyone absconded to a private chat room?

No, just much of the stuff was going through virtualization list working
with bits from Zach. So far the queue is about 45 patches deep and all
very early on in cleanup of i386.

thanks,
-chris

_______________________________________________
Xen-merge mailing list
Xen-merge@lists.xensource.com
http://lists.xensource.com/xen-merge
Re: [Xen-merge] FW: Xen and the Art of Linux/ia64 Virtualization [ In reply to ]
Magenheimer, Dan (HP Labs Fort Collins) wrote:
> Sorry for the lengthy delay. I unexpectedly had to take
> a week off.
>
> Thanks for the feedback. Could you elaborate what
> you mean (e.g. common CONFIG)?

>>+obj-$(CONFIG_XEN) += simserial.o
>>+obj-$(CONFIG_XEN) += hpsim_console.o

I guess what Chris is trying to say is, someone can run xenlinux on
machines that don't require simserial and hpsim_console. Also, someone
can run simserial and hpsim_console on machines that are not running Xen.

Therefore they're two independent options and the user should be able to
select them independently at kernel configuration time.

-Arun

_______________________________________________
Xen-merge mailing list
Xen-merge@lists.xensource.com
http://lists.xensource.com/xen-merge