projectacrn / acrn-hypervisor

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

hypervisor/ivshmem: ivshmem ivposition loss issue #8485

Open zhangckid opened 1 year ago

zhangckid commented 1 year ago

ACRN sets the ivposition to the VM_ID in ivshmem_server_bind_peer(). This value should be saved in the ivshmem_device until unbind. It is wrong to clear ivs_dev->mmio in the ivshmem_vbar_map(), Instead, it should clear the ivshmem_device structure in the create_ivshmem_device to ensure the same initial states after VM reboot case.

zhangckid commented 1 year ago

[External_System_ID] [ACRN-10176]