From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web09.33180.1628835201905448197 for ; Thu, 12 Aug 2021 23:13:22 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=auRff0yz; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=085980678f=gary.lin@hpe.com) Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17D64LZ4014962 for ; Fri, 13 Aug 2021 06:13:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=pps0720; bh=uaSrO2mgm6bVORDn/JO0QcbIF2hzi3pS1BH4p/KVQZs=; b=auRff0yzhoQ5F7BfpKIzrq7Rx9/br2FWA/1yU7M/L3pzt8xrcdjLSmki5IqJ4xOf3s8o /OVRR73nwC5k3nhd2lKM/v86rtLiXKy098u+P++e1eAbqNUxGbMY9FpPJ7Ex92idC7A7 DzeLVS4g+EkOzRWFhrrGI43BGC3a6he7LJ65grCbcl5fvbWg6u0ayngTwg4g1E8x1kTW oAgLHfHKsnbdGIH1OlR00VOPUjPXuhArP1/iqcp1gmpQpJ2+vUP7ju7vJxpoub/AJIgU l+GN4cauog9jbUGhqofxGoeuAKyH7dFgRSpM2tqxi6XoumrBVf0wAffDJx6BsLWJ/ut1 zw== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0a-002e3701.pphosted.com with ESMTP id 3ad7eb4n7n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 13 Aug 2021 06:13:20 +0000 Received: from G9W8453.americas.hpqcorp.net (g9w8453.houston.hp.com [16.216.160.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2353.austin.hpe.com (Postfix) with ESMTPS id B3FDA8D for ; Fri, 13 Aug 2021 06:13:19 +0000 (UTC) Received: from G4W9120.americas.hpqcorp.net (2002:10d2:150f::10d2:150f) by G9W8453.americas.hpqcorp.net (2002:10d8:a0d3::10d8:a0d3) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 13 Aug 2021 06:13:19 +0000 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (15.241.52.10) by G4W9120.americas.hpqcorp.net (16.210.21.15) with Microsoft SMTP Server (TLS) id 15.0.1497.18 via Frontend Transport; Fri, 13 Aug 2021 06:13:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jPzkFpwP8iP1oKui/JFycNq6KOxAQ9X6zpyfpacDcnwwg7MNQBupJ1vRomrPAFitgJgh+Vsgd7v28oRTSmeCwtkK1EcSj9xlWj7lsq2kp/WE1ZxtqB6M6Lb/LcNk4FwDH4KRCxGWBGlBdZH5PZhJpgB26Z6VQuj69lCMparvL6JUjkkiaDko0KA9wTp52B4uxGhbGWvT2/RIdiK9usMlsvqtcJUmUg/IaX8gXCCkGhuL/FThiqPVz45wQ1kRlb3Am9uNWIkeODUMok17iJ9TfZIKrSu564yphnCpUJ3JYKYf3BUiS9IqCnkS/Ya/T3JhP8bHKsF9p/QDiXXaot9+iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uaSrO2mgm6bVORDn/JO0QcbIF2hzi3pS1BH4p/KVQZs=; b=hx8ntYhw51xenXSM3vPLsU1gS/B5MLQXtEtZ7dBcYcVmpkfbgo0ADNTqLc9aSCTdlcLCVqzwslgdJEIRyZG1dPLTFiG7z64H5zk39RvUGp6hHrN6GP/3FiSb5GJVgUR7de0C5y/PXp/MLB+r6onnpB/uV/4HOfS+HN82jsCBOHE1NzqIxkxkxvCtyxWexfByXh9puik3+7uoLsWC0MxeXw5rhIHgn8HPjujvWJtnQBnSilr35Y7NUqI4XdzbW5QWMEXw4QBpACfRRJAyHbfWl46VNL7yLUiEAeMLRDnq+MeWmzwMKDa9thSK6pQOvqWb3qbgV6N8d6rWKYFQUDOM9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; Received: from AT5PR8401MB0387.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:741f::21) by AT5PR8401MB1185.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7420::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.17; Fri, 13 Aug 2021 06:13:18 +0000 Received: from AT5PR8401MB0387.NAMPRD84.PROD.OUTLOOK.COM ([fe80::106b:abb8:386b:a2db]) by AT5PR8401MB0387.NAMPRD84.PROD.OUTLOOK.COM ([fe80::106b:abb8:386b:a2db%9]) with mapi id 15.20.4415.018; Fri, 13 Aug 2021 06:13:18 +0000 From: "Lin, Gary (HPS OE-Linux)" To: Subject: [PATCH v2 0/5] Fix OvmfXen HVM Direct kernel boot failure Date: Fri, 13 Aug 2021 14:13:00 +0800 Message-ID: <20210813061305.17519-1-gary.lin@hpe.com> X-Mailer: git-send-email 2.31.1 X-ClientProxiedBy: HK0PR01CA0072.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::36) To AT5PR8401MB0387.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:741f::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (111.240.110.200) by HK0PR01CA0072.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16 via Frontend Transport; Fri, 13 Aug 2021 06:13:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 32e4c4b9-f52d-4c5d-8190-08d95e217166 X-MS-TrafficTypeDiagnostic: AT5PR8401MB1185: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 16BBLgGIl06ljILnzSjYgSs8kBF0HBFyT9VLf7g6GZ8Abre7KLe+TeR4YgZ0sX265ZGB34C8HgxCmDVszKx0wzHSCSChRFsrPZDWLYf6MTHsR05dsnoZ5Ld1VHyHJmFJD1xZz4sSIoRJptBBcnzo5K0EV66YvB0fv02KmX7n2CEPj1rH2/BlNSVZlDwxF12NYyqxS6VPNJi84ROGl2WMUyF1MzzOpUQg2DfkG5kfH6M8r0dGsvMNRnMnNK6RsnCiUfDzJW0VVmykBcR4G0gjiadjlQSwxj6exOUVrG9S4VIuH+NYBvuweVCSdgt446FRhd5ZotUh7Anb5oTA/QanIOjKwamIKSxavFb/I7e1/QDjpat/DAemb1IegoxWVwUAPAqjtBQwCrQdqBonugBIiJLs3hfsvkAZ69xejaZb1JBsQPa5TgIuiBujI10LS5MSLhRzioj5X6vvbEexfYHThTAqYjarasI9ou1GuBA146Q2oKqq1846U02CklLunTeJEO6+LYwJAbsGrN2/CS/BK9PrcF4H3KsNMPy/b6JCDoaq70RQIcd2l0c5cqrvnbzXAyVX2oASc850xHB/mjf8woqt3hEHa7NBXGX438euNQYgxq4UlZqoEjW9DOut7EGwJS64gBGIiZaFgkb9XBagMA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AT5PR8401MB0387.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(346002)(396003)(39860400002)(366004)(376002)(136003)(19627235002)(6486002)(186003)(26005)(6496006)(478600001)(66946007)(66476007)(66556008)(83380400001)(6666004)(2906002)(86362001)(8936002)(36756003)(38100700002)(8676002)(1076003)(5660300002)(6916009)(44832011)(316002)(956004)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?I3ha3m2Nwyj/rQi0uD59wuRdZ4E66q7CI6DW7bajj33pthYv6vP8mEEGvalD?= =?us-ascii?Q?uIuPxC6TmfnONpWmbk8NhVwnSFhg1FvkcLdaNskCrh70MGH8Vvel6vVGOdZ/?= =?us-ascii?Q?BV2LJpLywax1wt1mWJQpDl0iHWfPqsSVNalyMML7wU6JB8DjrL9c7DXp2/v4?= =?us-ascii?Q?XyTiEW6JPqTMd1Me1djtt+1Pr7y1rYQSrD0S7vd8U3rxXhTnBu/fihD6+8ck?= =?us-ascii?Q?ySpDmMP++IhV6b73A1JuSDM/u+p8ZYA+AKtE9rB4nJVztTcGyH5l5mu5h/st?= =?us-ascii?Q?GQEAimqsgJofdTxJMndcc8hjmCCCruJp0Z4RUfezb7E5KWlfXdEI+LGKBOY9?= =?us-ascii?Q?aqFmypuVDvQWN/3JXZqHWpLrdoaUQXcPYVZ+t/jiLfgJ4EtjxnfDT5I8e0ff?= =?us-ascii?Q?eZG77DmEGJRI5gKIW8uB32yAlNA8R+iOLG9VK5VSAngji2m0zw6gOl1j627u?= =?us-ascii?Q?1Bj2K+wzf0CA/RxWGfeYwibPrYeNJlMyoZnTtW+VICC7gCP6sfP9a65y0gFF?= =?us-ascii?Q?mMupM1g1OlUMzPWGmW6iHtzviZOM5LgZC/0zjeHP4kbW+Ggyhv+tDVRpI4hd?= =?us-ascii?Q?p3pNgLcjTrczNZ6DK3IgN74c/KOlV0UdD2MByG8AwGizIjpU7uMWMeKlzKTg?= =?us-ascii?Q?gOW+TMvO7HnNWUAXxpeX5FHGXWAuJfEOPTc5YIj0uvWp034lKGO32/3hlhSf?= =?us-ascii?Q?atq/FICu41WISB1An3bh/c8+nmhQmKMNwXHub53bRIR+eIwLyTgGziSguVl9?= =?us-ascii?Q?3cQqjJskiDzb+Uyq9OLabKYM6HMpJ8oSqfNtC4uF5/R1DAsgEy8tjK8whF8m?= =?us-ascii?Q?M9PQmk17ZukgIoGNC4DBySQ5u5x0eKv9+g4ScIBJoIvC64p8SsV4N9LnG4gY?= =?us-ascii?Q?Fw99xb0pujbYLXQY4EvnZ0SJmo/LqvfqzhXHCI7S1k9B7+GwoVRZL4mjaz3O?= =?us-ascii?Q?SEwREty4LRbHiB0XVoXqNxQ2da0cFcXZWMGdIgARXYU3RYdM4BycDBzj90Vl?= =?us-ascii?Q?cXNDl+PfwUYMRQ2QTDx3QCHPxT9Xs4AdvXRx0anTMBMKXk5lu13tBfDBNog/?= =?us-ascii?Q?c4UdhZ0F0r+D6YyE7JQwN+OlASTr0IVw2Oyi1eLyV4H31AX5lmrwkzkjhBnn?= =?us-ascii?Q?Iwx2ZRWZLCC5k8P03h/LHvuya1BdaQU6rpzO3y9n1npYRgUKk5KRSVc3kRgx?= =?us-ascii?Q?8Vn1YqRCz79vRxgbrlG4XIU/C/LS3aoQ7eaPBCmvjyPYJvLEmgXpABpyZs2A?= =?us-ascii?Q?3C7/xv2jL0U4Mm1lmovZS1+uX5TZESK2XBoUhgs82/y3auWaLg8WUSxqpHQs?= =?us-ascii?Q?045FyhUOGDjafl+60zUaBICN?= X-MS-Exchange-CrossTenant-Network-Message-Id: 32e4c4b9-f52d-4c5d-8190-08d95e217166 X-MS-Exchange-CrossTenant-AuthSource: AT5PR8401MB0387.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2021 06:13:18.0840 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oGtxVUGRwrAiFqZd86k56He60kQuqZapBKQJthxvMBAxZNGwMAhI8WH+qEEQSYR983oYcaS7iCDra+PtaI/d+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AT5PR8401MB1185 X-OriginatorOrg: hpe.com X-Proofpoint-ORIG-GUID: 94RovkoSa8_IpR3_2hsfB8GrycgLPDJd X-Proofpoint-GUID: 94RovkoSa8_IpR3_2hsfB8GrycgLPDJd X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-13_01:2021-08-12,2021-08-13 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 suspectscore=0 clxscore=1015 phishscore=0 impostorscore=0 mlxlogscore=838 adultscore=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108130038 Content-Transfer-Encoding: 8bit Content-Type: text/plain When using HVM Direct kernel boot with OvmfXen, it could fail at the S3BootScript due to the inconsistency between QemuFwCfgS3Enabled() and PcdAcpiS3Enable. Besides, QemuKernelLoaderFsDxe wasn't included in OvmfXen, so the firmware couldn't fetch kernel/initrd from fw_cfg. This patch series initializes PcdAcpiS3Enable and adds QemuKernelLoaderFsDxe into OvmfXen. Besides, QemuFwCfgS3Enabled() is replaced with PcdAcpiS3Enable in several OVMF libraries to avoid the potential inconsistency. v2: - Amend the description and address "HVM Direct Kernel Boot" - Add the comment for the conditional test of QemuFwCfgS3Enabled() - Remove unused QemuFwCfgLib - Update my email address Gary Lin (5): OvmfPkg/OvmfXen: set PcdAcpiS3Enable at initialization OvmfPkg/OvmfXen: add QemuKernelLoaderFsDxe OvmfPkg/LockBoxLib: use PcdAcpiS3Enable to detect S3 support OvmfPkg/PlatformBootManagerLib: use PcdAcpiS3Enable to detect S3 support OvmfPkg/SmmControl2Dxe: use PcdAcpiS3Enable to detect S3 support OvmfPkg/OvmfXen.dsc | 1 + OvmfPkg/OvmfXen.fdf | 1 + OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf | 3 +-- .../PlatformBootManagerLib.inf | 1 + OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf | 2 ++ OvmfPkg/XenPlatformPei/XenPlatformPei.inf | 2 ++ OvmfPkg/Library/LockBoxLib/LockBoxDxe.c | 4 +--- .../Library/PlatformBootManagerLib/BdsPlatform.c | 2 +- OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.c | 4 +--- OvmfPkg/XenPlatformPei/Platform.c | 13 +++++++++++++ 10 files changed, 24 insertions(+), 9 deletions(-) -- 2.31.1