From nobody Tue Nov 11 06:58:46 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1569599429; cv=none; d=zoho.com; s=zohoarc; b=bx8GzYhVtQ87zO3ogQjBi7TTfPu23qrWYU2FAbv7X0biLocnMzbCQXcb5IOxTqaTSyQ9kXSddTf731grt8NZ4B88H8tqOpWmEpJd5vTrWGfYkPwy7jVB7F7JzO4mqh7RsA8SOaoScRYvFBbnTJfD7ggJhzHfZER7UAv7YA+khgc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569599429; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=glJgRWr8FQ3ibd8AfoeD6Dglh3SNzCK6pyGf/sZndrA=; b=R+wV9+fuevxgY5aSNczfV9syRNNVudQ2MVao73ueT1JwYZuEGo5vA0p+L/8C9hOZl1yFooeQPANKZzzjmzTcs1d3/ITTS6qBkirHB/zEk5fHBhbAYwMe7pdA4tzWr15wMbK096XGrkTKl4GtV+retpvjTZUTw5bM08JlOJ+cRl4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1569599429171263.40303330778045; Fri, 27 Sep 2019 08:50:29 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iDsUq-0007Br-75; Fri, 27 Sep 2019 15:49:28 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iDsUo-0007Bm-Uf for xen-devel@lists.xenproject.org; Fri, 27 Sep 2019 15:49:26 +0000 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by localhost (Halon) with ESMTPS id 61cf3782-e13e-11e9-97fb-bc764e2007e4; Fri, 27 Sep 2019 15:49:26 +0000 (UTC) X-Inumbo-ID: 61cf3782-e13e-11e9-97fb-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1569599366; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KGAQM1rZaCD4lEAxN7aY1t7+lO/IJReRIyP73x1F5VQ=; b=PlTedcWsrgbGjCTZqyxUk2xpZrxl9NZC/VPCD5GGa8DRwYgaQt1hH4CM E/oPiK+/F1NJmP9BX5NXyFjKOYltQ3neET1qo2avb26ALG950lN/92Sh/ j5fB1vQzCFuSvOAU4HLUU013dgEkO1cQtP7JjLQSWeYX+2JD/0n6kbZy0 U=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ross.lagerwall@citrix.com; spf=Pass smtp.mailfrom=ross.lagerwall@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of ross.lagerwall@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="ross.lagerwall@citrix.com"; x-sender="ross.lagerwall@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of ross.lagerwall@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="ross.lagerwall@citrix.com"; x-sender="ross.lagerwall@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="ross.lagerwall@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: NshxXvfUVHf0jLp4BKw3wWEBxdkf4eIxOcSF5RU0FKTiI2jtqAwjUBXjCzVhSFMMZlq8yRC4RY eDLczpUKwSyiF1m4Qi12cQ3q/F5+pXMJqzmI7iXmkPkdZh6WQbE+t8TarfGlmZUTBuHD1sUGFF ijJNPli7xX3bp16ZnR7DTtY12iRSk70DBMPEIVrHEIUTEwPQt89Qa2h0iB8gniNZBy0MjiUngk 6O5gJjtbxy4BZAt2VQRraLWjtJp9WFvGoXKCoTjGtvcBpR1UpvL2UuDWIayACrJ1NyB2U1KEHw 8AU= X-SBRS: 2.7 X-MesageID: 6179359 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,556,1559534400"; d="scan'208";a="6179359" From: Ross Lagerwall To: Date: Fri, 27 Sep 2019 16:49:20 +0100 Message-ID: <20190927154920.13713-1-ross.lagerwall@citrix.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] xen/efi: Set nonblocking callbacks X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Stefano Stabellini , Russell King , Ross Lagerwall , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Boris Ostrovsky , Thomas Gleixner Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Other parts of the kernel expect these nonblocking EFI callbacks to exist and crash when running under Xen. Since the implementations of xen_efi_set_variable() and xen_efi_query_variable_info() do not take any locks, use them for the nonblocking callbacks too. Signed-off-by: Ross Lagerwall Acked-by: Stefano Stabellini Reviewed-by: Juergen Gross --- arch/arm/xen/efi.c | 2 ++ arch/x86/xen/efi.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/xen/efi.c b/arch/arm/xen/efi.c index d687a73044bf..cb2aaf98e243 100644 --- a/arch/arm/xen/efi.c +++ b/arch/arm/xen/efi.c @@ -19,7 +19,9 @@ void __init xen_efi_runtime_setup(void) efi.get_variable =3D xen_efi_get_variable; efi.get_next_variable =3D xen_efi_get_next_variable; efi.set_variable =3D xen_efi_set_variable; + efi.set_variable_nonblocking =3D xen_efi_set_variable; efi.query_variable_info =3D xen_efi_query_variable_info; + efi.query_variable_info_nonblocking =3D xen_efi_query_variable_info; efi.update_capsule =3D xen_efi_update_capsule; efi.query_capsule_caps =3D xen_efi_query_capsule_caps; efi.get_next_high_mono_count =3D xen_efi_get_next_high_mono_count; diff --git a/arch/x86/xen/efi.c b/arch/x86/xen/efi.c index 0d3365cb64de..7e3eb70f411a 100644 --- a/arch/x86/xen/efi.c +++ b/arch/x86/xen/efi.c @@ -65,7 +65,9 @@ static efi_system_table_t __init *xen_efi_probe(void) efi.get_variable =3D xen_efi_get_variable; efi.get_next_variable =3D xen_efi_get_next_variable; efi.set_variable =3D xen_efi_set_variable; + efi.set_variable_nonblocking =3D xen_efi_set_variable; efi.query_variable_info =3D xen_efi_query_variable_info; + efi.query_variable_info_nonblocking =3D xen_efi_query_variable_info; efi.update_capsule =3D xen_efi_update_capsule; efi.query_capsule_caps =3D xen_efi_query_capsule_caps; efi.get_next_high_mono_count =3D xen_efi_get_next_high_mono_count; --=20 2.21.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel