public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Horms <horms@verge.net.au>
To: linux-ia64@vger.kernel.org
Subject: ia64 kexec: xen -> linux
Date: Fri, 15 Sep 2006 09:25:22 +0000	[thread overview]
Message-ID: <20060915092521.GA27714@verge.net.au> (raw)

Hi,

as some of you may be aware I am working on porting kexec
to xen/ia64. I have made a reasoble ammount of progress to this end.
I'll try and get a new patch set on xen-devel some time next week.
However I have a problem that I need some ideas on how to solve.

At the moment when kexecing from xen to linux the boot halts on a call
to efi_gettimeofday(), or more specifically efi.get_time. I'm assuming
that this is more or less the first efi runtime call that is made, and
that it is halting because of a discrepancy in the virtual mapping set
up by efi.set_virtual_address_map().

The problem as I see it is that linux uses a page_offset that covers the
most significant 3 bits, wherase xen uses the first 4. The unfortunate
thing is that efi.set_virtual_address_map() can only be called once,
and I don't think its possible to change the mappings at all once
its been called.

One idea that I had was to make sure that the efi calls are always made
in real mode, and never call efi.set_virtual_address_map() at all - efi
calls have to be made using virtual addressing after
efi.set_virtual_address_map() is called. But can this work?

Another idea from my colleague Magnus was to map the efi runtime calls
into some area of memory that is agreed upon by both Linux and Xen (and
any other kexec-able OS/hypervisor). This seems to be tedious at best.

And a last idea was to replace the efi table with our own calls, much
the same way that xen provideds a virtualised efi table to its domains.
However I'm really not sure if this is possible, as it seems that at
best such functions would be a mechanism to implement the real-mode
approach.

I'd really appreciate some input on whether or not the problem that
I think I am seeing is plausible. And if so, is there a decent way
around it?

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


             reply	other threads:[~2006-09-15  9:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-15  9:25 Horms [this message]
2006-09-27  9:36 ` ia64 kexec: xen -> linux Magnus Damm

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=20060915092521.GA27714@verge.net.au \
    --to=horms@verge.net.au \
    --cc=linux-ia64@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox