Re: [PATCH 0/5] x86/coco: Mark CoCo VM pages not present when changing encrypted state

2023-10-02 Thread Tom Lendacky
On 9/29/23 13:19, Michael Kelley wrote: In a CoCo VM when a page transitions from encrypted to decrypted, or vice versa, attributes in the PTE must be updated *and* the hypervisor must be notified of the change. Because there are two separate steps, there's a window where the settings are inconsi

Re: [PATCH 1/5] x86/coco: Use slow_virt_to_phys() in page transition hypervisor callbacks

2023-10-02 Thread Tom Lendacky
On 9/29/23 13:19, Michael Kelley wrote: In preparation for temporarily marking pages not present during a transition between encrypted and decrypted, use slow_virt_to_phys() in the hypervisor callbacks. As long as the PFN is correct, slow_virt_to_phys() works even if the leaf PTE is not present.

Re: [PATCH 3/5] x86/mm: Mark CoCo VM pages not present while changing encrypted state

2023-10-02 Thread Tom Lendacky
On 9/29/23 13:19, Michael Kelley wrote: In a CoCo VM when a page transitions from encrypted to decrypted, or vice versa, attributes in the PTE must be updated *and* the hypervisor must be notified of the change. Because there are two separate steps, there's a window where the settings are inconsi

Re: [PATCH 3/5] x86/mm: Mark CoCo VM pages not present while changing encrypted state

2023-10-02 Thread Tom Lendacky
On 10/2/23 11:35, Tom Lendacky wrote: On 9/29/23 13:19, Michael Kelley wrote: In a CoCo VM when a page transitions from encrypted to decrypted, or vice versa, attributes in the PTE must be updated *and* the hypervisor must be notified of the change. Because there are two separate steps, there&#

Re: [RFC PATCH] clocksource: hyper-v: Enable the tsc_page for a TDX VM in TD mode

2024-05-28 Thread Tom Lendacky
On 5/24/24 17:44, Michael Kelley wrote: From: Dexuan Cui Sent: Friday, May 24, 2024 1:46 AM From: Dave Hansen Sent: Thursday, May 23, 2024 7:26 AM [...] On 5/22/24 19:24, Dexuan Cui wrote: ... My thoughts: __bss_decrypted is named as if it applies to any CoCo VM, but really it is specific

Re: [PATCH 03/16] x86/tsc: Add helper to register CPU and TSC freq calibration routines

2025-02-12 Thread Tom Lendacky
On 2/11/25 14:32, Borislav Petkov wrote: > On Tue, Feb 11, 2025 at 09:43:23AM -0800, Sean Christopherson wrote: >> It conflates two very different things: host/bare metal support for memory >> encryption, and SEV guest support. For kernels that will never run in a VM, >> pulling in all the SEV gue