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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90B6CC54EBC for ; Thu, 12 Jan 2023 11:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233338AbjALLiP (ORCPT ); Thu, 12 Jan 2023 06:38:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232258AbjALLgi (ORCPT ); Thu, 12 Jan 2023 06:36:38 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7649D12AE3; Thu, 12 Jan 2023 03:28:52 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 125C11EC05F1; Thu, 12 Jan 2023 12:28:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1673522931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=hGCInzxwdz3lL/OXhdLEr9SwPYx1B9No4yYNsqHgk4o=; b=imyTnnHVUxepRjSqAJ/+Wyb1aCPf0S3BJ0fBg1IW7QJ7ILZCBnIDXjpNyqRFXkc1pQ/Q4Q 0J2K0of8Qptdoi+iMDY+FUTvxG8vkhNXiDVUmIUDP+H7sogwWqpK1ll+cx3kOzgHRtB6iA JJl4m2Ij2VFujQMJQ4ddyu25WcOpVbU= Date: Thu, 12 Jan 2023 12:28:47 +0100 From: Borislav Petkov To: Alexey Kardashevskiy Cc: Tom Lendacky , kvm@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Venu Busireddy , Tony Luck , Thomas Gleixner , Sean Christopherson , Sandipan Das , Peter Zijlstra , Pawan Gupta , Paolo Bonzini , Michael Roth , Mario Limonciello , Jan Kara , Ingo Molnar , Huang Rui , Dave Hansen , Daniel Sneddon , Brijesh Singh , Arnaldo Carvalho de Melo , Andrew Cooper , Alexander Shishkin , Adrian Hunter , "Jason A. Donenfeld" , "H. Peter Anvin" Subject: Re: [PATCH kernel v2 2/3] KVM: SEV: Enable data breakpoints in SEV-ES Message-ID: References: <20221209043804.942352-1-aik@amd.com> <20221209043804.942352-3-aik@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 12, 2023 at 04:45:34PM +1100, Alexey Kardashevskiy wrote: > Well, SEV-ES KVM (ES == Encrypted State) does not save/restore them for the > guest (well, as I would expect) as the guest registers are not visible to > host to save, they are intercepted and the VM does this GHCB dance with > VMGEXIT(SVM_EXIT_WRITE_DR7). But they're saved in the VMSA, as Table B-3 says. > Well, the only place in APM is that "Table B-3. Swap Types and the AMD APM > volume 2", and it is pretty brief, do I miss something? I don't understand that question - please elaborate. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette