All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: "Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>
Subject: Re: new hypercall implementation question
Date: Thu, 23 Jul 2009 14:26:15 -0700	[thread overview]
Message-ID: <4A68D577.8060200@goop.org> (raw)
In-Reply-To: <0e076676-cb5a-44e9-9e4b-90a70a45226f@default>

On 07/23/09 07:31, Dan Magenheimer wrote:
> Is it safe to pass three guest virtual addresses via a hypercall
> to Xen and expect Xen to safely copy data (two scalars and one
> array of pagesize-bytes... not necessarily aligned on a page
> boundary) back to the guest, or do I need to do something fancy
> to avoid weird corner cases, e.g. to ensure restartabililty
> in case of guest page fault?
>
> This is a privileged-only hypercall used only as part of
> save/restore/live-migrate (for tmem) if that is relevant.
>   

For x86 its OK to pass kernel vaddrs to Xen and have it interpret them
with the current pagetable.  There should be no pagefaults, or rather,
the hypercall will fail with EFAULT.

I think ia64 has problems with anything other than physical addresses
being passed, and has to do all that handle stuff to convert.

    J

  reply	other threads:[~2009-07-23 21:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-23 14:31 new hypercall implementation question Dan Magenheimer
2009-07-23 21:26 ` Jeremy Fitzhardinge [this message]
2009-07-23 21:39   ` Dan Magenheimer

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=4A68D577.8060200@goop.org \
    --to=jeremy@goop.org \
    --cc=dan.magenheimer@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    /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.