Re: [Qemu-devel] [PATCH] target/arm: Allow to switch from MON->HYP on AArch32

2019-01-17 Thread Peter Maydell
On Thu, 10 Jan 2019 at 10:34, Peter Maydell wrote: > > On Thu, 10 Jan 2019 at 06:43, Alexander Graf wrote: > > > > > > > > On 10.01.19 00:08, Peter Maydell wrote: > > > On Wed, 9 Jan 2019 at 17:14, Alexander Graf wrote: > > >> > > >> On 01/09/2019 05:59 PM, Peter Maydell wrote: > > >>> On Wed, 9

Re: [Qemu-devel] [PATCH] target/arm: Allow to switch from MON->HYP on AArch32

2019-01-10 Thread Peter Maydell
On Thu, 10 Jan 2019 at 06:43, Alexander Graf wrote: > > > > On 10.01.19 00:08, Peter Maydell wrote: > > On Wed, 9 Jan 2019 at 17:14, Alexander Graf wrote: > >> > >> On 01/09/2019 05:59 PM, Peter Maydell wrote: > >>> On Wed, 9 Jan 2019 at 16:52, Peter Maydell > >>> wrote: > On Wed, 9 Jan 20

Re: [Qemu-devel] [PATCH] target/arm: Allow to switch from MON->HYP on AArch32

2019-01-09 Thread Alexander Graf
On 10.01.19 00:08, Peter Maydell wrote: > On Wed, 9 Jan 2019 at 17:14, Alexander Graf wrote: >> >> On 01/09/2019 05:59 PM, Peter Maydell wrote: >>> On Wed, 9 Jan 2019 at 16:52, Peter Maydell wrote: On Wed, 9 Jan 2019 at 15:26, Alexander Graf wrote: > In U-boot, we switch from S-SVC -

Re: [Qemu-devel] [PATCH] target/arm: Allow to switch from MON->HYP on AArch32

2019-01-09 Thread Peter Maydell
On Wed, 9 Jan 2019 at 17:14, Alexander Graf wrote: > > On 01/09/2019 05:59 PM, Peter Maydell wrote: > > On Wed, 9 Jan 2019 at 16:52, Peter Maydell wrote: > >> On Wed, 9 Jan 2019 at 15:26, Alexander Graf wrote: > >>> In U-boot, we switch from S-SVC -> MON -> HYP when we want to enter > >>> HYP mo

Re: [Qemu-devel] [PATCH] target/arm: Allow to switch from MON->HYP on AArch32

2019-01-09 Thread Alexander Graf
On 01/09/2019 05:59 PM, Peter Maydell wrote: On Wed, 9 Jan 2019 at 16:52, Peter Maydell wrote: On Wed, 9 Jan 2019 at 15:26, Alexander Graf wrote: In U-boot, we switch from S-SVC -> MON -> HYP when we want to enter HYP mode. This dance seems to work ok (hence it's there in the code base), but

Re: [Qemu-devel] [PATCH] target/arm: Allow to switch from MON->HYP on AArch32

2019-01-09 Thread Peter Maydell
On Wed, 9 Jan 2019 at 16:52, Peter Maydell wrote: > > On Wed, 9 Jan 2019 at 15:26, Alexander Graf wrote: > > > > In U-boot, we switch from S-SVC -> MON -> HYP when we want to enter > > HYP mode. This dance seems to work ok (hence it's there in the code > > base), but breaks with current QEMU. PS

Re: [Qemu-devel] [PATCH] target/arm: Allow to switch from MON->HYP on AArch32

2019-01-09 Thread Peter Maydell
On Wed, 9 Jan 2019 at 15:26, Alexander Graf wrote: > > In U-boot, we switch from S-SVC -> MON -> HYP when we want to enter > HYP mode. This dance seems to work ok (hence it's there in the code > base), but breaks with current QEMU. > > The reason seems to be that we try to see whether we are enter

Re: [Qemu-devel] [PATCH] target/arm: Allow to switch from MON->HYP on AArch32

2019-01-09 Thread Alexander Graf
On 01/09/2019 05:10 PM, Alex Bennée wrote: Alexander Graf writes: In U-boot, we switch from S-SVC -> MON -> HYP when we want to enter HYP mode. This dance seems to work ok (hence it's there in the code base), but breaks with current QEMU. What EL is MON in this case? EL3? In which case I'm co

Re: [Qemu-devel] [PATCH] target/arm: Allow to switch from MON->HYP on AArch32

2019-01-09 Thread Alex Bennée
Alexander Graf writes: > In U-boot, we switch from S-SVC -> MON -> HYP when we want to enter > HYP mode. This dance seems to work ok (hence it's there in the code > base), but breaks with current QEMU. What EL is MON in this case? EL3? In which case I'm confused by the terminology as the ARM A

[Qemu-devel] [PATCH] target/arm: Allow to switch from MON->HYP on AArch32

2019-01-09 Thread Alexander Graf
In U-boot, we switch from S-SVC -> MON -> HYP when we want to enter HYP mode. This dance seems to work ok (hence it's there in the code base), but breaks with current QEMU. The reason seems to be that we try to see whether we are entering HYP mode from the NS side. However, MON is always considere