* [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
@ 2019-10-24 2:34 Qing Huang
2019-10-30 1:17 ` Liming Gao
0 siblings, 1 reply; 7+ messages in thread
From: Qing Huang @ 2019-10-24 2:34 UTC (permalink / raw)
To: devel; +Cc: Liming Gao
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2309
Add EFI_MEMORY_SP and EFI_MEMORY_CPU_CRYPTO definition into UEFI specification header file.
Signed-off-by: Qing Huang <qing.huang@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
---
MdePkg/Include/Uefi/UefiSpec.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/MdePkg/Include/Uefi/UefiSpec.h b/MdePkg/Include/Uefi/UefiSpec.h
index 44a0a6a7fa..50fae6f013 100644
--- a/MdePkg/Include/Uefi/UefiSpec.h
+++ b/MdePkg/Include/Uefi/UefiSpec.h
@@ -82,6 +82,13 @@ typedef enum {
// If all memory has the same reliability, then this bit is not used.
//
#define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000ULL
+
+//
+// Note: UEFI spec 2.8 and following:
+//
+#define EFI_MEMORY_SP 0x0000000000040000ULL
+#define EFI_MEMORY_CPU_CRYPTO 0x0000000000080000ULL
+
//
// Runtime memory attribute
//
--
2.17.0.windows.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
2019-10-24 2:34 Qing Huang
@ 2019-10-30 1:17 ` Liming Gao
2019-10-30 3:35 ` qing.huang
0 siblings, 1 reply; 7+ messages in thread
From: Liming Gao @ 2019-10-30 1:17 UTC (permalink / raw)
To: Huang, Qing, devel@edk2.groups.io
Reviewed-by: Liming Gao <liming.gao@intel.com>
>-----Original Message-----
>From: Huang, Qing
>Sent: Thursday, October 24, 2019 10:34 AM
>To: devel@edk2.groups.io
>Cc: Gao, Liming <liming.gao@intel.com>
>Subject: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
>
>BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2309
>Add EFI_MEMORY_SP and EFI_MEMORY_CPU_CRYPTO definition into UEFI
>specification header file.
>
>Signed-off-by: Qing Huang <qing.huang@intel.com>
>Cc: Liming Gao <liming.gao@intel.com>
>---
> MdePkg/Include/Uefi/UefiSpec.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
>diff --git a/MdePkg/Include/Uefi/UefiSpec.h
>b/MdePkg/Include/Uefi/UefiSpec.h
>index 44a0a6a7fa..50fae6f013 100644
>--- a/MdePkg/Include/Uefi/UefiSpec.h
>+++ b/MdePkg/Include/Uefi/UefiSpec.h
>@@ -82,6 +82,13 @@ typedef enum {
> // If all memory has the same reliability, then this bit is not used.
> //
> #define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000ULL
>+
>+//
>+// Note: UEFI spec 2.8 and following:
>+//
>+#define EFI_MEMORY_SP 0x0000000000040000ULL
>+#define EFI_MEMORY_CPU_CRYPTO 0x0000000000080000ULL
>+
> //
> // Runtime memory attribute
> //
>--
>2.17.0.windows.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
2019-10-30 1:17 ` Liming Gao
@ 2019-10-30 3:35 ` qing.huang
2019-10-30 4:20 ` Liming Gao
0 siblings, 1 reply; 7+ messages in thread
From: qing.huang @ 2019-10-30 3:35 UTC (permalink / raw)
To: Gao, Liming, devel@edk2.groups.io
[-- Attachment #1: Type: text/plain, Size: 1699 bytes --]
Add V2 patch to add some description for these new memory type from UEFI 2.8 spec.
Thanks & Best regards,
Huang, Qing
> -----Original Message-----
> From: Gao, Liming
> Sent: Wednesday, October 30, 2019 9:17 AM
> To: Huang, Qing <qing.huang@intel.com>; devel@edk2.groups.io
> Subject: RE: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory
> attributes
>
> Reviewed-by: Liming Gao <liming.gao@intel.com>
>
> >-----Original Message-----
> >From: Huang, Qing
> >Sent: Thursday, October 24, 2019 10:34 AM
> >To: devel@edk2.groups.io
> >Cc: Gao, Liming <liming.gao@intel.com>
> >Subject: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
> >
> >BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2309
> >Add EFI_MEMORY_SP and EFI_MEMORY_CPU_CRYPTO definition into UEFI
> >specification header file.
> >
> >Signed-off-by: Qing Huang <qing.huang@intel.com>
> >Cc: Liming Gao <liming.gao@intel.com>
> >---
> > MdePkg/Include/Uefi/UefiSpec.h | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> >diff --git a/MdePkg/Include/Uefi/UefiSpec.h
> >b/MdePkg/Include/Uefi/UefiSpec.h index 44a0a6a7fa..50fae6f013 100644
> >--- a/MdePkg/Include/Uefi/UefiSpec.h
> >+++ b/MdePkg/Include/Uefi/UefiSpec.h
> >@@ -82,6 +82,13 @@ typedef enum {
> > // If all memory has the same reliability, then this bit is not used.
> > //
> > #define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000ULL
> >+
> >+//
> >+// Note: UEFI spec 2.8 and following:
> >+//
> >+#define EFI_MEMORY_SP 0x0000000000040000ULL
> >+#define EFI_MEMORY_CPU_CRYPTO 0x0000000000080000ULL
> >+
> > //
> > // Runtime memory attribute
> > //
> >--
> >2.17.0.windows.1
[-- Attachment #2: 0001-MdePkg-UefiSpec.h-Add-UEFI-2.8-new-memory-attributes-V2.patch --]
[-- Type: application/octet-stream, Size: 1788 bytes --]
From f5a951a52a4926499a51d08ea6ea423948735ae2 Mon Sep 17 00:00:00 2001
From: Qing Huang <qing.huang@intel.com>
Date: Thu, 24 Oct 2019 10:34:15 +0800
Subject: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2309
Add EFI_MEMORY_SP and EFI_MEMORY_CPU_CRYPTO definition into UEFI specification header file.
Signed-off-by: Qing Huang <qing.huang@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
---
MdePkg/Include/Uefi/UefiSpec.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/MdePkg/Include/Uefi/UefiSpec.h b/MdePkg/Include/Uefi/UefiSpec.h
index 44a0a6a7fa..5d58faf7ed 100644
--- a/MdePkg/Include/Uefi/UefiSpec.h
+++ b/MdePkg/Include/Uefi/UefiSpec.h
@@ -82,6 +82,26 @@ typedef enum {
// If all memory has the same reliability, then this bit is not used.
//
#define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000ULL
+
+//
+// Note: UEFI spec 2.8 and following:
+//
+// Specific-purpose memory (SPM). The memory is earmarked for
+// specific purposes such as for specific device drivers or applications.
+// The SPM attribute serves as a hint to the OS to avoid allocating this
+// memory for core OS data or code that can not be relocated.
+//
+#define EFI_MEMORY_SP 0x0000000000040000ULL
+//
+// If this flag is set, the memory region is capable of being
+// protected with the CPU’s memory cryptographic
+// capabilities. If this flag is clear, the memory region is not
+// capable of being protected with the CPU’s memory
+// cryptographic capabilities or the CPU does not support CPU
+// memory cryptographic capabilities.
+//
+#define EFI_MEMORY_CPU_CRYPTO 0x0000000000080000ULL
+
//
// Runtime memory attribute
//
--
2.17.0.windows.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
2019-10-30 3:35 ` qing.huang
@ 2019-10-30 4:20 ` Liming Gao
0 siblings, 0 replies; 7+ messages in thread
From: Liming Gao @ 2019-10-30 4:20 UTC (permalink / raw)
To: Huang, Qing, devel@edk2.groups.io
Qing:
Please send patch mail instead of the attachment.
Thanks
Liming
>-----Original Message-----
>From: Huang, Qing
>Sent: Wednesday, October 30, 2019 11:35 AM
>To: Gao, Liming <liming.gao@intel.com>; devel@edk2.groups.io
>Subject: RE: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory
>attributes
>
>Add V2 patch to add some description for these new memory type from UEFI
>2.8 spec.
>
>Thanks & Best regards,
>Huang, Qing
>
>
>> -----Original Message-----
>> From: Gao, Liming
>> Sent: Wednesday, October 30, 2019 9:17 AM
>> To: Huang, Qing <qing.huang@intel.com>; devel@edk2.groups.io
>> Subject: RE: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory
>> attributes
>>
>> Reviewed-by: Liming Gao <liming.gao@intel.com>
>>
>> >-----Original Message-----
>> >From: Huang, Qing
>> >Sent: Thursday, October 24, 2019 10:34 AM
>> >To: devel@edk2.groups.io
>> >Cc: Gao, Liming <liming.gao@intel.com>
>> >Subject: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory
>attributes
>> >
>> >BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2309
>> >Add EFI_MEMORY_SP and EFI_MEMORY_CPU_CRYPTO definition into
>UEFI
>> >specification header file.
>> >
>> >Signed-off-by: Qing Huang <qing.huang@intel.com>
>> >Cc: Liming Gao <liming.gao@intel.com>
>> >---
>> > MdePkg/Include/Uefi/UefiSpec.h | 7 +++++++
>> > 1 file changed, 7 insertions(+)
>> >
>> >diff --git a/MdePkg/Include/Uefi/UefiSpec.h
>> >b/MdePkg/Include/Uefi/UefiSpec.h index 44a0a6a7fa..50fae6f013 100644
>> >--- a/MdePkg/Include/Uefi/UefiSpec.h
>> >+++ b/MdePkg/Include/Uefi/UefiSpec.h
>> >@@ -82,6 +82,13 @@ typedef enum {
>> > // If all memory has the same reliability, then this bit is not used.
>> > //
>> > #define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000ULL
>> >+
>> >+//
>> >+// Note: UEFI spec 2.8 and following:
>> >+//
>> >+#define EFI_MEMORY_SP 0x0000000000040000ULL
>> >+#define EFI_MEMORY_CPU_CRYPTO 0x0000000000080000ULL
>> >+
>> > //
>> > // Runtime memory attribute
>> > //
>> >--
>> >2.17.0.windows.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
@ 2019-10-30 4:54 Huang, Qing
2019-10-30 5:45 ` Liming Gao
[not found] ` <15D256836EC4F298.17962@groups.io>
0 siblings, 2 replies; 7+ messages in thread
From: Huang, Qing @ 2019-10-30 4:54 UTC (permalink / raw)
To: devel; +Cc: Liming Gao
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 1541 bytes --]
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2309
Add EFI_MEMORY_SP and EFI_MEMORY_CPU_CRYPTO definition into UEFI specification header file.
Signed-off-by: Qing Huang <qing.huang@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
---
MdePkg/Include/Uefi/UefiSpec.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/MdePkg/Include/Uefi/UefiSpec.h b/MdePkg/Include/Uefi/UefiSpec.h
index 44a0a6a7fa..5d58faf7ed 100644
--- a/MdePkg/Include/Uefi/UefiSpec.h
+++ b/MdePkg/Include/Uefi/UefiSpec.h
@@ -82,6 +82,26 @@ typedef enum {
// If all memory has the same reliability, then this bit is not used.
//
#define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000ULL
+
+//
+// Note: UEFI spec 2.8 and following:
+//
+// Specific-purpose memory (SPM). The memory is earmarked for
+// specific purposes such as for specific device drivers or applications.
+// The SPM attribute serves as a hint to the OS to avoid allocating this
+// memory for core OS data or code that can not be relocated.
+//
+#define EFI_MEMORY_SP 0x0000000000040000ULL
+//
+// If this flag is set, the memory region is capable of being
+// protected with the CPU’s memory cryptographic
+// capabilities. If this flag is clear, the memory region is not
+// capable of being protected with the CPU’s memory
+// cryptographic capabilities or the CPU does not support CPU
+// memory cryptographic capabilities.
+//
+#define EFI_MEMORY_CPU_CRYPTO 0x0000000000080000ULL
+
//
// Runtime memory attribute
//
--
2.17.0.windows.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
2019-10-30 4:54 [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes Huang, Qing
@ 2019-10-30 5:45 ` Liming Gao
[not found] ` <15D256836EC4F298.17962@groups.io>
1 sibling, 0 replies; 7+ messages in thread
From: Liming Gao @ 2019-10-30 5:45 UTC (permalink / raw)
To: Huang, Qing, devel@edk2.groups.io
Qing:
Thanks for your update. Reviewed-by: Liming Gao <liming.gao@intel.com>
Thanks
Liming
>-----Original Message-----
>From: Huang, Qing
>Sent: Wednesday, October 30, 2019 12:55 PM
>To: devel@edk2.groups.io
>Cc: Gao, Liming <liming.gao@intel.com>
>Subject: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
>
>BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2309
>Add EFI_MEMORY_SP and EFI_MEMORY_CPU_CRYPTO definition into UEFI
>specification header file.
>
>Signed-off-by: Qing Huang <qing.huang@intel.com>
>Cc: Liming Gao <liming.gao@intel.com>
>---
> MdePkg/Include/Uefi/UefiSpec.h | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
>diff --git a/MdePkg/Include/Uefi/UefiSpec.h
>b/MdePkg/Include/Uefi/UefiSpec.h
>index 44a0a6a7fa..5d58faf7ed 100644
>--- a/MdePkg/Include/Uefi/UefiSpec.h
>+++ b/MdePkg/Include/Uefi/UefiSpec.h
>@@ -82,6 +82,26 @@ typedef enum {
> // If all memory has the same reliability, then this bit is not used.
> //
> #define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000ULL
>+
>+//
>+// Note: UEFI spec 2.8 and following:
>+//
>+// Specific-purpose memory (SPM). The memory is earmarked for
>+// specific purposes such as for specific device drivers or applications.
>+// The SPM attribute serves as a hint to the OS to avoid allocating this
>+// memory for core OS data or code that can not be relocated.
>+//
>+#define EFI_MEMORY_SP 0x0000000000040000ULL
>+//
>+// If this flag is set, the memory region is capable of being
>+// protected with the CPU’s memory cryptographic
>+// capabilities. If this flag is clear, the memory region is not
>+// capable of being protected with the CPU’s memory
>+// cryptographic capabilities or the CPU does not support CPU
>+// memory cryptographic capabilities.
>+//
>+#define EFI_MEMORY_CPU_CRYPTO 0x0000000000080000ULL
>+
> //
> // Runtime memory attribute
> //
>--
>2.17.0.windows.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [edk2-devel] [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
[not found] ` <15D256836EC4F298.17962@groups.io>
@ 2019-11-04 2:08 ` Liming Gao
0 siblings, 0 replies; 7+ messages in thread
From: Liming Gao @ 2019-11-04 2:08 UTC (permalink / raw)
To: devel@edk2.groups.io, Gao, Liming, Huang, Qing
Push @ c18708d2f002a6ea43ed65d6c76dc4020687005c
>-----Original Message-----
>From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
>Liming Gao
>Sent: Wednesday, October 30, 2019 1:46 PM
>To: Huang, Qing <qing.huang@intel.com>; devel@edk2.groups.io
>Subject: Re: [edk2-devel] [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new
>memory attributes
>
>Qing:
> Thanks for your update. Reviewed-by: Liming Gao <liming.gao@intel.com>
>
>Thanks
>Liming
>>-----Original Message-----
>>From: Huang, Qing
>>Sent: Wednesday, October 30, 2019 12:55 PM
>>To: devel@edk2.groups.io
>>Cc: Gao, Liming <liming.gao@intel.com>
>>Subject: [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes
>>
>>BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2309
>>Add EFI_MEMORY_SP and EFI_MEMORY_CPU_CRYPTO definition into UEFI
>>specification header file.
>>
>>Signed-off-by: Qing Huang <qing.huang@intel.com>
>>Cc: Liming Gao <liming.gao@intel.com>
>>---
>> MdePkg/Include/Uefi/UefiSpec.h | 20 ++++++++++++++++++++
>> 1 file changed, 20 insertions(+)
>>
>>diff --git a/MdePkg/Include/Uefi/UefiSpec.h
>>b/MdePkg/Include/Uefi/UefiSpec.h
>>index 44a0a6a7fa..5d58faf7ed 100644
>>--- a/MdePkg/Include/Uefi/UefiSpec.h
>>+++ b/MdePkg/Include/Uefi/UefiSpec.h
>>@@ -82,6 +82,26 @@ typedef enum {
>> // If all memory has the same reliability, then this bit is not used.
>> //
>> #define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000ULL
>>+
>>+//
>>+// Note: UEFI spec 2.8 and following:
>>+//
>>+// Specific-purpose memory (SPM). The memory is earmarked for
>>+// specific purposes such as for specific device drivers or applications.
>>+// The SPM attribute serves as a hint to the OS to avoid allocating this
>>+// memory for core OS data or code that can not be relocated.
>>+//
>>+#define EFI_MEMORY_SP 0x0000000000040000ULL
>>+//
>>+// If this flag is set, the memory region is capable of being
>>+// protected with the CPU’s memory cryptographic
>>+// capabilities. If this flag is clear, the memory region is not
>>+// capable of being protected with the CPU’s memory
>>+// cryptographic capabilities or the CPU does not support CPU
>>+// memory cryptographic capabilities.
>>+//
>>+#define EFI_MEMORY_CPU_CRYPTO 0x0000000000080000ULL
>>+
>> //
>> // Runtime memory attribute
>> //
>>--
>>2.17.0.windows.1
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-11-04 2:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-30 4:54 [PATCH] MdePkg-UefiSpec.h: Add UEFI 2.8 new memory attributes Huang, Qing
2019-10-30 5:45 ` Liming Gao
[not found] ` <15D256836EC4F298.17962@groups.io>
2019-11-04 2:08 ` [edk2-devel] " Liming Gao
-- strict thread matches above, loose matches on Subject: below --
2019-10-24 2:34 Qing Huang
2019-10-30 1:17 ` Liming Gao
2019-10-30 3:35 ` qing.huang
2019-10-30 4:20 ` Liming Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox