From afacb0a98fca2c9848b67a60aea4f1ce8c5268a9 Mon Sep 17 00:00:00 2001 From: Juergen Gross Date: Wed, 8 Sep 2021 14:52:32 +0200 Subject: [PATCH 1/3] Config: use Mini-OS commit 9f09744aa3e5982 for xen-unstable Switch the used Mini-OS commit to 9f09744aa3e5982 in xen-unstable. [ 9f09744aa3e5982 is current mini-os.git#master -iwj. ] Signed-off-by: Juergen Gross Acked-by: Ian Jackson --- Config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Config.mk b/Config.mk index 4d723eec1d..e85bf18654 100644 --- a/Config.mk +++ b/Config.mk @@ -246,7 +246,7 @@ MINIOS_UPSTREAM_URL ?= git://xenbits.xen.org/mini-os.git endif OVMF_UPSTREAM_REVISION ?= b37cfdd2807181aed2fee1e17bd7ec1190db266a QEMU_UPSTREAM_REVISION ?= master -MINIOS_UPSTREAM_REVISION ?= 051b87bb9c19609976fb038f386920e1ce5454c5 +MINIOS_UPSTREAM_REVISION ?= 9f09744aa3e5982a083ecf8e9cd2123f477081f9 SEABIOS_UPSTREAM_REVISION ?= rel-1.14.0 From 2e46d73b4c7562f7b104e9e10fe302316af13959 Mon Sep 17 00:00:00 2001 From: Juergen Gross Date: Wed, 8 Sep 2021 14:43:03 +0200 Subject: [PATCH 2/3] tools/libs: fix build of stubdoms In case abi-dumper is available the stubdom builds will fail due to a false dependency on dynamic loadable libraries. Fix that. Fixes: d7c9f7a7a3959913b4 ("tools/libs: Write out an ABI analysis when abi-dumper is available") Signed-off-by: Juergen Gross Acked-by: Andrew Cooper --- tools/libs/libs.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libs/libs.mk b/tools/libs/libs.mk index 84130ccbaf..ebdb2a4782 100644 --- a/tools/libs/libs.mk +++ b/tools/libs/libs.mk @@ -98,10 +98,12 @@ lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxen$(LIBNAME).map # If abi-dumper is available, write out the ABI analysis ifneq ($(ABI_DUMPER),) +ifneq ($(nosharedlibs),y) libs: $(PKG_ABI) $(PKG_ABI): lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR) headers.lst $(ABI_DUMPER) $< -o $@ -public-headers headers.lst -lver $(MAJOR).$(MINOR) endif +endif .PHONY: install install: build From 1c3ed9c908732d19660fbe83580674d585464d4c Mon Sep 17 00:00:00 2001 From: Oleksandr Tyshchenko Date: Mon, 27 Sep 2021 16:54:10 +0300 Subject: [PATCH 3/3] xen/arm: optee: Fix arm_smccc_smc's a0 for OPTEE_SMC_DISABLE_SHM_CACHE Fix a possible copy-paste error in arm_smccc_smc's first argument (a0) for OPTEE_SMC_DISABLE_SHM_CACHE case. This error causes Linux > v5.14-rc5 (b5c10dd04b7418793517e3286cde5c04759a86de optee: Clear stale cache entries during initialization) to stuck repeatedly issuing OPTEE_SMC_DISABLE_SHM_CACHE call and waiting for the result to be OPTEE_SMC_RETURN_ENOTAVAIL which will never happen. Signed-off-by: Oleksandr Tyshchenko Reviewed-by: Bertrand Marquis Reviewed-by: Volodymyr Babchuk Acked-by: Stefano Stabellini Fixes: 2e35cdf9b2ca ("xen/arm: optee: add OP-TEE mediator skeleton") Backport: 4.13+ --- xen/arch/arm/tee/optee.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/tee/optee.c b/xen/arch/arm/tee/optee.c index 345361566e..6df0d44eb9 100644 --- a/xen/arch/arm/tee/optee.c +++ b/xen/arch/arm/tee/optee.c @@ -1692,7 +1692,7 @@ static bool optee_handle_call(struct cpu_user_regs *regs) return true; case OPTEE_SMC_DISABLE_SHM_CACHE: - arm_smccc_smc(OPTEE_SMC_ENABLE_SHM_CACHE, 0, 0, 0, 0, 0, 0, + arm_smccc_smc(OPTEE_SMC_DISABLE_SHM_CACHE, 0, 0, 0, 0, 0, 0, OPTEE_CLIENT_ID(current->domain), &resp); set_user_reg(regs, 0, resp.a0); if ( resp.a0 == OPTEE_SMC_RETURN_OK ) {