[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 3/3] target-arm: get_phys_addr_lpae: more xn
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v2 3/3] target-arm: get_phys_addr_lpae: more xn control |
Date: |
Wed, 11 Mar 2015 18:15:47 +0000 |
On 11 March 2015 at 18:10, Andrew Jones <address@hidden> wrote:
> On Wed, Mar 11, 2015 at 05:49:39PM +0000, Peter Maydell wrote:
>> Still confused. If the page isn't readable or writable
>> then WXN isn't going to kick in anyway because WXN only
>> affects writable pages. I don't see what the case is
>> where this bit of code will make a difference.
>>
>
> Ah, that is true. Too bad I didn't read this before sending v3,
> as I could have removed it, if you prefer. I had it here to
> be explicit about the ignoring of wxn - matching the spec, but
> you're right, it's useless code. Should I send a v4?
Yes, please send a v4.
I don't see what you mean about matching the spec, though.
The spec doesn't say anything about "ignore WXN if the
page isn't readable". It just straightforwardly says "if
the WXN bit is set then writable regions are treated as
XN", which is exactly what the code at the bottom of your
function does.
-- PMM
- [Qemu-devel] [PATCH v2 0/3] tcg-arm: LPAE: fix and extend xn control, Andrew Jones, 2015/03/10
- [Qemu-devel] [PATCH v2 1/3] target-arm: convert check_ap to ap_to_rw_prot, Andrew Jones, 2015/03/10
- [Qemu-devel] [PATCH v2 2/3] target-arm: fix get_phys_addr_v6/SCTLR_AFE access check, Andrew Jones, 2015/03/10
- [Qemu-devel] [PATCH v2 3/3] target-arm: get_phys_addr_lpae: more xn control, Andrew Jones, 2015/03/10
- Re: [Qemu-devel] [PATCH v2 3/3] target-arm: get_phys_addr_lpae: more xn control, Peter Maydell, 2015/03/11
- Re: [Qemu-devel] [PATCH v2 3/3] target-arm: get_phys_addr_lpae: more xn control, Andrew Jones, 2015/03/11
- Re: [Qemu-devel] [PATCH v2 3/3] target-arm: get_phys_addr_lpae: more xn control, Peter Maydell, 2015/03/11
- Re: [Qemu-devel] [PATCH v2 3/3] target-arm: get_phys_addr_lpae: more xn control, Andrew Jones, 2015/03/11
- Re: [Qemu-devel] [PATCH v2 3/3] target-arm: get_phys_addr_lpae: more xn control,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH v2 3/3] target-arm: get_phys_addr_lpae: more xn control, Andrew Jones, 2015/03/11
- Re: [Qemu-devel] [PATCH v2 3/3] target-arm: get_phys_addr_lpae: more xn control, Peter Maydell, 2015/03/11