The RMM 1.0-bet1 updates the width of the RsiHostCall structure to 256 (0x100) bytes.
Therefore, update the RSI HOST_CALL_ARGS structure to reflect these changes. Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> Cc: Leif Lindholm <quic_llind...@quicinc.com> Cc: Gerd Hoffmann <kra...@redhat.com> Signed-off-by: Sami Mujawar <sami.muja...@arm.com> --- ArmVirtPkg/Include/Library/ArmCcaRsiLib.h | 6 +++--- ArmVirtPkg/Library/ArmCcaRsiLib/ArmCcaRsiLib.c | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ArmVirtPkg/Include/Library/ArmCcaRsiLib.h b/ArmVirtPkg/Include/Library/ArmCcaRsiLib.h index af4be275d37f0376335de5344f9626c9a92c70d2..81d125a81941cc1680cfdfb08e001193851d50e5 100644 --- a/ArmVirtPkg/Include/Library/ArmCcaRsiLib.h +++ b/ArmVirtPkg/Include/Library/ArmCcaRsiLib.h @@ -11,7 +11,7 @@ - REM - Realm Extensible Measurement @par Reference(s): - - Realm Management Monitor (RMM) Specification, version A-bet0 + - Realm Management Monitor (RMM) Specification, version 1.0-bet1 (https://developer.arm.com/documentation/den0137/) **/ @@ -82,7 +82,7 @@ typedef struct RealmConfig { } REALM_CONFIG; /** A structure describing the Host Call arguments - See Section 4.4.2 RsiHostCall type, RMM Specification, version A-bet0 + See Section 4.4.2 RsiHostCall type, RMM Specification, version 1.0-bet1 */ typedef struct HostCallArgs { UINT16 Imm; @@ -95,7 +95,7 @@ typedef struct HostCallArgs { UINT64 Gprs4; UINT64 Gprs5; UINT64 Gprs6; - UINT8 Reserved[0x1000 - (sizeof (UINT64) * 8)]; + UINT8 Reserved[0x100 - (sizeof (UINT64) * 8)]; } HOST_CALL_ARGS; /** diff --git a/ArmVirtPkg/Library/ArmCcaRsiLib/ArmCcaRsiLib.c b/ArmVirtPkg/Library/ArmCcaRsiLib/ArmCcaRsiLib.c index dc41e77b55f4369e89592b5437e525baf80aa0b3..5984651f6d9d627d9fee30a4fbf11c45b3951877 100644 --- a/ArmVirtPkg/Library/ArmCcaRsiLib/ArmCcaRsiLib.c +++ b/ArmVirtPkg/Library/ArmCcaRsiLib/ArmCcaRsiLib.c @@ -11,7 +11,7 @@ - REM - Realm Extensible Measurement @par Reference(s): - - Realm Management Monitor (RMM) Specification, version A-bet0 + - Realm Management Monitor (RMM) Specification, version 1.0-bet1 (https://developer.arm.com/documentation/den0137/) **/ @@ -516,7 +516,9 @@ RsiHostCall ( return RETURN_INVALID_PARAMETER; } - STATIC_ASSERT (sizeof (HOST_CALL_ARGS) == SIZE_4KB); + // See RMM specification, version 1.0-bet1, Section B4.4.2 RsiHostCall type + // The width of the RsiHostCall structure is 256 (0x100) bytes. + STATIC_ASSERT (sizeof (HOST_CALL_ARGS) == 0x100); // Clear the reserved fields ZeroMem (&Args->Reserved1, sizeof (Args->Reserved1)); -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117694): https://edk2.groups.io/g/devel/message/117694 Mute This Topic: https://groups.io/mt/105483434/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-