All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: xen-devel@lists.xen.org
Cc: julien.grall@citrix.com, stefano.stabellini@citrix.com,
	ian.campbell@citrix.com
Subject: xen/arm: On chip memory mappings
Date: Tue, 19 May 2015 15:16:00 +1000	[thread overview]
Message-ID: <20150519051600.GD10142@toto> (raw)

Hi,

I'd like to support the assignment of on chip RAMs to guests, starting with dom0.

The mmio-sram compatible device kinda works already but the 2nd stage MMU
mapping is done with DEVICE memory attributes. This doesn't work well for
SRAMs for several reasons (e.g performance, alignment checks etc).

I guess we could add special treatment of these nodes to create Normal memory mappings.

The rules for combining the memory attributes from S1 and S2 translations
suggest that mapping things at S2 with Normal memory Inner/Outer WB cacheable
would give the guest/S1 flexibility in choosing the final attributes.
It seems to me like guest drivers have the best knowledge to decide how to
map the node memory regions.

Keeping the S2 shareability set to inner (like we already do for memory)
seems to be a good idea though.

So the question I had is, why do we map nodes at S2 with DEVICE attributes at all?
Am I missing something?

Thanks,
Edgar

             reply	other threads:[~2015-05-19  5:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19  5:16 Edgar E. Iglesias [this message]
2015-05-19  9:09 ` xen/arm: On chip memory mappings Ian Campbell
2015-05-19  9:23   ` Julien Grall
2015-05-20 13:40     ` Edgar E. Iglesias
2015-05-20 14:12       ` Julien Grall
2015-05-21  3:48         ` Edgar E. Iglesias

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=20150519051600.GD10142@toto \
    --to=edgar.iglesias@gmail.com \
    --cc=ian.campbell@citrix.com \
    --cc=julien.grall@citrix.com \
    --cc=stefano.stabellini@citrix.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 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.