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:
Haoyu Tang 2025-03-03 10:55:35 +08:00
parent bff0493d25
commit 1f5de47c18

View File

@ -274,7 +274,7 @@ static uint64_t create_zero_page(struct acrn_vm *vm, uint64_t load_params_gpa)
stac();
/* clear the zeropage */
(void)memset(zeropage, 0U, MEM_2K);
(void)memset(zeropage, 0U, MEM_4K);
#ifdef CONFIG_MULTIBOOT2
if (is_service_vm(vm)) {