Re: [RFC PATCH 0/9] kvm: implement atomic memslot updates

From: Like Xu
Date: Mon Sep 19 2022 - 03:39:16 EST


On 19/9/2022 12:13 am, Emanuele Giuseppe Esposito wrote:

Am 09/09/2022 um 16:30 schrieb Sean Christopherson:
On Fri, Sep 09, 2022, Emanuele Giuseppe Esposito wrote:
KVM is currently capable of receiving a single memslot update through
the KVM_SET_USER_MEMORY_REGION ioctl.
The problem arises when we want to atomically perform multiple updates,
so that readers of memslot active list avoid seeing incomplete states.

For example, in RHBZhttps://bugzilla.redhat.com/show_bug.cgi?id=1979276

Oh, thanks for stepping up to try to address it.

As it turns out, this issue was discovered "long" before
https://bugzilla.kernel.org/show_bug.cgi?id=213781

As a comment, relevant selftests are necessary and required.