Bug 28356 - Hygon: Release CSV3 reserved shared memory in ExitBootService
Summary: Hygon: Release CSV3 reserved shared memory in ExitBootService
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: BaseOS Modules (show other bugs) BaseOS Modules
Version: ---
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Jacob
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-22 18:03 UTC by wojiaohanliyang
Modified: 2025-12-22 18:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wojiaohanliyang hygon_group 2025-12-22 18:03:43 UTC
Description of problem:

When booting a CSV3 virtual machine, during the OVMF phase, a 64 MB
shared memory region is reserved for DMA operations. However, after
the OVMF phase completes and the system transitions to the guest
kernel phase, this 64 MB reserved shared memory is not released,
resulting in memory waste.

To resolve this issue, we create an event whose notification function
will be invoked by gBS->ExitBootServices(), and in this notification
function, we release the 64 MB shared memory reserved during the OVMF
phase.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: