From: Andrew Jones <drjones@redhat.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org
Subject: [Qemu-devel] [PATCH v4 0/3] tcg-arm: LPAE: fix and extend xn control
Date: Wed, 11 Mar 2015 19:38:56 +0100 [thread overview]
Message-ID: <1426099139-14463-1-git-send-email-drjones@redhat.com> (raw)
This series fixes and extends the determination of whether or
not an address is executable for LPAE translations. The main
patch is 3/3, and describes the details in its commit message.
Patch 1/3 prepares for patch 2/3, which is prep for 3/3, and also
fixes a potential problem with checking access permissions on
v6 processors when they use the simple AP format.
Changes since v3:
* Remove a useless is_aa64/case1/is_user code setting wxn=0 [Peter]
Changes since v2:
* Collect NSTable bits into ns
* Explicitly check {prot,user}_rw against PAGE_READ. !{prot,user}_rw
means no read or write, but, since we can't have write without read,
it also means !({prot,user}_rw & PAGE_READ). Making this explicit
can reduce confusion when trying to determine with prot flag we
actually care about. [Peter Maydell]
Changes since v1:
* There are now 3 patches instead of 5. This is due to approaching
the prep patches in a different way. Most notably, simple AP
format is now handled with its own function. [Peter Maydell]
* A check of SCTLR_AFE is guarded with ARM_FEATURE_V6K [Peter Maydell]
* All other cleanups suggested by Peter Maydell.
Tested by booting Linux on mach-virt with cortex-a15 and cortex-a57
(just up to 'Unable to mount root fs'), and also with a kvm-unit-tests
test. The curious can check out the unit test here [1].
Thanks in advance for reviews!
drew
[1] https://github.com/rhdrjones/kvm-unit-tests/commit/ee553e4bb795b0150e31c794bf8953dfb08d619a
Andrew Jones (3):
target-arm: convert check_ap to ap_to_rw_prot
target-arm: fix get_phys_addr_v6/SCTLR_AFE access check
target-arm: get_phys_addr_lpae: more xn control
target-arm/helper.c | 214 +++++++++++++++++++++++++++++++++++++---------------
1 file changed, 154 insertions(+), 60 deletions(-)
--
1.9.3
next reply other threads:[~2015-03-11 18:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 18:38 Andrew Jones [this message]
2015-03-11 18:38 ` [Qemu-devel] [PATCH v4 1/3] target-arm: convert check_ap to ap_to_rw_prot Andrew Jones
2015-03-11 18:38 ` [Qemu-devel] [PATCH v4 2/3] target-arm: fix get_phys_addr_v6/SCTLR_AFE access check Andrew Jones
2015-03-11 18:38 ` [Qemu-devel] [PATCH v4 3/3] target-arm: get_phys_addr_lpae: more xn control Andrew Jones
2015-03-12 11:40 ` [Qemu-devel] [PATCH v4 0/3] tcg-arm: LPAE: fix and extend " Peter Maydell
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=1426099139-14463-1-git-send-email-drjones@redhat.com \
--to=drjones@redhat.com \
--cc=peter.maydell@linaro.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).