lkml.org 
[lkml]   [2022]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] KVM: x86/mmu: add lockdep check before lookup_address_in_mm()
> I completely agree that lookup_address() and friends are unnecessarily fragile,
> but I think that attempting to harden them to fix this KVM bug will open a can
> of worms and end up delaying getting KVM fixed.

So basically, we need to:
- choose perf_get_page_size() instead of using any of the
lookup_address*() in mm.
- add a wrapper layer to adapt: 1) irq disabling/enabling and 2) size
-> level translation.

Agree?

\
 
 \ /
  Last update: 2022-04-26 20:50    [W:0.105 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site