projectacrn / acrn-hypervisor

Project ACRN hypervisor
BSD 3-Clause "New" or "Revised" License
1.1k stars 506 forks source link

Copy fail when booting pre-launched VMs #6507

Closed izhouwu closed 2 years ago

izhouwu commented 2 years ago

Environment BIOS: TGLIFUI1.R00.4163.A01.2104221540 board: TigerLake U DDR4 SODIMM RVP HV image: RC2 http://sit-image.sh.intel.com/acrn_daily_build/YOCTO-2021ww34.4-1/yocto-tgl-rvp-uefi-hybrid/ HV version -2021-08-19 04:23:44-11f4e0416-dirty DBG (daily tag:acrn-2021w33.5-180000p) hybrid@tgl-rvp build by 1000 zephyr elf: \10.239.48.225\acrn\ACRN_Validation\acrn_v2.6\pre_vm_Zephyr_ELF

Steps boot HV, pre-launched zephyr64.elf and SOS “vm_console 0” to enter zephyr64 “vm_console 1” to enter SOS

Expected result can boot HV without any error can get zephyr mesg: Welcome to Zephyr! acrn can login SOS rootfs

Actual result can boot HV but find error: [40190374us][cpu=3][(null)][sev=3][seq=25]:local_copy_gpa,vm[0] gpa 0x7fef0000,GPA is unmapping [40199945us][cpu=3][(null)][sev=3][seq=28]:Unable to copy HPA 0x100000 to GPA 0x7fe00000 in VM0 can get zephyr mesg: Welcome to Zephyr! acrn can login SOS rootfs

Reproduce rate 5/5

Debugging info during HV boot both zephyr32.elf and zephyr64.elf, can find the HV error msg ACRN ww34 release_2.6 RC2 image including PR:

73641d068 - hv: ve820: Minor changes to prelaunched VM ve820 mapping - Yifan Liu

izhouwu commented 2 years ago

[External_System_ID] ACRN-7359

izhouwu commented 2 years ago

introduced from this commit: 73641d0 - hv: ve820: Minor changes to prelaunched VM ve820 mapping - Yifan Liu

our ACPI rom is 1MB, this commit changed ACPI data and NVS area length, causing ACPI rom can't fit in ACPI area