lkml.org 
[lkml]   [2022]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 5/8] KVM: x86/mmu: Use separate namespaces for guest PTEs and shadow PTEs
From
On 6/15/22 16:26, Sean Christopherson wrote:
>> + * For example, a 4-byte PDE consumes bits 31:22 and an 8-byte PDE
>> + * consumes bits 29:21. Each guest PD must be expanded into four
>> + * shadow PDs, one for each value of bits 31:30, and the PDPEs
>> + * will use the four quadrants in round-robin fashion.
> It's not round-robin, that would imply KVM rotates through each quadrant on its
> own. FWIW, I like David's comment from his patch that simplifies this mess in a
> similar way.
>
> https://lore.kernel.org/all/20220516232138.1783324-5-dmatlack@google.com

Yeah, by round-robin I meant that the 512 entries will look like q=0 q=1
q=2 q=3 q=0 q=1 etc.

I'll incorporate David's comment, minus the last paragraph.

Paolo

\
 
 \ /
  Last update: 2022-06-15 16:36    [W:0.374 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site