Thread (305 messages) 305 messages, 22 authors, 2023-01-05

Re: [PATCH Part2 v6 14/49] crypto: ccp: Handle the legacy TMR allocation when SNP is enabled

From: "Kalra, Ashish" <ashish.kalra@amd.com>
Date: 2022-11-16 19:23:39
Also in: kvm, linux-crypto, linux-mm, lkml

On 11/16/2022 1:09 PM, Borislav Petkov wrote:
On Wed, Nov 16, 2022 at 12:53:36PM -0600, Kalra, Ashish wrote:
quoted
Actually, these host allocated pages would have already been removed from
the kernel direct map,
And, as I said above, it would be a lot easier to handle any potential
faults resulting from the host touching them by having it raise a *RMP*
fault instead of normal *PF* fault where the latter code is a crazy mess.
Just to reiterate here, we won't be getting a *RMP* fault but will 
instead get a normal (not-present) #PF fault when the host touches these 
pages.

Sorry for any confusion about the fault signaled, earlier i mentioned we 
will get a RMP violation #PF, but actually as these pages are also 
removed from the kernel direct-map, therefore, we will get the 
not-present #PF and not the RMP #PF (core will check and signal 
not-present #PF before it performs the RMP checks).

Thanks,
Ashish
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help