]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: hyper-v: Cache guest CPUID leaves determining features availability
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 21 May 2021 09:51:37 +0000 (11:51 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:38 +0000 (13:09 -0400)
commit6fd4f6d5e517c6e248567b05f12281b147735a24
tree206e1f232352ee6aff49bdb5e72c4a4e52342cb5
parent6c61a2f076b706dfc6b5a11751ca1d0a6f6c342a
KVM: x86: hyper-v: Cache guest CPUID leaves determining features availability

Limiting exposed Hyper-V features requires a fast way to check if the
particular feature is exposed in guest visible CPUIDs or not. To aboid
looping through all CPUID entries on every hypercall/MSR access cache
the required leaves on CPUID update.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210521095204.2161214-4-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/hyperv.c