Re: [edk2-devel] [PATCH v2] ArmVirtPkg: increase FD/FV size for NOOPT builds

2019-09-12 Thread Laszlo Ersek
On 09/12/19 16:46, Laszlo Ersek wrote: > On 09/11/19 18:23, Ard Biesheuvel wrote: >> After upgrading the CI system we use for building the ArmVirtPkg >> targets, we started seeing failures due to the NOOPT build running >> out of space when using the CLANG38 toolchain defini

Re: [edk2-devel] [Patch v2] UefiCpuPkg/CpuDxe: clean up PAGE_TABLE_LIB_PAGING_CONTEXT usage.

2019-09-13 Thread Laszlo Ersek
NTEXT.ContextData.X64 or > PAGE_TABLE_LIB_PAGING_CONTEXT.ContextData.Ia32. This patch check the > mode before using the correct one. > > Cc: Ray Ni > Cc: Laszlo Ersek > Signed-off-by: Eric Dong > --- > UefiCpuPkg/CpuDxe/CpuDxe.inf | 4 ++-

Re: [edk2-devel] [PATCH v3] ArmVirtPkg: increase FD/FV size for NOOPT builds

2019-09-13 Thread Laszlo Ersek
f > +!if $(FD_SIZE_IN_MB) == 3 > + 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, # image_size: 3 MB > +!endif >0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # flags >0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res2 >0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

Re: [edk2-devel] [Patch V2] UefiCpuPkg/CpuExceptionHandlerLib: Fix #AC split lock

2019-09-13 Thread Laszlo Ersek
On 09/09/19 20:40, John E Lofgren wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2150 > > V2 changes: > Add xchg 16 bit instructions to handle sgdt and sidt base > 63:48 bits and 47:32 bits. > Add comment to explain why xchg 64bit isnt being used > > Fix #AC split lock's caused by s

Re: [edk2-devel] [RFC] EDK II Continuous Integration Phase 1

2019-09-16 Thread Laszlo Ersek
Hi Sean, On 09/13/19 23:00, sean.brogan via [] wrote: > These tests require using the "edk2-pytool" stuff but are easy to integrate > with the github PR or CI flow.  Example of it running the code compliance > tests is here: > https://dev.azure.com/tianocore/edk2-ci-play/_build?definitionId=13&

Re: [edk2-devel] [PATCH] StandaloneMmPkg: make package .DSC file build again

2019-09-16 Thread Laszlo Ersek
Lib] is not found in [StandaloneMmPkg/Core/StandaloneMmCore.inf] [IA32] Now, I'm not sure if *this* build breakage is related to the Synquacer work you mention in the blurb. If it is, then fixing it would be nice. If not, then can we perhaps remove IA32 and X64 from SUPPORTED_ARCHI

Re: [edk2-devel] [PATCH 1/3] MdeModulePkg: Entend the support keyboard type of Terminal console

2019-09-16 Thread Laszlo Ersek
Hi Zhichao, On 09/16/19 07:15, Gao, Zhichao wrote: > Hi Roy, Ard, Laszlo, > > Do you have any comment if I add the new terminal type to TtyTerm.h? As > PcAnsi.h, the spec mentioned terminal types are put into one header file. I've seen the original posting. I have no particular comments. In Ar

Re: [edk2-devel] [PATCH 01/11] OvmfPkg/XenBusDxe: Fix missing \n in DEBUG messages

2019-09-16 Thread Laszlo Ersek
try; > -DEBUG ((EFI_D_WARN, "XenStore: WatchEvents is not empty, cleaning > up...")); > +DEBUG ((DEBUG_WARN, "XenStore: WatchEvents is not empty, cleaning > up...\n")); > Entry = GetFirstNode (&xs.WatchEvents); > while (!IsNull (&xs

Re: [edk2-devel] [PATCH 02/11] OvmfPkg/XenBusDxe: Have XenStoreFindWatch take a pointer

2019-09-16 Thread Laszlo Ersek
ENSTORE_WATCH_SIGNATURE); > > - AsciiSPrint (Token, sizeof (Token), "%p", (VOID *) Watch); > - if (XenStoreFindWatch (Token) == NULL) { > + if (XenStoreFindWatch (Watch) == NULL) { > return; >} > > @@ -1393,6 +1394,7 @@ Xen

Re: [edk2-devel] [PATCH 03/11] OvmfPkg/XenBusDxe: Rework watch events reception

2019-09-16 Thread Laszlo Ersek
file changed, 35 insertions(+), 90 deletions(-) This looks a bit more complex than what I can allocate time for now, so I'll trust you on it -- it only modifies XenStore.c. Feedback from other reviewers is encouraged. Acked-by: Laszlo Ersek Thanks Laszlo -=-=-=-=-=-=-=-=-=-=-=- Groups.i

Re: [edk2-devel] [PATCH 04/11] OvmfPkg/XenBusDxe: Avoid Allocate in XenStoreVSPrint

2019-09-16 Thread Laszlo Ersek
XENSTORE_STATUS_EINVAL; > + } > > - return Status; > + return XenStoreWrite (Transaction, DirectoryPath, Node, Buf); > } > > XENSTORE_STATUS > Reviewed-by: Laszlo Ersek -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#4

Re: [edk2-devel] [PATCH 05/11] OvmfPkg/XenBusDxe: Construct paths without allocation

2019-09-16 Thread Laszlo Ersek
atus; > } > @@ -1226,7 +1240,7 @@ XenStoreTransactionStart ( >XENSTORE_STATUS Status; > >Status = XenStoreSingle (XST_NIL, XS_TRANSACTION_START, "", NULL, > - (VOID **) &IdStr); > +NULL, (VOID **) &IdStr); (5) Indentati

Re: [edk2-devel] [PATCH 06/11] OvmfPkg/XenBusDxe: Rework XenStoreProcessMessage to avoid allocating memory

2019-09-16 Thread Laszlo Ersek
190 > Signed-off-by: Anthony PERARD > --- > OvmfPkg/XenBusDxe/XenStore.c | 297 +++ > 1 file changed, 130 insertions(+), 167 deletions(-) Sorry, too big for a detailed review, and I'd like to go through the series today. So, based on the diffstat, Ac

Re: [edk2-devel] [PATCH 05/11] OvmfPkg/XenBusDxe: Construct paths without allocation

2019-09-16 Thread Laszlo Ersek
On 09/16/19 17:39, Laszlo Ersek wrote: > On 09/13/19 16:50, Anthony PERARD wrote: >> When doing an action with a path and subpath in the xenstore, >> XenStoreJoin is called to generate "$path/$subpath". But this function >> do an allocation of memory which i

Re: [edk2-devel] [PATCH 07/11] OvmfPkg/XenBusDxe: Use on stack buffer in internal functions

2019-09-16 Thread Laszlo Ersek
On 09/13/19 16:50, Anthony PERARD wrote: > We will use a buffer on the stack instead of allocating memory for > internal functions that are expecting a reply from xenstore. > > The external interface XENBUS_PROTOCOL isn't changed yet, so > allocation are made for XsRead and XsBackendRead. > > Ref:

Re: [edk2-devel] [PATCH 08/11] OvmfPkg/XenBus: Change XENBUS_PROTOCOL to not return allocated memory

2019-09-16 Thread Laszlo Ersek
his value" with "XENSTORE_PAYLOAD_MAX"). Other than that, I'm going to have to ACK this after a brief skim only. Acked-by: Laszlo Ersek Thanks Laszlo > typedef enum { >XENSTORE_STATUS_SUCCESS = 0, >XENSTORE_STATUS_FAIL, > @@ -64,19 +70,17 @@ typedef enum {

Re: [edk2-devel] [PATCH 09/11] OvmfPkg/XenBusDxe: Fix NotifyExitBoot to avoid Memory Allocation Services

2019-09-16 Thread Laszlo Ersek
On 09/13/19 16:50, Anthony PERARD wrote: > This patch fix the EVT_SIGNAL_EXIT_BOOT_SERVICES handler to avoid > using the Memory Allocation Services. > > This comes with a new interface named RegisterExitCallback so that PV > drivers can disconnect from the backend before XenBusDxe is teared > down

Re: [edk2-devel] [PATCH] StandaloneMmPkg: make package .DSC file build again

2019-09-16 Thread Laszlo Ersek
On 09/16/19 17:06, Yao, Jiewen wrote: > That is correct. > > Current trunk only supports ARM system. > > I have branch to support x86 - > https://github.com/jyao1/edk2/tree/StandaloneSmmX86Poc > But that is not merged into trunk yet. In that case, for this patch: Build-te

Re: [edk2-devel] [PATCH 09/11] OvmfPkg/XenBusDxe: Fix NotifyExitBoot to avoid Memory Allocation Services

2019-09-16 Thread Laszlo Ersek
On 09/16/19 20:36, Andrew Fish wrote: > > >> On Sep 16, 2019, at 10:36 AM, Laszlo Ersek wrote: >> >> On 09/13/19 16:50, Anthony PERARD wrote: >>> This patch fix the EVT_SIGNAL_EXIT_BOOT_SERVICES handler to avoid >>> using the Memory Allocation Service

Re: [edk2-devel] [PATCH V2 1/3] MdeModulePkg: Extend the support keyboard type of Terminal console

2019-09-17 Thread Laszlo Ersek
://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter4.html#config-funkeys > > Cc: Jian J Wang > Cc: Hao A Wu > Cc: Ray Ni > Cc: Ard Biesheuvel > Cc: Laszlo Ersek > Cc: Liming Gao > Signed-off-by: Zhichao Gao > --- > MdeModulePkg/Include/Guid/TtyTerm.h | 1

Re: [edk2-devel] [edk2] DxeIpl : create page table, occupied too much memory range

2019-09-17 Thread Laszlo Ersek
On 09/17/19 13:08, Tiger Liu(BJ-RD) wrote: > Hi, Expert: > I have a question about creating page table. > If a CPU support 48bit physical address line, then creating page tables(Page > size=2MB) will occupy too much memory region. > > Now, developer could only use PcdUse1GPageTable to avoid occup

[edk2-devel] [PATCH 00/35] edk2: clean up the usage of standardized (VOID*) typedefs

2019-09-17 Thread Laszlo Ersek
Gao Cc: Maurice Ma Cc: Michael D Kinney Cc: Ray Ni Cc: Siyuan Fu Cc: Supreeth Venkatesh Cc: Zhichao Gao Thanks Laszlo Laszlo Ersek (35): DO NOT APPLY: edk2: turn standard handle types into pointers to non-VOID EmbeddedPkg: add missing EFIAPI calling convention specifiers Embedded

[edk2-devel] [PATCH 02/35] EmbeddedPkg: add missing EFIAPI calling convention specifiers

2019-09-17 Thread Laszlo Ersek
This patch is unrelated to the rest of the series; it just makes sure that "EmbeddedPkg/EmbeddedPkg.dsc" builds for all platforms advertised in SUPPORTED_ARCHITECTURES (in particular, X64). No functional changes. Cc: Ard Biesheuvel Cc: Leif Lindholm Signed-off-by: Laszlo Ersek

[edk2-devel] [PATCH 01/35] DO NOT APPLY: edk2: turn standard handle types into pointers to non-VOID

2019-09-17 Thread Laszlo Ersek
o Cc: Jordan Justen Cc: Julien Grall Cc: Leif Lindholm Cc: Liming Gao Cc: Maurice Ma Cc: Michael D Kinney Cc: Ray Ni Cc: Siyuan Fu Cc: Supreeth Venkatesh Cc: Zhichao Gao Signed-off-by: Laszlo Ersek --- MdePkg/Include/Pi/PiPeiCis.h | 6 -- Mde

[edk2-devel] [PATCH 03/35] EmbeddedPkg/AndroidFastbootTransportTcpDxe: fix DestroyChild() call

2019-09-17 Thread Laszlo Ersek
y the current code doesn't crash. Perhaps the function is never reached in practice? (It could be tied to an error path.) Cc: Ard Biesheuvel Cc: Leif Lindholm Signed-off-by: Laszlo Ersek --- Notes: build-tested only EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcp.c

[edk2-devel] [PATCH 05/35] EmulatorPkg/DxeTimerLib: drop superfluous cast

2019-09-17 Thread Laszlo Ersek
"gTimerEvent" has type EFI_EVENT already, drop the superfluous cast. Cc: Andrew Fish Cc: Jordan Justen Cc: Ray Ni Signed-off-by: Laszlo Ersek --- Notes: build-tested only EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[edk2-devel] [PATCH 07/35] MdeModulePkg: fix cast in GetModuleInfoFromHandle() calls

2019-09-17 Thread Laszlo Ersek
change behavior --, it's just semantically wrong to pass an (EFI_HANDLE*) where an EFI_HANDLE is expected. Cc: Dandan Bi Cc: Eric Dong Cc: Hao A Wu Cc: Jian J Wang Cc: Liming Gao Cc: Ray Ni Signed-off-by: Laszlo Ersek --- Notes: lightly tested, as DxeCorePerformanceLib is linked

[edk2-devel] [PATCH 09/35] MdeModulePkg: stop abusing EFI_EVENT for protocol notify registration

2019-09-17 Thread Laszlo Ersek
Cc: Liming Gao Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Laszlo Ersek --- Notes: lightly tested, as these modules (except LoadFileOnFv2) are part of the ArmVirt and/or OVMF platforms MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.c | 2 +- MdeModulePkg/Universa

[edk2-devel] [PATCH 11/35] MdeModulePkg: document workaround for EFI_RUNTIME_EVENT_ENTRY PI spec bug

2019-09-17 Thread Laszlo Ersek
ng Gao Signed-off-by: Laszlo Ersek --- Notes: lightly tested, as these modules are part of the ArmVirt and/or OVMF platforms MdeModulePkg/Core/Dxe/Event/Event.c| 8 MdeModulePkg/Core/RuntimeDxe/Runtime.c | 10 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --gi

[edk2-devel] [PATCH 08/35] MdeModulePkg/UefiHiiLib: stop using EFI_HANDLE in place of EFI_HII_HANDLE

2019-09-17 Thread Laszlo Ersek
HiiGetHiiHandles() returns an array of EFI_HII_HANDLEs, not EFI_HANDLEs. HiiGetString() takes an EFI_HII_HANDLE, not an EFI_HANDLE. This change is a no-op in practice; it's a semantic improvement. Cc: Dandan Bi Cc: Eric Dong Cc: Hao A Wu Cc: Jian J Wang Signed-off-by: Laszlo

[edk2-devel] [PATCH 14/35] MdeModulePkg: fix UninstallMultipleProtocolInterfaces() calls

2019-09-17 Thread Laszlo Ersek
paths. Fix the UninstallMultipleProtocolInterfaces() calls. Cc: Hao A Wu Cc: Jian J Wang Cc: Ray Ni Signed-off-by: Laszlo Ersek --- Notes: build-tested only MdeModulePkg/Bus/I2c/I2cDxe/I2cBus.c | 2 +- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c | 2

[edk2-devel] [PATCH 06/35] EmulatorPkg: stop abusing EFI_HANDLE for keystroke notify registration

2019-09-17 Thread Laszlo Ersek
ay Ni Signed-off-by: Laszlo Ersek --- Notes: build-tested only EmulatorPkg/EmuGopDxe/GopInput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EmulatorPkg/EmuGopDxe/GopInput.c b/EmulatorPkg/EmuGopDxe/GopInput.c index fdd0b4911555..2a23564a2173 100644 --- a/Emulat

[edk2-devel] [PATCH 10/35] MdeModulePkg/PlatformVarCleanupLib: fix HiiConstructConfigHdr() call

2019-09-17 Thread Laszlo Ersek
of HiiAddPackages(), and stands for the published HII package list. Therefore this patch addresses an actual bug. The typo has not been flagged by compilers because the UEFI spec regrettably defines both EFI_HANDLE and EFI_HII_HANDLE as (VOID*). Cc: Hao A Wu Cc: Jian J Wang Cc: Liming G

[edk2-devel] [PATCH 12/35] MdeModulePkg: stop abusing EFI_HANDLE for keystroke notify registration

2019-09-17 Thread Laszlo Ersek
u Cc: Jian J Wang Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Laszlo Ersek --- Notes: lightly tested: ConSplitterDxe is part of the ArmVirt and OVMF platforms MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c | 2 +- MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 4 ++

[edk2-devel] [PATCH 13/35] MdeModulePkg: PEI Core: clean up "AprioriFile" handling in FindFileEx()

2019-09-17 Thread Laszlo Ersek
d cast it explicitly to EFI_PEI_FILE_HANDLE when assigning it to (*AprioriFile). This is a semantic cleanup, there is no functional change. Cc: Dandan Bi Cc: Hao A Wu Cc: Jian J Wang Cc: Liming Gao Signed-off-by: Laszlo Ersek --- Notes: lightly tested: OVMF uses APRIORI PEI in the FDF

[edk2-devel] [PATCH 16/35] MdeModulePkg/S3SaveState: cast Position for S3BootScriptLib explicitly

2019-09-17 Thread Laszlo Ersek
d explicit casts for clarity. There is no change in functionality. Cc: Dandan Bi Cc: Eric Dong Cc: Hao A Wu Cc: Jian J Wang Cc: Liming Gao Cc: Ray Ni Signed-off-by: Laszlo Ersek --- Notes: lightly tested: multiple drivers in OVMF write S3 boot script fragments MdeModulePkg/Universal

[edk2-devel] [PATCH 04/35] EmbeddedPkg/Universal/MmcDxe: "fix" CloseProtocol() call in BindingStop()

2019-09-17 Thread Laszlo Ersek
nd device path nodes. But it doesn't set up proper parent/child protocol opens, and it doesn't close them. Cc: Ard Biesheuvel Cc: Leif Lindholm Signed-off-by: Laszlo Ersek --- Notes: build-tested only EmbeddedPkg/Universal/MmcDxe/Mmc.c | 5 +++-- 1 file changed, 3 insertio

[edk2-devel] [PATCH 15/35] MdeModulePkg/PiSmmCore: make type punning consistent

2019-09-17 Thread Laszlo Ersek
t "DispatchHandle". This is a semantic cleanup; there is no functional change. Cc: Eric Dong Cc: Hao A Wu Cc: Jian J Wang Cc: Ray Ni Signed-off-by: Laszlo Ersek --- Notes: build-tested only, most likely -- I'm unaware of any code paths in OVMF that would lead to SmiHand

[edk2-devel] [PATCH 18/35] NetworkPkg/DxeNetLib: fix type typo in NetLibGetMacAddress()

2019-09-17 Thread Laszlo Ersek
NetLibGetSnpHandle() returns an EFI_HANDLE, not an (EFI_HANDLE*). NetLibGetMacAddress() only uses the return value ("SnpHandle") for a NULL-check. Fix the type of "SnpHandle". This patch is a no-op. Cc: Jiaxin Wu Cc: Siyuan Fu Signed-off-by: Laszlo Ersek --- Notes:

[edk2-devel] [PATCH 20/35] NetworkPkg/Ip4Dxe: fix NetLibDestroyServiceChild() call

2019-09-17 Thread Laszlo Ersek
Both NetLibDestroyServiceChild() and EFI_SERVICE_BINDING_DESTROY_CHILD take an EFI_HANDLE for the "ChildHandle" parameter, not an (EFI_HANDLE*). This patch fixes a real bug. Cc: Jiaxin Wu Cc: Siyuan Fu Signed-off-by: Laszlo Ersek --- Notes: possibly only build-tested Network

[edk2-devel] [PATCH 24/35] OvmfPkg/PlatformDxe: fix EFI_HII_HANDLE parameters of internal functions

2019-09-17 Thread Laszlo Ersek
dates that EFI_HII_HANDLE be a typedef to (VOID*). Cc: Ard Biesheuvel Cc: Jordan Justen Signed-off-by: Laszlo Ersek --- Notes: tested in UiApp OvmfPkg/PlatformDxe/Platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/PlatformDxe/Platform.c b/OvmfPkg/P

[edk2-devel] [PATCH 22/35] OvmfPkg/XenBusDxe: fix UninstallMultipleProtocolInterfaces() call

2019-09-17 Thread Laszlo Ersek
path. Fix the UninstallMultipleProtocolInterfaces() call. Cc: Anthony Perard Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Julien Grall Signed-off-by: Laszlo Ersek --- Notes: build-tested only OvmfPkg/XenBusDxe/XenBus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ov

[edk2-devel] [PATCH 28/35] ShellPkg/UefiShellDriver1CommandsLib: fix parameter list typo

2019-09-17 Thread Laszlo Ersek
DLE*) -- (VOID**) -- types. This typo is masked because (VOID*) converts to and from any pointer-to-object type silently. Note that functionally speaking there is no problem, so this patch does not change beavior, only cleans up the code. Cc: Jaben Carsey Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Las

[edk2-devel] [PATCH 26/35] SecurityPkg: fix UninstallMultipleProtocolInterfaces() calls

2019-09-17 Thread Laszlo Ersek
Unload() functions, which are probably exercised infrequently. Fix the UninstallMultipleProtocolInterfaces() calls. Cc: Chao Zhang Cc: Jian Wang Cc: Jiewen Yao Signed-off-by: Laszlo Ersek --- Notes: build-tested only SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c

[edk2-devel] [PATCH 30/35] ShellPkg: stop taking EFI_HANDLE in place of SHELL_FILE_HANDLE

2019-09-17 Thread Laszlo Ersek
regrettably, both EFI_HANDLE and SHELL_FILE_HANDLE are specified to be typedefs of (VOID*)). Cc: Jaben Carsey Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Laszlo Ersek --- Notes: tested: rm, touch ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c| 2 +- ShellPkg/Library/UefiShellLevel3CommandsLib

[edk2-devel] [PATCH 33/35] StandaloneMmPkg/Core: stop abusing EFI_HANDLE for FwVolHeader tracking

2019-09-17 Thread Laszlo Ersek
mantic fix; there is no change in operation. Cc: Achin Gupta Cc: Jiewen Yao Cc: Supreeth Venkatesh Signed-off-by: Laszlo Ersek --- Notes: build-tested only StandaloneMmPkg/Core/StandaloneMmCore.h | 2 +- StandaloneMmPkg/Core/Dispatcher.c | 80 +++- Standalone

[edk2-devel] [PATCH 19/35] NetworkPkg: fix CloseProtocol & UninstallMultipleProtocolInterfaces calls

2019-09-17 Thread Laszlo Ersek
of TlsAuthConfigDxe, because the driver is unloaded likely very infrequently.) Cc: Jiaxin Wu Cc: Siyuan Fu Signed-off-by: Laszlo Ersek --- Notes: build-tested only NetworkPkg/DnsDxe/DnsDriver.c | 4 ++-- NetworkPkg/IScsiDxe/IScsiConfig.c | 2 +- NetworkPk

[edk2-devel] [PATCH 23/35] OvmfPkg/VirtioNetDxe: fix SignalEvent() call

2019-09-17 Thread Laszlo Ersek
t is rarely waited for by applications -- edk2 itself has zero instances of that, for example. Cc: Ard Biesheuvel Cc: Jordan Justen Signed-off-by: Laszlo Ersek --- Notes: build-tested only OvmfPkg/VirtioNetDxe/Events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPk

[edk2-devel] [PATCH 25/35] OvmfPkg/VideoDxe: document EFI_EDID_OVERRIDE_PROTOCOL.GetEdid() call

2019-09-17 Thread Laszlo Ersek
) Cc: Ard Biesheuvel Cc: David Woodhouse Cc: Jordan Justen Signed-off-by: Laszlo Ersek --- Notes: build-tested only OvmfPkg/Csm/BiosThunk/VideoDxe/BiosVideo.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/Csm/BiosThunk/VideoDxe/BiosVideo.c b/OvmfPkg/Csm/

[edk2-devel] [PATCH 29/35] ShellPkg: stop using EFI_HANDLE in place of EFI_HII_HANDLE

2019-09-17 Thread Laszlo Ersek
NDLE are typedefs to (VOID*). However, we shouldn't use EFI_HANDLE where semantically EFI_HII_HANDLE is passed around. Cc: Jaben Carsey Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Laszlo Ersek --- Notes: tested with: - level 1: stall, exit - level 2: ls - level 3: pause

[edk2-devel] [PATCH 27/35] SecurityPkg: stop abusing EFI_EVENT for protocol notify registration

2019-09-17 Thread Laszlo Ersek
o do with the registration. This change is a no-op in practice; it's a semantic improvement. Cc: Chao Zhang Cc: Jian Wang Cc: Jiewen Yao Signed-off-by: Laszlo Ersek --- Notes: build-tested only SecurityPkg/HddPassword/HddPasswordDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[edk2-devel] [PATCH 17/35] MdePkg/DxeServicesLib: remove bogus cast

2019-09-17 Thread Laszlo Ersek
The HandleProtocol() boot service takes an EFI_HANDLE, not an (EFI_HANDLE*). Remove the bogus cast in the InternalImageHandleToFvHandle() function. This is a semantic cleanup; there is no change in behavior. Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: Laszlo Ersek --- Notes

[edk2-devel] [PATCH 21/35] NetworkPkg/TcpDxe: fix SockFreeFoo() parameter list

2019-09-17 Thread Laszlo Ersek
Cc: Siyuan Fu Signed-off-by: Laszlo Ersek --- Notes: build-tested only NetworkPkg/TcpDxe/SockImpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NetworkPkg/TcpDxe/SockImpl.c b/NetworkPkg/TcpDxe/SockImpl.c index f5e01771e2a8..fb28e2ed40d3 100644 --- a/NetworkPkg

[edk2-devel] [PATCH 31/35] ShellPkg/UefiShellDebug1CommandsLib: fix ShellCloseFile() call

2019-09-17 Thread Laszlo Ersek
an error path which has likely never fired in practice. Cc: Jaben Carsey Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Laszlo Ersek --- Notes: tested: edit (saving a file) ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[edk2-devel] [PATCH 35/35] UefiPayloadPkg/BlSupportDxe: fix ReserveResourceInGcd() calls

2019-09-17 Thread Laszlo Ersek
not flagged it because EFI_HANDLE (the type of "ImageHandle") is unfortunately specified as (VOID*), and (EFI_SYSTEM_TABLE*) converts to (VOID*) silently. Hand the entry point function's "ImageHandle" parameter to ReserveResourceInGcd(). This fixes an actual bug. Cc: Benjamin You

[edk2-devel] [PATCH 34/35] UefiPayloadPkg/BlSupportPei: fix MMCONFIG assignment from XSDT

2019-09-17 Thread Laszlo Ersek
by introducing a helper variable called "Signature", so that we have to refer to "Entry32" or "Entry64" only once per loop body. Cc: Benjamin You Cc: Guo Dong Cc: Maurice Ma Signed-off-by: Laszlo Ersek --- Notes: build-tested only UefiPayloadPkg/BlSupport

[edk2-devel] [PATCH 32/35] ShellPkg/UefiShellLib: clarify workaround for unfixable EdkShell bug

2019-09-17 Thread Laszlo Ersek
t; (EFI_HANDLE*) conversion, which happens implicitly after dereferencing ParentHandle, with an explicit cast. In practice, this patch is a no-op. Cc: Jaben Carsey Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Laszlo Ersek --- Notes: build-tested only ShellPkg/Library/UefiShellLib/UefiS

Re: [edk2-devel] [PATCH 01/35] DO NOT APPLY: edk2: turn standard handle types into pointers to non-VOID

2019-09-18 Thread Laszlo Ersek
ecking edk2 itself. Thanks Laszlo > > Thanks, > Ray > > >> -Original Message- >> From: devel@edk2.groups.io On Behalf Of Laszlo Ersek >> Sent: Tuesday, September 17, 2019 12:49 PM >> To: edk2-devel-groups-io >> Cc: Achin Gupta ; Andrew Fis

Re: [edk2-devel] [PATCH 01/35] DO NOT APPLY: edk2: turn standard handle types into pointers to non-VOID

2019-09-18 Thread Laszlo Ersek
On 09/17/19 22:22, Andrew Fish wrote: > > >> On Sep 17, 2019, at 1:06 PM, Ni, Ray wrote: >> >> Laszlo, >> Thank you very much for this work. >> They are quite helpful to detect potential issues. >> >> But without this specific patch being checked in, future break will still >> happen. >> I don'

Re: [edk2-devel] [PATCH V3 1/3] MdeModulePkg: Extend the support keyboard type of Terminal console

2019-09-18 Thread Laszlo Ersek
://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter4.html#config-funkeys > > Cc: Jian J Wang > Cc: Hao A Wu > Cc: Ray Ni > Cc: Ard Biesheuvel > Cc: Laszlo Ersek > Cc: Liming Gao > Signed-off-by: Zhichao Gao > --- > MdeModulePkg/Include/Guid/TtyTerm.h | 1

Re: [edk2-devel] [Patch V3] UefiCpuPkg/CpuExceptionHandlerLib: Fix split lock

2019-09-18 Thread Laszlo Ersek
On 09/18/19 00:49, John E Lofgren wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2150 > V3 changes: > change to mov instruction (non locking instuction) instead > of xchg to simplify design. I think something's wrong -- the v3 update described above isn't actually implemented in the

Re: [edk2-devel] [PATCH edk2-CCSS 0/3] Coding Standards: add rule for documenting spurious variable assignments

2019-09-18 Thread Laszlo Ersek
On 09/17/19 21:10, Michael D Kinney wrote: > Series Reviewed-by: Michael D Kinney > > I also agree that the macros would be cleaner, easy to review, and > and fewer lines of code without the comment block. If I objected > previously, then I have also changed my mind. I agree we can go > ahead a

Re: [edk2-devel] [PATCH 01/35] DO NOT APPLY: edk2: turn standard handle types into pointers to non-VOID

2019-09-18 Thread Laszlo Ersek
On 09/18/19 17:16, Kinney, Michael D wrote: >> -Original Message- >> From: Laszlo Ersek >> However, if we wanted to allow new projects to #define >> STRICTER_UEFI_TYPES as their normal mode of operation >> (and not just for a sanity check in CI), then we

Re: [edk2-devel] [PATCH 01/35] DO NOT APPLY: edk2: turn standard handle types into pointers to non-VOID

2019-09-18 Thread Laszlo Ersek
On 09/18/19 17:55, Andrew Fish wrote: > > >> On Sep 18, 2019, at 1:41 AM, Laszlo Ersek wrote: >> >> On 09/17/19 22:22, Andrew Fish wrote: >>> >>> >>>> On Sep 17, 2019, at 1:06 PM, Ni, Ray wrote: >>>> >>>> Laszlo,

Re: [edk2-devel] [Patch V3] UefiCpuPkg/CpuExceptionHandlerLib: Fix split lock

2019-09-18 Thread Laszlo Ersek
ng, as the three XCHG instructions are not atomic as a whole (i.e. they are not locked all together). Another reason for XCHG could be that they wanted to use just one register -- but I totally don't see the point of not using BX too. So: Reviewed-by: Laszlo Ersek Thanks, Laszlo -=-=-=

Re: [edk2-devel] [Qemu-devel] [PATCH 1/2] q35: implement 128K SMRAM at default SMBASE address

2019-09-19 Thread Laszlo Ersek
Hi Igor, (+Brijesh) long-ish pondering ahead, with a question at the end. On 09/17/19 15:07, Igor Mammedov wrote: > Use commit (2f295167e0 q35/mch: implement extended TSEG sizes) for > inspiration and (ab)use reserved register in config space at 0x9c > offset [*] to extend q35 pci-host with abil

Re: [edk2-devel] [PATCH] Maintainers.txt: Unify one maintainer name

2019-09-19 Thread Laszlo Ersek
On 09/19/19 04:34, Jian J Wang wrote: > Update all occurrences of "Jian Wang" to be "Jian J Wang". > > Cc: Laszlo Ersek > Cc: Liming Gao > Signed-off-by: Jian J Wang > --- > Maintainers.txt | 4 ++-- > 1 file changed, 2 insertions(+), 2 dele

Re: [edk2-devel] [PATCH 0/3] Arm builds on Visual Studio

2019-09-19 Thread Laszlo Ersek
On 09/19/19 11:44, Leif Lindholm wrote: > Hi Liming, > > On Thu, Sep 19, 2019 at 06:19:42AM +, Gao, Liming wrote: >> I add my comments. >> >>> -Original Message- >>> From: Baptiste Gerondeau [mailto:baptiste.gerond...@linaro.org] >>> Sent: Thursday, September 19, 2019 12:05 AM >>> To:

Re: [edk2-devel] [PATCH] Edk2: Add Zhichao as the maintainer for shellbin relase

2019-09-19 Thread Laszlo Ersek
On 09/19/19 16:56, Gao, Liming wrote: > Leif: > >> -Original Message- >> From: Leif Lindholm [mailto:leif.lindh...@linaro.org] >> Sent: Thursday, September 19, 2019 10:39 PM >> To: Gao, Liming >> Cc: Gao, Zhichao ; devel@edk2.groups.io; Andrew Fish &g

Re: [edk2-devel] Do latest edk2 build tool support C99 standard

2019-09-19 Thread Laszlo Ersek
On 09/19/19 04:40, Wang, Cloud wrote: > Dear Edk2 Base tool owner, > Do latest edk2 build tool support C99 standard? C source code in edk2 targets C95 in general. There are a few extensions that are allowed (such as the __FUNCTION__ macro, "//"-style comments, ...), and there are some surpris

Re: [edk2-devel] [PATCH 6/7] OvmfPkg: strip trailing whitespace

2019-09-19 Thread Laszlo Ersek
On 09/19/19 20:06, Leif Lindholm wrote: > Cc: Jordan Justen > Cc: Laszlo Ersek > Cc: Ard Biesheuvel > Cc: Anthony Perard > Cc: Julien Grall > Cc: David Woodhouse > Signed-off-by: Leif Lindholm > --- > OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c

Re: [edk2-devel] [PATCH 0/5] restrict memory access per PcdCpuSmmRestrictedMemoryAccess

2019-09-20 Thread Laszlo Ersek
Hi Ray, On 08/26/19 00:45, Ni, Ray wrote: > NOTE: #5/5 will be pushed in 2nd phase after known close-source code in > another > repo is updated to use the new PCD PcdCpuSmmRestrictedMemoryAccess. you've now pushed patch 5/5 as commit 136dad095660, but you forgot to update the UNI file, which is

Re: [edk2-devel] [Qemu-devel] [PATCH 1/2] q35: implement 128K SMRAM at default SMBASE address

2019-09-20 Thread Laszlo Ersek
On 09/20/19 10:28, Igor Mammedov wrote: > On Thu, 19 Sep 2019 19:02:07 +0200 > "Laszlo Ersek" wrote: > >> Hi Igor, >> >> (+Brijesh) >> >> long-ish pondering ahead, with a question at the end. > [...] > >> Finally: can you please re

Re: [edk2-devel] [Qemu-devel] [PATCH 1/2] q35: implement 128K SMRAM at default SMBASE address

2019-09-23 Thread Laszlo Ersek
On 09/20/19 11:28, Laszlo Ersek wrote: > On 09/20/19 10:28, Igor Mammedov wrote: >> On Thu, 19 Sep 2019 19:02:07 +0200 >> "Laszlo Ersek" wrote: >> >>> Hi Igor, >>> >>> (+Brijesh) >>> >>> long-ish pondering ahead, with a q

[edk2-devel] [PATCH wave 1 02/10] OvmfPkg/IndustryStandard: increase vertical whitespace in Q35 macro defs

2019-09-24 Thread Laszlo Ersek
Ard Biesheuvel Cc: Boris Ostrovsky Cc: Brijesh Singh Cc: Igor Mammedov Cc: Jiewen Yao Cc: Joao M Martins Cc: Jordan Justen Cc: Jun Nakajima Cc: Michael Kinney Cc: Paolo Bonzini Cc: Phillip Goerl Cc: Yingwen Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1512 Signed-off-by: L

[edk2-devel] [PATCH wave 1 00/10] support QEMU's "SMRAM at default SMBASE" feature

2019-09-24 Thread Laszlo Ersek
vector requested in the INIT-SIPI-SIPI. Cc: Ard Biesheuvel Cc: Boris Ostrovsky Cc: Brijesh Singh Cc: Igor Mammedov Cc: Jiewen Yao Cc: Joao M Martins Cc: Jordan Justen Cc: Jun Nakajima Cc: Michael Kinney Cc: Paolo Bonzini Cc: Phillip Goerl Cc: Yingwen Chen Thanks Laszlo Laszlo

[edk2-devel] [PATCH wave 1 01/10] OvmfPkg: introduce PcdQ35SmramAtDefaultSmbase

2019-09-24 Thread Laszlo Ersek
. Cc: Ard Biesheuvel Cc: Boris Ostrovsky Cc: Brijesh Singh Cc: Igor Mammedov Cc: Jiewen Yao Cc: Joao M Martins Cc: Jordan Justen Cc: Jun Nakajima Cc: Michael Kinney Cc: Paolo Bonzini Cc: Phillip Goerl Cc: Yingwen Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1512 Signed-off-by: La

[edk2-devel] [PATCH wave 1 09/10] OvmfPkg/SmmAccess: close and lock SMRAM at default SMBASE

2019-09-24 Thread Laszlo Ersek
ey Cc: Paolo Bonzini Cc: Phillip Goerl Cc: Yingwen Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1512 Signed-off-by: Laszlo Ersek --- OvmfPkg/SmmAccess/SmmAccess2Dxe.inf | 1 + OvmfPkg/SmmAccess/SmmAccessPei.inf | 1 + OvmfPkg/SmmAccess/SmramInternal.h | 8 +++ OvmfPkg/S

[edk2-devel] [PATCH wave 1 07/10] OvmfPkg/PlatformPei: reserve the SMRAM at the default SMBASE, if it exists

2019-09-24 Thread Laszlo Ersek
ijesh Singh Cc: Igor Mammedov Cc: Jiewen Yao Cc: Joao M Martins Cc: Jordan Justen Cc: Jun Nakajima Cc: Michael Kinney Cc: Paolo Bonzini Cc: Phillip Goerl Cc: Yingwen Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1512 Signed-off-by: Laszlo Ersek --- OvmfPkg/PlatformPei/MemDet

[edk2-devel] [PATCH wave 1 05/10] OvmfPkg/PlatformPei: detect SMRAM at default SMBASE (skeleton)

2019-09-24 Thread Laszlo Ersek
ned-off-by: Laszlo Ersek --- OvmfPkg/PlatformPei/PlatformPei.inf | 1 + OvmfPkg/PlatformPei/Platform.h | 7 +++ OvmfPkg/PlatformPei/MemDetect.c | 18 ++ OvmfPkg/PlatformPei/Platform.c | 1 + 4 files changed, 27 insertions(+) diff --git a/OvmfPkg/P

[edk2-devel] [PATCH wave 1 03/10] OvmfPkg/IndustryStandard: add MCH_DEFAULT_SMBASE* register macros

2019-09-24 Thread Laszlo Ersek
medov Cc: Jiewen Yao Cc: Joao M Martins Cc: Jordan Justen Cc: Jun Nakajima Cc: Michael Kinney Cc: Paolo Bonzini Cc: Phillip Goerl Cc: Yingwen Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1512 Signed-off-by: Laszlo Ersek --- OvmfPkg/Include/IndustryStandard/Q35MchIch9.h | 6

[edk2-devel] [PATCH wave 1 06/10] OvmfPkg/PlatformPei: assert there's no permanent PEI RAM at default SMBASE

2019-09-24 Thread Laszlo Ersek
Ostrovsky Cc: Brijesh Singh Cc: Igor Mammedov Cc: Jiewen Yao Cc: Joao M Martins Cc: Jordan Justen Cc: Jun Nakajima Cc: Michael Kinney Cc: Paolo Bonzini Cc: Phillip Goerl Cc: Yingwen Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1512 Signed-off-by: Laszlo Ersek --- OvmfPkg

[edk2-devel] [PATCH wave 1 04/10] OvmfPkg/PlatformPei: factor out Q35BoardVerification()

2019-09-24 Thread Laszlo Ersek
Martins Cc: Jordan Justen Cc: Jun Nakajima Cc: Michael Kinney Cc: Paolo Bonzini Cc: Phillip Goerl Cc: Yingwen Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1512 Signed-off-by: Laszlo Ersek --- OvmfPkg/PlatformPei/MemDetect.c | 13 +-- OvmfPkg/PlatformPei/Platform.c | 23

[edk2-devel] [PATCH wave 1 10/10] OvmfPkg/PlatformPei: detect SMRAM at default SMBASE (for real)

2019-09-24 Thread Laszlo Ersek
Cc: Igor Mammedov Cc: Jiewen Yao Cc: Joao M Martins Cc: Jordan Justen Cc: Jun Nakajima Cc: Michael Kinney Cc: Paolo Bonzini Cc: Phillip Goerl Cc: Yingwen Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1512 Signed-off-by: Laszlo Ersek --- OvmfPkg/PlatformPei/MemDetect.c | 11

[edk2-devel] [PATCH wave 1 08/10] OvmfPkg/SEV: don't manage the lifecycle of the SMRAM at the default SMBASE

2019-09-24 Thread Laszlo Ersek
://bugzilla.tianocore.org/show_bug.cgi?id=1512 Signed-off-by: Laszlo Ersek --- OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 4 OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c | 21 +++-- OvmfPkg/PlatformPei/AmdSev.c| 24

Re: [edk2-devel] [RFC PATCH v2 02/44] OvmfPkg/MemEncryptSevLib: Add an SEV-ES guest indicator function

2019-09-24 Thread Laszlo Ersek
On 09/19/19 21:52, Lendacky, Thomas wrote: > From: Tom Lendacky > > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2198 > > Create a function that can be used to determine if the VM is running > as an SEV-ES guest. > > Cc: Jordan Justen > Cc: Laszlo Ersek >

Re: [edk2-devel] [RFC PATCH v2 03/44] OvmfPkg: Add support to perform SEV-ES initialization

2019-09-24 Thread Laszlo Ersek
t; is active, set the SEV-ES active PCD (PcdSevEsActive). > > Cc: Jordan Justen > Cc: Laszlo Ersek > Cc: Ard Biesheuvel > Signed-off-by: Tom Lendacky > --- > OvmfPkg/OvmfPkgIa32.dsc | 3 +++ > OvmfPkg/OvmfPkgIa32X64.dsc | 3 +++ > OvmfPkg

Re: [edk2-devel] [RFC PATCH v2 04/44] OvmfPkg/ResetVector: Add support for a 32-bit SEV check

2019-09-24 Thread Laszlo Ersek
t is active during the SEV check and uses the > OVMF temporary RAM space for a stack. After the SEV check is complete, the > exception handling support is removed and the stack pointer cleared. > > Cc: Jordan Justen > Cc: Laszlo Ersek > Cc: Ard Biesheuvel > Signed-off-by: Tom

Re: [edk2-devel] [RFC PATCH v2 04/44] OvmfPkg/ResetVector: Add support for a 32-bit SEV check

2019-09-24 Thread Laszlo Ersek
On 09/24/19 15:42, Laszlo Ersek wrote: > On 09/19/19 21:52, Lendacky, Thomas wrote: >> +mov esp, SEV_TOP_OF_STACK > (3) Do we have an estimate how much stack we need? This would be a > constraint on PcdOvmfSecPeiTempRamSize. The limit would be nice to > document (pe

Re: [edk2-devel] [PATCH 6/7] OvmfPkg: strip trailing whitespace

2019-09-24 Thread Laszlo Ersek
On 09/20/19 12:24, Leif Lindholm wrote: > > On Fri, Sep 20, 2019 at 08:13:36AM +0200, Laszlo Ersek wrote: >> On 09/19/19 20:06, Leif Lindholm wrote: >>> Cc: Jordan Justen >>> Cc: Laszlo Ersek >>> Cc: Ard Biesheuvel >>> Cc: Anthony Perar

Re: [edk2-devel] [Patch] Maintainers.txt: Move ShellBin maintainers to EDK II Releases section

2019-09-24 Thread Laszlo Ersek
On 09/24/19 12:41, Philippe Mathieu-Daudé wrote: > Hi Liming, > > On 9/24/19 3:19 AM, Liming Gao wrote: >> ShellBinPkg is generated for each edk2 stable tag release. >> >> Cc: Andrew Fish >> Cc: Laszlo Ersek >> Cc: Leif Lindholm >> Cc: M

Re: [edk2-devel] [Patch] Maintainers.txt: Move ShellBin maintainers to EDK II Releases section

2019-09-24 Thread Laszlo Ersek
Hi Liming, On 09/24/19 03:19, Liming Gao wrote: > ShellBinPkg is generated for each edk2 stable tag release. > > Cc: Andrew Fish > Cc: Laszlo Ersek > Cc: Leif Lindholm > Cc: Michael D Kinney > Signed-off-by: Liming Gao > --- > Maintainers.txt | 13 ++-

Re: [edk2-devel] [PATCH 10/35] MdeModulePkg/PlatformVarCleanupLib: fix HiiConstructConfigHdr() call

2019-09-24 Thread Laszlo Ersek
On 09/23/19 13:45, Philippe Mathieu-Daudé wrote: > On 9/17/19 9:49 PM, Laszlo Ersek wrote: >> The HiiConstructConfigHdr() function takes the "DriverHandle" parameter in >> order to fetch the device path from it, and then turn the device path into >> PATH

Re: [edk2-devel] [PATCH 35/35] UefiPayloadPkg/BlSupportDxe: fix ReserveResourceInGcd() calls

2019-09-24 Thread Laszlo Ersek
On 09/23/19 17:08, Philippe Mathieu-Daudé wrote: > On 9/17/19 9:49 PM, Laszlo Ersek wrote: >> The last parameter of ReserveResourceInGcd() is "ImageHandle", forwarded >> in turn to gDS->AllocateMemorySpace() or gDS->AllocateIoSpace() as "owner" >> i

Re: [edk2-devel] [PATCH 00/35] edk2: clean up the usage of standardized (VOID*) typedefs

2019-09-24 Thread Laszlo Ersek
On 09/23/19 18:27, Marvin Häuser wrote: > Good day, > > Thank you, Laszlo, for your ambition to introduce stricter code style > enforcements. Sorry to "hijack" the actual topic (I did not CC anyone on > purpose, as this is mostly a separate topic and I'd like a quick comment > first), but this

Re: [edk2-devel] [PATCH] MdeModulePkg: Enable/Disable S3BootScript dynamically.

2019-09-24 Thread Laszlo Ersek
On 09/24/19 07:54, Chiu, Chasel wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2212 > > Current S3BootScriptLib can only support build time opt-out I think this problem statement is wrong. In the OVMF platform anyway, PiDxeS3BootScriptLib is linked into the following two modules:

Re: [edk2-devel] [edk2/master PATCHv1 1/1] OvmfPkg: Make SOURCE_DEBUG_ENABLE actually need to be set to TRUE

2019-09-24 Thread Laszlo Ersek
ecedent. I'd be willing to fix up (2) for you just before pushing, but I can't touch (1). With (1) and (2) fixed, for v2: Reviewed-by: Laszlo Ersek Thanks! Laszlo -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47997): htt

Re: [edk2-devel] [RFC PATCH v2 06/44] OvmfPkg: Create a GHCB page for use during Sec phase

2019-09-25 Thread Laszlo Ersek
GHCB page table entry to remove the encryption mask. > > Cc: Jordan Justen > Cc: Laszlo Ersek > Cc: Ard Biesheuvel > Signed-off-by: Tom Lendacky > --- > OvmfPkg/OvmfPkg.dec | 10 +++ > OvmfPkg/OvmfPkgX64.fdf| 6 ++ > OvmfPkg/R

Re: [edk2-devel] [RFC PATCH v2 07/44] OvmfPkg/PlatformPei: Reserve GHCB-related areas if S3 is supported

2019-09-25 Thread Laszlo Ersek
s in (1a), which is fine because (1b) reserved it. (3) s/1a/a/; s/1b/b/ (Also, the original refers to (1c) rather than (1b), and that's not a typo; but this variant looks just as fine.) > > (e) how it is accessed on the warm reset path > > It is rewritten same as in

Re: [edk2-devel] [RFC PATCH v2 04/44] OvmfPkg/ResetVector: Add support for a 32-bit SEV check

2019-09-25 Thread Laszlo Ersek
On 09/24/19 20:57, Lendacky, Thomas wrote: > On 9/24/19 8:42 AM, Laszlo Ersek wrote: >> On 09/19/19 21:52, Lendacky, Thomas wrote: >>> +mov esp, SEV_TOP_OF_STACK >> >> (2) Can we %define SEV_TOP_OF_STACK in this file, or does it have to be >> in &qu

<    3   4   5   6   7   8   9   10   11   12   >