KVM: nVMX: Reword comments about generating nested CR0/4 read shadows
authorSean Christopherson <seanjc@google.com>
Wed, 31 Aug 2022 00:07:21 +0000 (00:07 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 1 Dec 2022 00:27:17 +0000 (16:27 -0800)
commit4a8fd4a720f8a8dbc370076d26388176c311218a
treefd3c45f2fb83ace1366bc65988712c35220d54ea
parent1f158147181b83c5ae02273d0b3b9eddaebcc854
KVM: nVMX: Reword comments about generating nested CR0/4 read shadows

Reword the comments that (attempt to) document nVMX's overrides of the
CR0/4 read shadows for L2 after calling vmx_set_cr0/4().  The important
behavior that needs to be documented is that KVM needs to override the
shadows to account for L1's masks even though the shadows are set by the
common helpers (and that setting the shadows first would result in the
correct shadows being clobbered).

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Link: https://lore.kernel.org/r/20220831000721.4066617-1-seanjc@google.com
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/nested.h