Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmm: memory_manager: don't set backing_file for virtio_mem regions #6338

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

alex-matei
Copy link
Contributor

The memory region that is associated with the hotpluggable part of a virtio-mem zone isn't backed by the file specified in the MemoryZoneConfig. The file is used only for the fixed part of the zone. When you try to restore a snapshot with virtio-mem, the backing file is used for all its regions. This results in the following error:

VmRestore(MemoryManager(GuestMemoryRegion(MappingPastEof)))

This patch sets backing_file only for the fixed part of a virtio-mem zone.

Fixes: #6337

The memory region that is associated with the hotpluggable part of
a virtio-mem zone isn't backed by the file specified in the
MemoryZoneConfig. The file is used only for the fixed part of the
zone. When you try to restore a snapshot with virtio-mem, the
backing file is used for all its regions. This results in the
following error:

  VmRestore(MemoryManager(GuestMemoryRegion(MappingPastEof)))

This patch sets backing_file only for the fixed part of a virtio-mem
zone.

Fixes: cloud-hypervisor#6337

Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com>
@alex-matei alex-matei requested a review from a team as a code owner March 28, 2024 13:15
@likebreath likebreath added this pull request to the merge queue Mar 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 29, 2024
@likebreath likebreath added this pull request to the merge queue Mar 29, 2024
Merged via the queue into cloud-hypervisor:main with commit fbe3e4d Mar 29, 2024
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

Restoring a snapshot that uses virtio-mem backed by a file fails
3 participants