Present kvm with corret apic phys id.
commitf5dabc91790f509fffe211e734028b5982079acb
authorGlauber Costa <glommer@redhat.com>
Wed, 29 Apr 2009 20:31:41 +0000 (29 16:31 -0400)
committerAvi Kivity <avi@redhat.com>
Mon, 4 May 2009 08:32:30 +0000 (4 11:32 +0300)
tree26918a2f9b72e218171cdeb0f2bc0133c152b3d8
parente895900ee7275bbae76261c5a922e180e5f4d246
Present kvm with corret apic phys id.

KVM will 24-shift bits in addr 0x20 (APIC_ID) before actually
using it. We currently load phys_id as "s->id". After shifted
by 24 bits, it will result in a meaningless value. We should really
be doing "s->id << 24", which, after shifted, will lead to the correct
value.

This is for the load function. save has the invert problem.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/apic.c