From: Peter Maydell <peter.maydell@linaro.org>
To: Andrew Baumann <Andrew.Baumann@microsoft.com>
Cc: qemu-arm <qemu-arm@nongnu.org>, QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v4] arm: implement cache/shareability attribute bits for PAR registers
Date: Thu, 2 Nov 2017 15:04:55 +0000 [thread overview]
Message-ID: <CAFEAcA9rbXTwts2bfWmbT8sL91zCgL6u6D8xxdWgAh+06eef6Q@mail.gmail.com> (raw)
In-Reply-To: <20171031223830.4608-1-Andrew.Baumann@microsoft.com>
On 31 October 2017 at 22:38, Andrew Baumann
<Andrew.Baumann@microsoft.com> wrote:
> On a successful address translation instruction, PAR is supposed to
> contain cacheability and shareability attributes determined by the
> translation. We previously returned 0 for these bits (in line with the
> general strategy of ignoring caches and memory attributes), but some
> guest OSes may depend on them.
>
> This patch collects the attribute bits in the page-table walk, and
> updates PAR with the correct attributes for all LPAE translations.
> Short descriptor formats still return 0 for these bits, as in the
> prior implementation.
>
> Signed-off-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
> ---
> v2:
> * return attrs via out parameter from get_phys_addr, rather than MemTxAttrs
> * move MAIR lookup/index inline, since it turned out to be simple
> * implement attributes for stage 2 translations
> * combine attributes from stages 1 and 2 when required
>
> v3:
> * implement S2 allocation hints and check for cache-disabled
> * fix stage 2 shareability bits
> * fix combined allocation hints (always use stage 1 hints)
> * remove LOG_UNIMP message
>
> v4:
> * fix hihint shift buglet in convert_stage2_attrs
> * remove TODO comment (what was there is complete)
> * mention relevant pseudocode procedures in comments
>
Applied to target-arm.next, thanks.
-- PMM
prev parent reply other threads:[~2017-11-02 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-31 22:38 [Qemu-devel] [PATCH v4] arm: implement cache/shareability attribute bits for PAR registers Andrew Baumann
2017-11-02 15:04 ` Peter Maydell [this message]
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=CAFEAcA9rbXTwts2bfWmbT8sL91zCgL6u6D8xxdWgAh+06eef6Q@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=Andrew.Baumann@microsoft.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.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).