From: Radim Krčmář Date: Fri, 22 May 2015 16:45:11 +0000 (+0200) Subject: KVM: x86: use correct APIC ID on x2APIC transition X-Git-Tag: omap-for-v4.3/legacy-v2-signed~167^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=257b9a5faab5849fa61f1a523b429dc279d33cc3;p=pandora-kernel.git KVM: x86: use correct APIC ID on x2APIC transition SDM April 2015, 10.12.5 State Changes From xAPIC Mode to x2APIC Mode • Any APIC ID value written to the memory-mapped local APIC ID register is not preserved. Fix it by sourcing vcpu_id (= initial APIC ID) instead of memory-mapped APIC ID. Proper use of apic functions would result in two calls to recalculate_apic_map(), so this patch makes a new helper. Signed-off-by: Radim Krčmář Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed