KVM: apic: fix LDR calculation in x2apic mode
authorGleb Natapov <gleb@redhat.com>
Sun, 14 Oct 2012 11:08:58 +0000 (13:08 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 3 Mar 2018 15:50:39 +0000 (15:50 +0000)
commit4dd3f19943428e142b87970f6066cd00b2a77291
treeead8c789b0d3e4fc070d77f8f34c3a53fd25b4a3
parent7b2c3508ea02718b75bb5f633a284f5ca9438be2
KVM: apic: fix LDR calculation in x2apic mode

commit 7f46ddbd487e0d0528d89534fdfb31d885977804 upstream.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Reviewed-by: Chegu Vinod <chegu_vinod@hp.com>
Tested-by: Chegu Vinod <chegu_vinod@hp.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kvm/lapic.c