Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-06 Thread Jean-Philippe Brucker
On Thu, Jun 06, 2024 at 03:05:02PM +1000, Gavin Shan wrote: > > This commit moves the page tables from .rodata to .data. When linking > > IdMap.obj into ArmPlatformPrePeiCore.dll, the alignment of the .text > > section changes from 0x1000 to 0x800. This change comes from the linker > > script putti

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-06 Thread Gavin Shan
On 6/6/24 15:05, Gavin Shan wrote: Even the edk2 for the guest can be built successfully, but I'm not able to try it because I'm unable to bring up the host now. I tried to rebuild the environment from scratch, the host runs into crash inside EDK2 unfortunately...   TF-RMM:   https://git.cod

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-05 Thread Gavin Shan
On 6/6/24 01:56, Jean-Philippe Brucker wrote: On Wed, Jun 05, 2024 at 11:28:47AM +1000, Gavin Shan wrote: WriteSections64(): /home/gavin/sandbox/CCA/edk2-guest/Build/ArmVirtQemu-AARCH64/DEBUG_GCC5/AARCH64/ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore/DEBUG/ArmPlatformPrePeiCore.dll AARCH64

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-05 Thread Jean-Philippe Brucker
On Wed, Jun 05, 2024 at 11:28:47AM +1000, Gavin Shan wrote: > > >WriteSections64(): > > > /home/gavin/sandbox/CCA/edk2-guest/Build/ArmVirtQemu-AARCH64/DEBUG_GCC5/AARCH64/ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore/DEBUG/ArmPlatformPrePeiCore.dll > > > AARCH64 small code model requires identic

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-04 Thread Gavin Shan
Hi Jean, On 6/4/24 21:15, Jean-Philippe Brucker wrote: On Tue, Jun 04, 2024 at 01:02:08PM +1000, Gavin Shan wrote: On 6/3/24 18:24, Jean-Philippe Brucker wrote: On Sat, Jun 01, 2024 at 08:14:46PM +1000, Gavin Shan wrote: ---> guest edk2 # git clone https://git.codelinaro.org/linaro/dcap/edk2

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-04 Thread Ard Biesheuvel
On Tue, 4 Jun 2024 at 20:08, Jean-Philippe Brucker wrote: > > On Fri, May 31, 2024 at 05:24:44PM +0200, Ard Biesheuvel wrote: > > > I'm able to reproduce this even without RME. This code was introduced > > > recently by c98f7f755089 ("ArmVirtPkg: Use dynamic PCD to set the SMCCC > > > conduit"). M

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-04 Thread Jean-Philippe Brucker
On Fri, May 31, 2024 at 05:24:44PM +0200, Ard Biesheuvel wrote: > > I'm able to reproduce this even without RME. This code was introduced > > recently by c98f7f755089 ("ArmVirtPkg: Use dynamic PCD to set the SMCCC > > conduit"). Maybe Ard (Cc'd) knows what could be going wrong here. > > > > A sligh

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-04 Thread Jean-Philippe Brucker
Hi Gavin, On Tue, Jun 04, 2024 at 01:02:08PM +1000, Gavin Shan wrote: > Hi Jean, > > On 6/3/24 18:24, Jean-Philippe Brucker wrote: > > On Sat, Jun 01, 2024 at 08:14:46PM +1000, Gavin Shan wrote: > > > ---> guest edk2 > > > > > > # git clone https://git.codelinaro.org/linaro/dcap/edk2.git edk2-gu

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-03 Thread Gavin Shan
Hi Jean, On 6/3/24 18:24, Jean-Philippe Brucker wrote: On Sat, Jun 01, 2024 at 08:14:46PM +1000, Gavin Shan wrote: ---> guest edk2 # git clone https://git.codelinaro.org/linaro/dcap/edk2.git edk2-guest # cd edk2-guest; git checkout origin/cca/v2 -b cca/v2 # git submodule update --init --recurs

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-03 Thread Jean-Philippe Brucker
Hi Gavin, On Sat, Jun 01, 2024 at 08:14:46PM +1000, Gavin Shan wrote: > ---> guest edk2 > > # git clone https://git.codelinaro.org/linaro/dcap/edk2.git edk2-guest > # cd edk2-guest; git checkout origin/cca/v2 -b cca/v2 > # git submodule update --init --recursive; \ > source edksetup.sh; make -

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-06-01 Thread Gavin Shan
Hi Jean and Ard, On 6/1/24 01:09, Jean-Philippe Brucker wrote: On Fri, May 31, 2024 at 04:23:13PM +1000, Gavin Shan wrote: I got a chance to try CCA software components, suggested by [1]. However, the edk2 is stuck somewhere. I didn't reach to stage of loading guest kernel yet. I'm replying t

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-31 Thread Jean-Philippe Brucker
On Fri, May 31, 2024 at 11:16:30PM +0900, Itaru Kitayama wrote: > Thanks! I wasn’t aware of it The good news is that after whole day of try and > error attempts I was able to > bring up a Realm VM on FVP. Here’s my version of overlay yaml, cca-v2.yaml: That is good news, thanks for the update >

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-31 Thread Ard Biesheuvel
On Fri, 31 May 2024 at 17:09, Jean-Philippe Brucker wrote: > > Hi Gavin, > > On Fri, May 31, 2024 at 04:23:13PM +1000, Gavin Shan wrote: > > I got a chance to try CCA software components, suggested by [1]. However, > > the edk2 > > is stuck somewhere. I didn't reach to stage of loading guest kern

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-31 Thread Jean-Philippe Brucker
Hi Gavin, On Fri, May 31, 2024 at 04:23:13PM +1000, Gavin Shan wrote: > I got a chance to try CCA software components, suggested by [1]. However, the > edk2 > is stuck somewhere. I didn't reach to stage of loading guest kernel yet. I'm > replying > to see if anyone has a idea. ... > INFO:BL3

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-31 Thread Itaru Kitayama
t;> On May 30, 2024, at 22:30, Philippe Mathieu-Daudé >>>> wrote: >>>> >>>> Cc'ing more developers >>>> >>>> On 30/5/24 06:30, Itaru Kitayama wrote: >>>>> Hi, >>>>> When I see a Realm VM creation

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-31 Thread Jean-Philippe Brucker
developers > > > > > > On 30/5/24 06:30, Itaru Kitayama wrote: > > >> Hi, > > >> When I see a Realm VM creation fails with: > > >> Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159: > > >> qemu-system-aarc

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-31 Thread Peter Maydell
I see a Realm VM creation fails with: > >> Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159: > >> qemu-system-aarch64: RME: failed to configure SVE: Invalid argument > >> test.sh: line 8: 2502 Aborted qemu-system-aarch64 -M > >> &#x

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-30 Thread Gavin Shan
On 5/31/24 14:19, Itaru Kitayama wrote: On May 30, 2024, at 22:30, Philippe Mathieu-Daudé wrote: Cc'ing more developers On 30/5/24 06:30, Itaru Kitayama wrote: Hi, When I see a Realm VM creation fails with: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159: qemu-s

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-30 Thread Itaru Kitayama
> On May 30, 2024, at 22:30, Philippe Mathieu-Daudé wrote: > > Cc'ing more developers > > On 30/5/24 06:30, Itaru Kitayama wrote: >> Hi, >> When I see a Realm VM creation fails with: >> Unexpected error in rme_configure_one() at ../target/arm/kvm-

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-30 Thread Philippe Mathieu-Daudé
Cc'ing more developers On 30/5/24 06:30, Itaru Kitayama wrote: Hi, When I see a Realm VM creation fails with: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159: qemu-system-aarch64: RME: failed to configure SVE: Invalid argument test.sh: line 8: 2502 Ab

Re: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-30 Thread Peter Maydell
On Thu, 30 May 2024 at 14:26, Itaru Kitayama wrote: > > Hi, > > When I see a Realm VM creation fails with: > > Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159:m > qemu-system-aarch64: RME: failed to configure SVE: Invalid argument The file target/

Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159

2024-05-30 Thread Itaru Kitayama
Hi, When I see a Realm VM creation fails with: Unexpected error in rme_configure_one() at ../target/arm/kvm-rme.c:159: qemu-system-aarch64: RME: failed to configure SVE: Invalid argument test.sh: line 8: 2502 Aborted qemu-system-aarch64 -M 'virt,acpi=off,gic-version=3&