lkml.org 
[lkml]   [2024]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] KVM: x86/mmu: Precisely invalidate MMU root_role during CPUID update
From
On Mon, 08 Apr 2024 16:11:15 -0700, Sean Christopherson wrote:
> Set kvm_mmu_page_role.invalid to mark the various MMU root_roles invalid
> during CPUID update in order to force a refresh, instead of zeroing out
> the entire role. This fixes a bug where kvm_mmu_free_roots() incorrectly
> thinks a root is indirect, i.e. not a TDP MMU, due to "direct" being
> zeroed, which in turn causes KVM to take mmu_lock for write instead of
> read.
>
> [...]

Applied super quickly to kvm-x86 fixes, so that it gets time in -next before I
pass it on to Paolo. This is the last commit in "fixes", so it's easy to drop
and/or modify if there's an issue.

[1/1] KVM: x86/mmu: Precisely invalidate MMU root_role during CPUID update
https://github.com/kvm-x86/linux/commit/4fa96da3e6fe

--
https://github.com/kvm-x86/linux/tree/next

\
 
 \ /
  Last update: 2024-05-27 16:30    [W:0.029 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site