Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4304284pxu; Tue, 20 Oct 2020 13:28:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC0uzuhPP12OeRSc21l7hpdDxYGahP7YDIKcNDt2TF9gbS6AaSU4ct9aLzk8LKP35kn5ng X-Received: by 2002:aa7:c643:: with SMTP id z3mr4739527edr.104.1603225732591; Tue, 20 Oct 2020 13:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603225732; cv=none; d=google.com; s=arc-20160816; b=aYZUQlBy47xfZ+wgCZ/aQ0a7cqvOrbjaEapWTWFCD691LcGhl0dJP9W3ha3DNta8r5 cEsvJOYtSp/LAV7I6xUfijnioqm4QCWpxaRXdNjppEtFbLw2oaGcAaPHkiG22jAufu7D n9HbRBFG0VkGa9RsAaSK/Fn3kKRydisf4tAN52fnREj8A5C0H0LuazRJvqA2tGmaxErK EF1gvl1K1Pc5JFOCywEGiTHl/P7xtciY2YM8fqXT+89S5L29ETTJE4640qrpj0cP7eRI kp44B4Q/tP0lAkY5D3xxfq4GTIGkQrT3icQLdRFCIB7Ai8IDeoaLfz/tmkomQJI52xHN HMxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WCNIsXqbUXOzIVXmiOYfRO/Rzg9TJllAtewiaSP3GKM=; b=H0mOhauxND8+0U5fSahFAKG1oE2uQeV7FbTTxPtk2pIUX2q3mXhgpKor11nLZoig6O ozYWJtj/gG1bFEGP+QkTidwvmRC80htgvOtzSLozYhElX7FveGvqWzqlh0W/Wm7rZcrA CXqliKMYvftc2R4bXhq5enIDQUqC+14I/4biEkL0zOAcCOiNql6qfY3Br4r/n52HPSL2 XVeC617LWXMN8ct5nd8Nme1koZ2DcDDI3Ici0VI2hDlz/j//LJX6ahw1EIP4eqUXHxnt OsU3sgd7c8fHyW6424WWqkqXGgllvSGSv+WukHXqPWssN/vQC5cmLhtnXvfX9uHlgghv m6iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZxA8J6JP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y41si1885862ede.192.2020.10.20.13.28.29; Tue, 20 Oct 2020 13:28:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZxA8J6JP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729700AbgJTHNA (ORCPT + 99 others); Tue, 20 Oct 2020 03:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728706AbgJTHNA (ORCPT ); Tue, 20 Oct 2020 03:13:00 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F0A0C061755; Tue, 20 Oct 2020 00:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WCNIsXqbUXOzIVXmiOYfRO/Rzg9TJllAtewiaSP3GKM=; b=ZxA8J6JPfMDUEAIlDegD6VN7Mw kTiSBVZpDoHIFc4FUAK5xxpb0h6osBndnpMCaK/V1S6gc0r57wzZp9JD6kkTt+hkDnUGLeZCVRIVP IKEFiR3euGhM133RXC6Fp3cWuP6Oml7l8/eoDxl361J46PF0VmzPOtnnImaWoSmmmyDGhIjNqpL+x 5s7tw6oaMt3QnNrabjpPBEfwikdlJBvW9w7+fapOwvAHAj6CRWWlY230ozrl2jLS1CnOmgtU7cuU+ QQVzmuM2RoJrYg5qyKb0gyilwxREcsCLvLj4/LkszvTE0hBeN6YQ+NXqSlRqODdHQowUqhPJQn8Wc LApoqxOw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUloh-0002R6-8F; Tue, 20 Oct 2020 07:12:19 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 914613011FE; Tue, 20 Oct 2020 09:12:17 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 807E02038FA06; Tue, 20 Oct 2020 09:12:17 +0200 (CEST) Date: Tue, 20 Oct 2020 09:12:17 +0200 From: Peter Zijlstra To: "Kirill A. Shutemov" Cc: Dave Hansen , Andy Lutomirski , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , David Rientjes , Andrea Arcangeli , Kees Cook , Will Drewry , "Edgecombe, Rick P" , "Kleen, Andi" , Liran Alon , Mike Rapoport , x86@kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: Re: [RFCv2 15/16] KVM: Unmap protected pages from direct mapping Message-ID: <20201020071217.GU2611@hirez.programming.kicks-ass.net> References: <20201020061859.18385-1-kirill.shutemov@linux.intel.com> <20201020061859.18385-16-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201020061859.18385-16-kirill.shutemov@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 20, 2020 at 09:18:58AM +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. How isn't disabling migration a problem? Are we going to back allocation by CMA instead?