Re: cgroup2 freezer and kvm_vm_worker_thread()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 30 Oct 2024 at 00:25, Tejun Heo <tj@xxxxxxxxxx> wrote:
> If that can't be done, we can add a mechanism to ignore these tasks when
> determining when a cgroup is frozen provided that this doesn't affect the
> snapshotting (ie. when taking a snapshot of frozen cgroup, activities from
> the kthreads won't corrupt the snapshot).

What do these kvm kthreads actually do?

So one of the use cases in systemd is to freeze the entire user
session before suspend, so that the encryption key for the home
directory (homed) can be removed from memory (until after resume,
after the user has typed the password in the screen lock again),
without the risk of having programs trying to access the now
inaccessible files in the home directory. So if qemu is frozen, but
the kvm kthread is not and somehow lets the VM or part of it still run
and use files (e.g.: write to the disk image that is stored in the
homedir) that are now inaccessible, that would be problematic for this
use case.




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux