On Tue, Nov 26, 2019 at 04:24:55PM +1100, Paul Mackerras wrote: > Paolo, > > If you are intending to send a second pull request for Linus for this > merge window, and you are OK with taking a new feature in PPC KVM code > at this stage, then please do a pull from my kvm-ppc-uvmem-5.5 tag. > This adds code to manage the movement of pages for a secure KVM guest > between normal memory managed by the host kernel and secure memory > managed by the ultravisor on Power systems with Protected Execution > Facility hardware and firmware. Secure memory is not accessible to > the host kernel and is represented as device memory using the > ZONE_DEVICE facility. > > The patch set has been around for a while and has been reasonably well > reviewed -- this branch contains v11 of the patch set. The code > changes are confined to PPC KVM code with the exception of a one-line > change to mm/ksm.c to export the ksm_madvise function, the addition of > a new ioctl number in include/uapi/linux/kvm.h, and the addition of a > Kconfig option in arch/powerpc/Kconfig (which Michael Ellerman is OK > with). Please hold off on this. Hugh Dickins sent some review comments identifying a problem (ksm_madvise needs mmap_sem held for writing, not just reading). I'll send an updated pull request shortly. Paul.