From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DA18421106C98 for ; Wed, 29 Aug 2018 19:01:28 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2018 19:01:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,305,1531810800"; d="scan'208";a="84534429" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.8]) by fmsmga004.fm.intel.com with ESMTP; 29 Aug 2018 19:01:27 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Thu, 30 Aug 2018 10:02:04 +0800 Message-Id: <20180830020213.148968-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.16.1.windows.1 Subject: [PATCH v2 0/9] Quality improvement for EmulatorPkg Win Host X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2018 02:01:29 -0000 The patch sets make Win Host boot in 64 bit, fix all SCT issues regarding to console input/output, switch to use MdeModulePkg/Bds. v2: 1. Pass PatchChecker.py (VS project files don't pass. I don't want to change the default file content because next time when VS opens the project again the file content will be restored back) 2. Skip the V1 5/10 "Do not zero out file content" because the current behavior is already to not zero out file content. 3. Always report 57 as CPU address size through CPU HOB. Ruiyu Ni (9): EmulatorPkg/EmuGopDxe: Fix TxtInEx.SetState SCT conformance failure EmulatorPkg/EmuGopDxe: Clear screen to black in GOP.SetMode EmulatorPkg/Win: Use FrameBufferBltLib for BLT operation EmulatorPkg/Win: ReadKeyStrokeEx() always returns correct KeyState EmulatorPkg/Win: Enable 64bit (SEC,PEI,DXE all run at 64bit) EmulatorPkg/AutoScanPei: Report the correct CPU address size EmulatorPkg/Win: Add VS2017 project file EmulatorPkg: Use MdeModulePkg/Bds module EmulatorPkg: IoThunk->Close() is called too early, may causing hang EmulatorPkg/AutoScanPei/AutoScanPei.c | 6 +- EmulatorPkg/EmuBlockIoDxe/EmuBlockIo.c | 14 +- EmulatorPkg/EmuGopDxe/GopInput.c | 11 +- EmulatorPkg/EmuGopDxe/GopScreen.c | 8 +- .../EmuSimpleFileSystemDxe/EmuSimpleFileSystem.c | 10 +- EmulatorPkg/EmuSnpDxe/EmuSnpDxe.c | 32 +- EmulatorPkg/EmulatorPkg.dsc | 38 +- EmulatorPkg/EmulatorPkg.fdf | 21 +- EmulatorPkg/Library/EmuBdsLib/BdsPlatform.c | 559 --------------------- EmulatorPkg/Library/PlatformBmLib/PlatformBm.c | 435 ++++++++++++++++ .../BdsPlatform.h => PlatformBmLib/PlatformBm.h} | 63 ++- .../PlatformBmData.c} | 13 +- .../PlatformBmLib.inf} | 28 +- .../Library/PlatformBmLib/PlatformBmMemoryTest.c | 133 +++++ EmulatorPkg/Win/Host/WinBlockIo.c | 2 +- EmulatorPkg/Win/Host/WinGop.h | 4 +- EmulatorPkg/Win/Host/WinGopInput.c | 17 + EmulatorPkg/Win/Host/WinGopScreen.c | 218 +++----- EmulatorPkg/Win/Host/WinHost.c | 2 +- EmulatorPkg/Win/Host/WinHost.inf | 1 + EmulatorPkg/Win/VS2017/BuildVS.bat | 3 + EmulatorPkg/Win/VS2017/Win.sln | 25 + EmulatorPkg/Win/VS2017/Win.vcxproj | 120 +++++ EmulatorPkg/Win/VS2017/Win.vcxproj.filters | 50 ++ EmulatorPkg/Win/VS2017/Win.vcxproj.user | 13 + 25 files changed, 1008 insertions(+), 818 deletions(-) delete mode 100644 EmulatorPkg/Library/EmuBdsLib/BdsPlatform.c create mode 100644 EmulatorPkg/Library/PlatformBmLib/PlatformBm.c rename EmulatorPkg/Library/{EmuBdsLib/BdsPlatform.h => PlatformBmLib/PlatformBm.h} (60%) rename EmulatorPkg/Library/{EmuBdsLib/PlatformData.c => PlatformBmLib/PlatformBmData.c} (77%) rename EmulatorPkg/Library/{EmuBdsLib/EmuBdsLib.inf => PlatformBmLib/PlatformBmLib.inf} (71%) create mode 100644 EmulatorPkg/Library/PlatformBmLib/PlatformBmMemoryTest.c create mode 100644 EmulatorPkg/Win/VS2017/BuildVS.bat create mode 100644 EmulatorPkg/Win/VS2017/Win.sln create mode 100644 EmulatorPkg/Win/VS2017/Win.vcxproj create mode 100644 EmulatorPkg/Win/VS2017/Win.vcxproj.filters create mode 100644 EmulatorPkg/Win/VS2017/Win.vcxproj.user -- 2.16.1.windows.1