xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Daugherty <jtd@galois.com>
To: xen-devel@lists.xen.org
Subject: ARM: grant table setup
Date: Tue, 22 Apr 2014 10:37:29 -0700	[thread overview]
Message-ID: <20140422173729.GF81368@galois.com> (raw)

Hi,

I'm modifying FreeRTOS to run as a Xen guest and I'm working on grant
table setup.  The documentation for the Xen ARM ABI states:

  The grant table is mapped using the HYPERVISOR_memory_op sub-op
  XENMEM_add_to_physmap, passing XENMAPSPACE_grant_table as space
  parameter. The memory range specified under the Xen compatible
  hypervisor node on device tree can be used as target gpfn for the
  mapping.

However, I noticed that there is also the GNTTABOP_setup_table
operation.  The two seem to overlap in things they do (such as growing
the grant table if the request requires it).  Linux appears to use the
physmap operation for ARM ("hvm") guests and setup_table otherwise.
However, early on my implementation called setup_table to very strange
effect (bogus MFNs in the frame_list). Provided that is indeed
inappropriate, would it be reasonable to make setup_table return a
failure status if called for HVM domains?

Thanks,

-- 
  Jonathan Daugherty
  Software Engineer
  Galois, Inc.

             reply	other threads:[~2014-04-22 17:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-22 17:37 Jonathan Daugherty [this message]
2014-04-23 15:42 ` ARM: grant table setup Ian Campbell

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=20140422173729.GF81368@galois.com \
    --to=jtd@galois.com \
    --cc=xen-devel@lists.xen.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;
as well as URLs for NNTP newsgroup(s).