From nobody Sat May 4 02:32:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+42422+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+42422+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1560500630; cv=none; d=zoho.com; s=zohoarc; b=Sw19AiqqfVN/Ch+3Ac46byLHiCDfbJ60g8IWkyeydVhKKMv3/smOtC77nGvXV/lkiPvyL5/NI1uCLIXIrM0KEj4bRpFT1Yohsnya4HdCZOzTPcWCB7eILOXSNZEwyjMGx0WHe/PoYJaj965P5DqaiR04/XKDPU9ffKBAeivUOBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560500630; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=dn1alg5Tat1lRO+vuKazoefwUNFj97Lua5ck6Hbduzs=; b=Esk++ckkR+3d7wtQ/1DZ1bKK/2FmJaIJSKxi3woEjmuybPO54u+7/M7K7xNnFqvtJ8bN1FWFrDzwIhih3mja5bHLL58RZc2PAo6EYQlhVVviFYyURG34jrciz00hD6fbWBlAf9b2xBocTyTG4LbSqKqLvD5FEdOrTrP6A258nrs= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+42422+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1560500630774180.17888869318915; Fri, 14 Jun 2019 01:23:50 -0700 (PDT) Return-Path: X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by groups.io with SMTP; Fri, 14 Jun 2019 01:23:49 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2019 01:23:48 -0700 X-ExtLoop1: 1 X-Received: from ray-dev.ccr.corp.intel.com ([10.239.9.16]) by fmsmga006.fm.intel.com with ESMTP; 14 Jun 2019 01:23:47 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Jordan Justen , Andrew Fish , Zhiguang Liu , Hao A Wu Subject: [edk2-devel] [PATCH] EmulatorPkg/Win: support running multiple WinHost.exe Date: Fri, 14 Jun 2019 16:23:27 +0800 Message-Id: <20190614082327.80128-1-ray.ni@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ray.ni@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1560500630; bh=ehIEF2jYL42WSyMYW1ddUu5JliIfiLt09oBEFXmwM8k=; h=Cc:Date:From:Reply-To:Subject:To; b=Ne1OVNd4BFragiV9NYoiUovTk4fD30tiGdoyf46MnYRxqit/D/COqCQi4g4Besks67u +Jf4fmE5VbKnT7LiwaI2t6G/6bMqUYdtitMlONDXYXoyQrLolPH9O9eqxI9M6B00rHWsw p3/WWEW6vY2NFmJEW+pCkwa1DwW0Zf5yJPA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" When running 2nd instance of WinHost.exe, below error is printed: ERROR : Can not open Firmware Device File ../FV/FV_RECOVERY.fd... The root cause is "RECOVERY.FD" is exclusively opened by the first instance of WinHost.exe. The patch changes to open "RECOVERY.FD" in shared way so that 2nd+ instance of WinHost.exe can still run successfully. Signed-off-by: Ray Ni Signed-off-by: Ray Ni Cc: Jordan Justen Cc: Andrew Fish Cc: Zhiguang Liu Cc: Hao A Wu --- EmulatorPkg/Win/Host/WinHost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EmulatorPkg/Win/Host/WinHost.c b/EmulatorPkg/Win/Host/WinHost.c index bd7662683a..5a354d084e 100644 --- a/EmulatorPkg/Win/Host/WinHost.c +++ b/EmulatorPkg/Win/Host/WinHost.c @@ -269,7 +269,7 @@ Returns: NtFileHandle =3D CreateFile ( FileName, GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE, - FILE_SHARE_READ, + FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, CreationDisposition, FILE_ATTRIBUTE_NORMAL, --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#42422): https://edk2.groups.io/g/devel/message/42422 Mute This Topic: https://groups.io/mt/32061781/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-