From: Radim Krčmář Date: Thu, 12 Feb 2015 18:41:34 +0000 (+0100) Subject: KVM: x86: simplify kvm_apic_map X-Git-Tag: omap-for-v4.1/fixes-rc1~202^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b5a5ffa928a3f875b0d5dd284eeb7c322e1688a;p=pandora-kernel.git KVM: x86: simplify kvm_apic_map recalculate_apic_map() uses two passes over all VCPUs. This is a relic from time when we selected a global mode in the first pass and set up the optimized table in the second pass (to have a consistent mode). Recent changes made mixed mode unoptimized and we can do it in one pass. Format of logical MDA is a function of the mode, so we encode it in apic_logical_id() and drop obsoleted variables from the struct. Signed-off-by: Radim Krčmář Message-Id: <1423766494-26150-5-git-send-email-rkrcmar@redhat.com> [Add lid_bits temporary in apic_logical_id. - Paolo] Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed