mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-22 10:00:47 +00:00
hv: bzimage_loader clear zero-page with 4k size
MEM_4k is used to create zero-page, clear it with same size. Tracked-On: #8765 Signed-off-by: Haoyu Tang <haoyu.tang@intel.com>
This commit is contained in:
parent
47027892a5
commit
fa8cf2f1ff
@ -274,7 +274,7 @@ static uint64_t create_zero_page(struct acrn_vm *vm, uint64_t load_params_gpa)
|
|||||||
|
|
||||||
stac();
|
stac();
|
||||||
/* clear the zeropage */
|
/* clear the zeropage */
|
||||||
(void)memset(zeropage, 0U, MEM_2K);
|
(void)memset(zeropage, 0U, MEM_4K);
|
||||||
|
|
||||||
#ifdef CONFIG_MULTIBOOT2
|
#ifdef CONFIG_MULTIBOOT2
|
||||||
if (is_service_vm(vm)) {
|
if (is_service_vm(vm)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user