Re: [edk2-devel] [PATCH] EmulatorPkg/Win: support running multiple WinHost.exe

2019-06-17 Thread Ni, Ray
io On Behalf Of Ni, Ray > Sent: Friday, June 14, 2019 4:54 PM > To: Yao, Jiewen ; devel@edk2.groups.io > Cc: Justen, Jordan L ; Andrew Fish > ; Liu, Zhiguang ; Wu, Hao A > > Subject: Re: [edk2-devel] [PATCH] EmulatorPkg/Win: support running > multiple WinHost.exe > > I

Re: [edk2-devel] [PATCH] EmulatorPkg/Win: support running multiple WinHost.exe

2019-06-14 Thread Ni, Ray
> Cc: Justen, Jordan L ; Andrew Fish > ; Liu, Zhiguang ; Wu, Hao A > > Subject: RE: [edk2-devel] [PATCH] EmulatorPkg/Win: support running > multiple WinHost.exe > > Hi > It is good to support 2nd instance. > > But the risk is that 2 instances may access to the same variable

Re: [edk2-devel] [PATCH] EmulatorPkg/Win: support running multiple WinHost.exe

2019-06-14 Thread Yao, Jiewen
l@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Ni, > Ray > Sent: Friday, June 14, 2019 4:23 PM > To: devel@edk2.groups.io > Cc: Justen, Jordan L ; Andrew Fish > ; Liu, Zhiguang ; Wu, Hao A > > Subject: [edk2-devel] [PATCH] EmulatorPkg/Win: support running multiple > Win

[edk2-devel] [PATCH] EmulatorPkg/Win: support running multiple WinHost.exe

2019-06-14 Thread Ni, Ray
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+ instan