On Thu, Jul 13, 2017 at 08:00:26PM +0800, gengdongjiu wrote: > Laszlo, I pasted Michael's comments here, as shown below. Michael said the > definition > should use build_append_int_noprefix to add data. but I think it may not > good, becuase > the section "UEFI_CPER_SEC_PLATFORM_MEM" is runtime recorded as CPER,
One thing I wanted to understand is how are races avoided. E.g. what if you are in the process of writing out CPER and guest reads it. I tried to find where is this function writing CPER called and couldn't. Can you clarify pls? > not a ACPI/HEST > table member, so it is not generated when system boot up. On the other > hand,UEFI_CPER_SEC_PLATFORM_MEM > definition is from UEFI spec 2.6, N.2.2 Section Descriptor: {0xA5BC1114, > 0x6F64, 0x4EDE, {0xB8, 0x63, 0x3E, 0x83, 0xED, 0x7C, 0x83, 0xB1}}. > if use build_append_int_noprefix to add, may confuse others. Right but ACPI/HEST generation could use cleanup, and build_append_int_noprefix would be a nice way to do it. -- MST