kvm: bios: use windows pcr to get cpu number rather than tr
commit4cf08f478b0dcb3ccd46fab75c2a69db707559aa
authorAvi Kivity <avi@qumranet.com>
Sun, 7 Sep 2008 16:34:47 +0000 (7 19:34 +0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 7 Sep 2008 16:34:47 +0000 (7 19:34 +0300)
tree288210f6b72c0a5ad332ec35632b827df766030f
parentf5f6921ff3f00395520271f5bdc529872682b9d7
kvm: bios: use windows pcr to get cpu number rather than tr

using tr to hold the current cpu number interferes with hibernate/resume
in smp.  so instead, get the cpu number directly from the windows pcr at
fs:0x51.

use byte 4 of the per-cpu vapic region to check whether vapic is enabled.

Signed-off-by: Avi Kivity <avi@qumranet.com>
kvm/bios/vapic.S