[PATCH] target/arm: allow setting SCR_EL3.EnTP2 when FEAT_SME is implemented

2022-10-04 Thread Jerome Forissier
with Trusted Firmware-A at EL3 with "-M virt,secure=on -cpu max". Cc: qemu-sta...@nongnu.org Fixes: 78cb9776662a ("target/arm: Enable SME for -cpu max") Signed-off-by: Jerome Forissier --- target/arm/cpu.h| 54 ++--- target/arm/he

[PATCH] hw/arm/boot: set CPTR_EL3.ESM and SCR_EL3.EnTP2 when booting Linux with EL3

2022-10-03 Thread Jerome Forissier
: qemu-sta...@nongnu.org Fixes: 78cb9776662a ("target/arm: Enable SME for -cpu max") Link: [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/arm64/booting.rst?h=v6.0#n321 Signed-off-by: Jerome Forissier --- hw/arm/boot.c | 4 1 file changed, 4 insertions

[PATCH] target/arm: mark SP_EL1 with ARM_CP_EL3_NO_EL2_KEEP

2022-09-27 Thread Jerome Forissier
SP_EL1 must be kept when EL3 is present but EL2 is not. Therefore mark it with ARM_CP_EL3_NO_EL2_KEEP. Fixes: 696ba3771894 ("target/arm: Handle cpreg registration for missing EL") Signed-off-by: Jerome Forissier --- target/arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [RFC PATCH 11/17] hw/sd: Add eMMC support

2022-03-28 Thread Jerome Forissier
Hi Cédric, On 3/18/22 14:28, Cédric Le Goater wrote: > The initial eMMC support from Vincent Palatin was largely reworked to > match the current SD framework. The parameters mimick a real 4GB eMMC, > but it can be set to various sizes. > > This adds a new QOM object class for EMMC devices. That

Re: [PATCH] hw/arm: add control knob to disable kaslr_seed via DTB

2021-12-15 Thread Jerome Forissier
ot environment where the firmware will cryptographically verify >> components having random data in the DTB will cause verification to >> fail. Add a control knob so we can prevent this being added to the >> system DTB. >> >> Signed-off-by: Alex Bennée >> Cc:

[PATCH v2 0/2] hw/arm/virt: dt: add kaslr-seed property

2020-04-20 Thread Jerome Forissier
() instead of qcrypto_random_bytes() - Create kaslr-seed for the non-secure OS too Jerome Forissier (2): hw/arm/virt: dt: move creation of /secure-chosen to create_fdt() hw/arm/virt: dt: add kaslr-seed property hw/arm/virt.c | 20 +++- 1 file changed, 19 insertions(+), 1

[PATCH v2 2/2] hw/arm/virt: dt: add kaslr-seed property

2020-04-20 Thread Jerome Forissier
/torvalds/linux.git/commit/?id=e5bc0c37c97e1 [2] https://github.com/OP-TEE/optee_os/commit/ef262691fe0e Signed-off-by: Jerome Forissier --- hw/arm/virt.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index c3073b7cf19..1b6f3971bf7 100644 --- a/hw/arm

[PATCH v2 1/2] hw/arm/virt: dt: move creation of /secure-chosen to create_fdt()

2020-04-20 Thread Jerome Forissier
The /secure-chosen node is currently used only by create_uart(), but this will change. Therefore move the creation of this node to create_fdt(). Signed-off-by: Jerome Forissier --- hw/arm/virt.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/arm/virt.c b/hw/arm

[PATCH] hw/arm/virt: Add DT property /secure-chosen/kaslr-seed

2020-04-10 Thread Jerome Forissier
: Jerome Forissier --- hw/arm/virt.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 7dc96abf72c..42a6f84086f 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -77,6 +77,7 @@ #include "hw/acpi/generic_event_device.h" #include

[PATCH] hw/arm/virt: Add DT property /secure-chosen/kaslr-seed

2020-04-10 Thread Jerome Forissier
: Jerome Forissier --- hw/arm/virt.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 7dc96abf72c..42a6f84086f 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -77,6 +77,7 @@ #include "hw/acpi/generic_event_device.h" #include

Re: [Qemu-devel] [PATCH] hw/arm/virt: add DT property /secure-chosen/sdtout-path being secure UART

2018-10-15 Thread Jerome Forissier
Hi Peter, On 10/05/2018 11:26 AM, Jerome Forissier wrote: > +CC: Rob Herring > > On 10/05/2018 11:16 AM, Peter Maydell wrote: >> On 5 October 2018 at 09:07, Jerome Forissier >> wrote: >>> Bindings for /secure-chosen and /secure-chosen/stdout-path have been >

Re: [Qemu-devel] [PATCH] hw/arm/virt: add DT property /secure-chosen/sdtout-path being secure UART

2018-10-05 Thread Jerome Forissier
+CC: Rob Herring On 10/05/2018 11:16 AM, Peter Maydell wrote: > On 5 October 2018 at 09:07, Jerome Forissier > wrote: >> Bindings for /secure-chosen and /secure-chosen/stdout-path have been >> proposed 1.5 years ago [1] and implemented in OP-TEE at the same time [2]. >> &

[Qemu-devel] [PATCH] hw/arm/virt: add DT property /secure-chosen/sdtout-path being secure UART

2018-10-05 Thread Jerome Forissier
/commit/4dc31c52544a Signed-off-by: Jerome Forissier --- hw/arm/virt.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 0b57f87abc..a0faa40d64 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -712,6 +712,10 @@ static void create_uart(const VirtMachineState