UefiCpuPkg/CpuPageTableLib: Add OUTPUT IsModified parameter.

Add OUTPUT IsModified parameter in PageTableMap() to indicate
if page table has been modified. With this parameter, caller
can know if need to call FlushTlb when the page table is in CR3.

Signed-off-by: Dun Tan <dun.tan@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Dun Tan
2022-12-09 10:36:37 +08:00
committed by mergify[bot]
parent 3b2661d247
commit c8c6cf149d
5 changed files with 88 additions and 46 deletions

View File

@ -699,7 +699,8 @@ SingleMapEntryTest (
LastMapEntry->LinearAddress,
LastMapEntry->Length,
&LastMapEntry->Attribute,
&LastMapEntry->Mask
&LastMapEntry->Mask,
NULL
);
Attribute = &LastMapEntry->Attribute;
@ -759,7 +760,8 @@ SingleMapEntryTest (
LastMapEntry->LinearAddress,
LastMapEntry->Length,
&LastMapEntry->Attribute,
&LastMapEntry->Mask
&LastMapEntry->Mask,
NULL
);
}