From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C776C4320E for ; Thu, 2 Sep 2021 10:18:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5A7A7610A1 for ; Thu, 2 Sep 2021 10:18:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243091AbhIBKTV (ORCPT ); Thu, 2 Sep 2021 06:19:21 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:58830 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243368AbhIBKTJ (ORCPT ); Thu, 2 Sep 2021 06:19:09 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A1A4B225D4; Thu, 2 Sep 2021 10:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1630577889; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o5wTXqNvuSJEwCeDL192rJBmN+9+D3ngDikxglpjpZ4=; b=WlWETb8uX6gQQE+aJZkft+x4OWzC7Ka2YDRDnhqW9avPQ6g1UABlehUmtDua4fYkAouMgi Yh6mS4ot3MbWgknmvRTYf5IC7xPzm5OKMCb8wK7YHiZs+vJsWt3GYjqnFqqViUTMuxtngS xUxnj1Zur5aW02GMtQvqR6WQVhT5sWo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1630577889; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o5wTXqNvuSJEwCeDL192rJBmN+9+D3ngDikxglpjpZ4=; b=u9LCFdZjeyVY6ogWowGjOZf3Ps3MMJioDzIwEtNZGnu4ahoXy52InCdqyFfKJaO9lR0bNZ 8KBNjTgbzGwhnkBA== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id A5CB413424; Thu, 2 Sep 2021 10:18:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id XWkQJuCkMGF2ZAAAGKfGzw (envelope-from ); Thu, 02 Sep 2021 10:18:08 +0000 Date: Thu, 2 Sep 2021 12:18:06 +0200 From: Joerg Roedel To: Andy Lutomirski Cc: James Bottomley , David Hildenbrand , Sean Christopherson , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm list , Linux Kernel Mailing List , Borislav Petkov , Andrew Morton , Andi Kleen , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , "Peter Zijlstra (Intel)" , Ingo Molnar , Varad Gautam , Dario Faggioli , the arch/x86 maintainers , linux-mm@kvack.org, linux-coco@lists.linux.dev, "Kirill A. Shutemov" , "Kirill A . Shutemov" , Sathyanarayanan Kuppuswamy , Dave Hansen , Yu Zhang Subject: Re: [RFC] KVM: mm: fd-based approach for supporting KVM guest private memory Message-ID: References: <20210824005248.200037-1-seanjc@google.com> <307d385a-a263-276f-28eb-4bc8dd287e32@redhat.com> <61ea53ce-2ba7-70cc-950d-ca128bcb29c5@redhat.com> <9ec3636a-6434-4c98-9d8d-addc82858c41@www.fastmail.com> <85b1dabf-f7be-490a-a856-28227a85ab3a@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <85b1dabf-f7be-490a-a856-28227a85ab3a@www.fastmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 01, 2021 at 10:08:33AM -0700, Andy Lutomirski wrote: > I asked David, and he said the PSP offers a swapping mechanism for > SEV-ES. I haven’t read the details, but they should all be public. Right, the details are here: https://www.amd.com/system/files/TechDocs/55766_SEV-KM_API_Specification.pdf Namely section 6.25 and 6.26 which describe the SWAP_OUT and SWAP_IN commands. Regards, Joerg From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 566F272 for ; Thu, 2 Sep 2021 10:18:11 +0000 (UTC) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A1A4B225D4; Thu, 2 Sep 2021 10:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1630577889; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o5wTXqNvuSJEwCeDL192rJBmN+9+D3ngDikxglpjpZ4=; b=WlWETb8uX6gQQE+aJZkft+x4OWzC7Ka2YDRDnhqW9avPQ6g1UABlehUmtDua4fYkAouMgi Yh6mS4ot3MbWgknmvRTYf5IC7xPzm5OKMCb8wK7YHiZs+vJsWt3GYjqnFqqViUTMuxtngS xUxnj1Zur5aW02GMtQvqR6WQVhT5sWo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1630577889; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o5wTXqNvuSJEwCeDL192rJBmN+9+D3ngDikxglpjpZ4=; b=u9LCFdZjeyVY6ogWowGjOZf3Ps3MMJioDzIwEtNZGnu4ahoXy52InCdqyFfKJaO9lR0bNZ 8KBNjTgbzGwhnkBA== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id A5CB413424; Thu, 2 Sep 2021 10:18:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id XWkQJuCkMGF2ZAAAGKfGzw (envelope-from ); Thu, 02 Sep 2021 10:18:08 +0000 Date: Thu, 2 Sep 2021 12:18:06 +0200 From: Joerg Roedel To: Andy Lutomirski Cc: James Bottomley , David Hildenbrand , Sean Christopherson , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm list , Linux Kernel Mailing List , Borislav Petkov , Andrew Morton , Andi Kleen , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , "Peter Zijlstra (Intel)" , Ingo Molnar , Varad Gautam , Dario Faggioli , the arch/x86 maintainers , linux-mm@kvack.org, linux-coco@lists.linux.dev, "Kirill A. Shutemov" , "Kirill A . Shutemov" , Sathyanarayanan Kuppuswamy , Dave Hansen , Yu Zhang Subject: Re: [RFC] KVM: mm: fd-based approach for supporting KVM guest private memory Message-ID: References: <20210824005248.200037-1-seanjc@google.com> <307d385a-a263-276f-28eb-4bc8dd287e32@redhat.com> <61ea53ce-2ba7-70cc-950d-ca128bcb29c5@redhat.com> <9ec3636a-6434-4c98-9d8d-addc82858c41@www.fastmail.com> <85b1dabf-f7be-490a-a856-28227a85ab3a@www.fastmail.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <85b1dabf-f7be-490a-a856-28227a85ab3a@www.fastmail.com> On Wed, Sep 01, 2021 at 10:08:33AM -0700, Andy Lutomirski wrote: > I asked David, and he said the PSP offers a swapping mechanism for > SEV-ES. I haven’t read the details, but they should all be public. Right, the details are here: https://www.amd.com/system/files/TechDocs/55766_SEV-KM_API_Specification.pdf Namely section 6.25 and 6.26 which describe the SWAP_OUT and SWAP_IN commands. Regards, Joerg