From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mx.groups.io with SMTP id smtpd.web10.1545.1641521744350096346 for ; Thu, 06 Jan 2022 18:15:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=D63qFcNL; spf=pass (domain: gmail.com, ip: 209.85.210.177, mailfrom: kuqin12@gmail.com) Received: by mail-pf1-f177.google.com with SMTP id t19so3968614pfg.9 for ; Thu, 06 Jan 2022 18:15:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oQmUjs11OmIJscLdz9nRzKMxpDeTxdul/TYEjsYE1tw=; b=D63qFcNLmvVNUHLC6Oj6HvwZf2TavktqD6ZbyImoEestF/TYyBWChnFm4bZodkWBdY woYwa/BTbBesXH16gi/rAjsyKUVgu4Lbr1g8DPx00e2u5Vx/e4q9A/aOeH8QYVbqqy/e ZArUbXgCphbBhXZmIsoUTvPKj1J+61aTTk89AVvlUW+rpWtaQJVD0wUYnkilxfr5sy47 65BoCdysffkLwyNwwRuecqSZFeEcVZo6uWp3ZNi+A+y8jTfPm5QkJxGLT78fL7V36csG mD4X6guX9SIbBw7Xt3kqJLWEYtU5otbPpX8slTRvDDL/772gu6l2QWQEq6/+RDfqus86 ve7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oQmUjs11OmIJscLdz9nRzKMxpDeTxdul/TYEjsYE1tw=; b=EVrMTGetgssALqx8Rm5oz9+RPnE/BN0dWsvWL4SiNwO5GQS3vV7mKnDZeAfjjhg5WO XS7xYIlx30MB9PNhWsI86C+uEvBlkZKudebp0+twMW2NjBRthfYRICGi5Hog+fq4eWFw 2BmOWR2Wnt6XhZkzcJxqH1Sn7AjiTijEwwUIcN3WACOfdaaTboOGVItwLjboBuRzgY42 1dTTKtVSa0v/crnPdnh5vcWa8t+yDEV/BjCoGAblDioz8zoFxhf3zCPO2HrpXiUmaKz5 /uyV54RF2qbNc2oMSy/SLcM2YRmRpzcUWxXlrvThEO3LAdUMNjJKxF4jGCUjLnseO7sk FY0Q== X-Gm-Message-State: AOAM530xO46sl/vkM76KHVkQR5DxqcNg6gk/kG15I5swGdqCDo64CEHZ T1kTVG15WKI3pPt+NPlNbTHB8ApZEfc= X-Google-Smtp-Source: ABdhPJxRA+lt9/AusvneRaJGfrDZ1Aeya/DDxI3mxAeOH/Hala6a1TmdYpQUtsvsT5DcjGIEgIZIoA== X-Received: by 2002:a63:745d:: with SMTP id e29mr39843558pgn.213.1641521743745; Thu, 06 Jan 2022 18:15:43 -0800 (PST) Return-Path: Received: from localhost.localdomain ([50.35.74.198]) by smtp.gmail.com with ESMTPSA id j3sm3894875pfc.196.2022.01.06.18.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 18:15:43 -0800 (PST) From: "Kun Qin" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu , Andrew Fish , Leif Lindholm , Hao A Wu , =?UTF-8?q?Marvin=20H=C3=A4user?= , Bret Barkelew , Michael Kubacki , Ard Biesheuvel , Sami Mujawar , Jiewen Yao , Supreeth Venkatesh , Jian J Wang , Eric Dong , Ray Ni Subject: [PATCH v4 0/7] New MM Communicate header and interfaces Date: Thu, 6 Jan 2022 18:15:25 -0800 Message-Id: <20220107021532.1322-1-kuqin12@gmail.com> X-Mailer: git-send-email 2.34.1.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3430 This patch series is a rebase of previous submission: https://edk2.groups.io/g/devel/message/79397 The patches introduced MM communicate interface v3 (both protocol and PPI) to consume the corresponding new header structure. The new structure fixed ambiguious data field size caused by UINTN, as well as integrated flexible arrays for data fields, while maintaining the backwards compatibility for all existing codebases. A specified GUID is used to differentiate old MM headers from newly defined v4 header. The specification change is also included in this patch series v4, where the standalone MM IPL in PEI phase is specified to install new PPI v4 after setting MM foundation. Compared to v3 series, v4 patch changes include: a. Rebased with uncrustify changes; Patch v4 branch: https://github.com/kuqin12/edk2/tree/BZ3398-MmCommunicate-Length-v4 Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Andrew Fish Cc: Leif Lindholm Cc: Hao A Wu Cc: Marvin Häuser Cc: Bret Barkelew Cc: Michael Kubacki Cc: Ard Biesheuvel Cc: Sami Mujawar Cc: Jiewen Yao Cc: Supreeth Venkatesh Cc: Jian J Wang Cc: Eric Dong Cc: Ray Ni Kun Qin (7): EDK2 Code First: PI Specification: New communicate header and interfaces MdePkg: MmCommunication: Introduce EFI_MM_COMMUNICATE_HEADER_V3 to MdePkg MdePkg: MmCommunication: Introduce EFI_MM_COMMUNICATION3_PROTOCOL to MdePkg MdePkg: MmCommunication: Introduce EFI_PEI_MM_COMMUNICATION3_PPI to MdePkg MdeModulePkg: PiSmmCore: Added parser of new MM communicate header StandaloneMmPkg: StandaloneMmCore: Parsing new MM communicate header MdeModulePkg: PiSmmIpl: Update MessageLength calculation for MmCommunicate MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 51 ++-- MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c | 190 ++++++++++++++ StandaloneMmPkg/Core/StandaloneMmCore.c | 35 ++- CodeFirst/BZ3430-SpecChange.md | 277 ++++++++++++++++++++ MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf | 1 + MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf | 2 + MdePkg/Include/Pi/PiMultiPhase.h | 57 ++++ MdePkg/Include/Ppi/MmCommunication3.h | 57 ++++ MdePkg/Include/Protocol/MmCommunication3.h | 70 +++++ MdePkg/MdePkg.dec | 11 + StandaloneMmPkg/Core/StandaloneMmCore.inf | 1 + 11 files changed, 730 insertions(+), 22 deletions(-) create mode 100644 CodeFirst/BZ3430-SpecChange.md create mode 100644 MdePkg/Include/Ppi/MmCommunication3.h create mode 100644 MdePkg/Include/Protocol/MmCommunication3.h -- 2.34.1.windows.1