Re: [PATCH v8 15/15] KVM: xen: allow vcpu_info content to be 'safely' copied

From: David Woodhouse
Date: Wed Nov 22 2023 - 06:26:14 EST


On Wed, 2023-11-22 at 10:55 +0000, Paul Durrant wrote:
>
> > > Wait, didn't we realise that this leaves the bits set in the shadow
> > > evtchn_pending_sel that get lost on migration?
> > >
>
> Indeed we did not, but that's not something that *this* patch, or even
> this series, is dealing with.  We also know that setting the 'width' of
> shared_info has some issues, but again, can we keep that for other
> patches? The series is at v9 and has already suffered a fair amount of
> scope-creep.

Hrm... OK, that makes sense. This series is attempting to address the
fact that we can't do overlays on memslots without temporarily taking
away GPA ranges that we didn't mean to change. This patch is sufficient
to allow evtchn delivery to work while the memslots are being frobbed,
because userspace takes the vcpu_info away during the update.

In that case the shadow works just fine.

So yeah, if you want to handle the migration case separately then that
seems reasonable.

Attachment: smime.p7s
Description: S/MIME cryptographic signature