Re: Migration for SPP(Sub-Page Protection) bitmaps

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

 



On 17/04/19 11:59, Yang Weijiang wrote:
> Hi, Paolo,
> 
> I'm working on migration support for SPP(Sub-Page Protection) feature,
> the previous patch set is here:
> https://lkml.org/lkml/2018/11/30/574, basically it's used to protect
> 128-byte subpages within a normal 4KB page.
> 
> but I'm not sure whether we need to add migration support for such kind of feature. 
> 
> Currently, my solution is to store the SPP bitmaps to destination KVM, when
> there's EPT violation, search the bitmap mapping table to check if the
> guest page needs to be protected.
> 
> Another solution is to setup EPT table directly at the end of migration.

The destination userspace should simply call KVM_SUBPAGES_SET_ACCESS,
and KVM will process it just like it would on the source.  In other
words, it shouldn't matter if the ioctl is done as part of migration or
the first time a VM is setup.  And in both cases, lazy setup should be fine.

Thanks,

Paolo



[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