Amazon Proposes Pkernfs For Better Handling Hypervisor Live Updates

Written by Michael Larabel in Virtualization on 6 February 2024 at 06:44 AM EST. 3 Comments
VIRTUALIZATION
Stemming from work done at Amazon Web Services (AWS) for better handling hypervisor live updates, a "request for comments" patch series was sent out on the Linux kernel mailing list for Pkernfs. The Pkernfs proposal was first detailed publicly by AWS last year and is for persisting guest memory and kernel/device state safely across Kexec.

James Gowans with Amazon explained of Pkernfs in yesterday's RFC proposal:
"This RFC is to solicit feedback on the approach of implementing support for live update via an in-memory filesystem responsible for storing all live update state as files in the filesystem.

Hypervisor live update is a mechanism to support updating a hypervisor via kexec in a way that has limited impact to running virtual machines. This is done by pausing/serialising running VMs, kexec-ing into a new kernel, starting new VMM processes and then deserialising/resuming the VMs so that they continue running from where they were. Virtual machines can have PCI devices passed through and in order to support live update it’s necessary to persist the IOMMU page tables so that the devices can continue to do DMA to guest RAM during kexec."

Last November at the Linux Plumbers Conference (LPC 2023) is where the work on Pkernfs was originally detailed. That LPC presentation on Pkernfs can be found at LPC.events for those interested in more background and motivation on this project.

Pkernfs slide from LPC 2023


Pkernfs is just around one thousand lines of new code and is now out for review on the Linux kernel mailing list.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week