KVM: lapic: Split out x2apic ldr calculation

commit e872fa9466 upstream.

Split out the ldr calculation from kvm_apic_set_x2apic_id
since we're about to reuse it in the following patch.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dr. David Alan Gilbert 2017-11-17 11:52:49 +00:00 • committed by Greg Kroah-Hartman
commit 47b35d190b