]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Add helper to consolidate core logic of SET_CPUID{2} flows
authorSean Christopherson <seanjc@google.com>
Fri, 5 Nov 2021 09:51:00 +0000 (09:51 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Nov 2021 15:56:21 +0000 (10:56 -0500)
commit6f4fe76382c0a34fec8e0dc8d7c056b319ea17e8
tree1e09065c54aae2b4609ef4da730a18be3e4271b5
parentd4d13cd809ed3b8a1f22bb2986e1d2247092fcb9
KVM: x86: Add helper to consolidate core logic of SET_CPUID{2} flows

Move the core logic of SET_CPUID and SET_CPUID2 to a common helper, the
only difference between the two ioctls() is the format of the userspace
struct.  A future fix will add yet more code to the core logic.

No functional change intended.

Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211105095101.5384-2-pdurrant@amazon.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c