]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Introduce vmx_msr_bitmap_l01_changed() helper
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 29 Nov 2021 09:47:02 +0000 (10:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 14:06:04 +0000 (09:06 -0500)
commitd0e5e8771152597aabf1216f4b3fadd437991b6a
tree37b21b343dbcadb34eb359acf9c24bafec62093f
parente90ffb5c4d106155fcf830911dc6dc0b1519f89f
KVM: VMX: Introduce vmx_msr_bitmap_l01_changed() helper

In preparation to enabling 'Enlightened MSR Bitmap' feature for Hyper-V
guests move MSR bitmap update tracking to a dedicated helper.

Note: vmx_msr_bitmap_l01_changed() is called when MSR bitmap might be
updated. KVM doesn't check if the bit we're trying to set is already set
(or the bit it's trying to clear is already cleared). Such situations
should not be common and a few false positives should not be a problem.

No functional change intended.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211129094704.326635-3-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c