Re: [RFC 16/16] KVM: Unmap protected pages from direct mapping

2020-05-26 Thread Kirill A. Shutemov
On Tue, May 26, 2020 at 09:16:38AM +0300, Mike Rapoport wrote: > On Fri, May 22, 2020 at 03:52:14PM +0300, Kirill A. Shutemov wrote: > > If the protected memory feature enabled, unmap guest memory from > > kernel's direct mappings. > > > > Migration and KSM is disabled for protected memory as it w

Re: [RFC 16/16] KVM: Unmap protected pages from direct mapping

2020-05-25 Thread Mike Rapoport
On Fri, May 22, 2020 at 03:52:14PM +0300, Kirill A. Shutemov wrote: > If the protected memory feature enabled, unmap guest memory from > kernel's direct mappings. > > Migration and KSM is disabled for protected memory as it would require a > special treatment. > > Signed-off-by: Kirill A. Shutemo

[RFC 16/16] KVM: Unmap protected pages from direct mapping

2020-05-22 Thread Kirill A. Shutemov
If the protected memory feature enabled, unmap guest memory from kernel's direct mappings. Migration and KSM is disabled for protected memory as it would require a special treatment. Signed-off-by: Kirill A. Shutemov --- arch/x86/mm/pat/set_memory.c | 1 + include/linux/kvm_host.h | 3 ++