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 committed by Yifan Liu
parent 47027892a5
commit fa8cf2f1ff

View File

@ -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)) {