]> Git Repo - qemu.git/commit
s390x/tcg: low-address protection support
authorDavid Hildenbrand <[email protected]>
Mon, 16 Oct 2017 20:23:58 +0000 (22:23 +0200)
committerCornelia Huck <[email protected]>
Fri, 20 Oct 2017 11:32:10 +0000 (13:32 +0200)
commit2bcf018340cbf233f7145e643fc1bb367f23fd90
treed5372b76621a9f9ee5734e25277a7997c8c98859
parentf52bfb12143e29d7c8bd827bdb751aee47a9694e
s390x/tcg: low-address protection support

This is a neat way to implement low address protection, whereby
only the first 512 bytes of the first two pages (each 4096 bytes) of
every address space are protected.

Store a tec of 0 for the access exception, this is what is defined by
Enhanced Suppression on Protection in case of a low address protection
(Bit 61 set to 0, rest undefined).

We have to make sure to to pass the access address, not the masked page
address into mmu_translate*().

Drop the check from testblock. So we can properly test this via
kvm-unit-tests.

This will check every access going through one of the MMUs.

Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: David Hildenbrand <[email protected]>
Message-Id: <20171016202358[email protected]>
[CH: restored error message for access register mode]
Signed-off-by: Cornelia Huck <[email protected]>
target/s390x/excp_helper.c
target/s390x/mem_helper.c
target/s390x/mmu_helper.c
This page took 0.025359 seconds and 4 git commands to generate.