Re: [PATCH] arm: Don't remove EL3 exposure for SMC conduit

2021-11-15 Thread Alexander Graf
On 15.11.21 13:08, Alex Bennée wrote: Alexander Graf writes: On 15.11.21 11:46, Peter Maydell wrote: On Sun, 14 Nov 2021 at 17:41, Alexander Graf wrote: Am 14.11.2021 um 18:20 schrieb Peter Maydell : This is tricky, because we use the cpu->isar values to determine whether we should be

Re: [PATCH] arm: Don't remove EL3 exposure for SMC conduit

2021-11-15 Thread Alex Bennée
Alexander Graf writes: > On 15.11.21 11:46, Peter Maydell wrote: >> On Sun, 14 Nov 2021 at 17:41, Alexander Graf wrote: >>> >>> Am 14.11.2021 um 18:20 schrieb Peter Maydell : This is tricky, because we use the cpu->isar values to determine whether we should be emulating things.

Re: [PATCH] arm: Don't remove EL3 exposure for SMC conduit

2021-11-15 Thread Alexander Graf
On 15.11.21 11:46, Peter Maydell wrote: On Sun, 14 Nov 2021 at 17:41, Alexander Graf wrote: Am 14.11.2021 um 18:20 schrieb Peter Maydell : This is tricky, because we use the cpu->isar values to determine whether we should be emulating things. So this change means we now create an

Re: [PATCH] arm: Don't remove EL3 exposure for SMC conduit

2021-11-15 Thread Peter Maydell
On Sun, 14 Nov 2021 at 17:41, Alexander Graf wrote: > > > > > Am 14.11.2021 um 18:20 schrieb Peter Maydell : > > This is tricky, because we use the cpu->isar values to determine whether > > we should be emulating things. So this change means we now create an > > inconsistent CPU which in some

Re: [PATCH] arm: Don't remove EL3 exposure for SMC conduit

2021-11-14 Thread Alexander Graf
On 14.11.21 18:41, Alexander Graf wrote: Am 14.11.2021 um 18:20 schrieb Peter Maydell : On Sun, 14 Nov 2021 at 10:56, Alexander Graf wrote: When we expose an SMC conduit, we're implicitly telling the guest that there is EL3 available because it needs to call it. While that EL3 then is

Re: [PATCH] arm: Don't remove EL3 exposure for SMC conduit

2021-11-14 Thread Alexander Graf
> Am 14.11.2021 um 18:20 schrieb Peter Maydell : > > On Sun, 14 Nov 2021 at 10:56, Alexander Graf wrote: >> >> When we expose an SMC conduit, we're implicitly telling the guest that >> there is EL3 available because it needs to call it. While that EL3 then >> is not backed by the emulated

Re: [PATCH] arm: Don't remove EL3 exposure for SMC conduit

2021-11-14 Thread Peter Maydell
On Sun, 14 Nov 2021 at 10:56, Alexander Graf wrote: > > When we expose an SMC conduit, we're implicitly telling the guest that > there is EL3 available because it needs to call it. While that EL3 then > is not backed by the emulated CPU, from the guest's EL2 point of view, > it still means there

[PATCH] arm: Don't remove EL3 exposure for SMC conduit

2021-11-14 Thread Alexander Graf
When we expose an SMC conduit, we're implicitly telling the guest that there is EL3 available because it needs to call it. While that EL3 then is not backed by the emulated CPU, from the guest's EL2 point of view, it still means there is an EL3 to call into. This is a problem for VMware ESXi,