Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
when resuming from hibernation, the saved image will contain calls to the vapic
even though the vapic was never enabled on this run. add hooks so qemu can
detect this condition.
Signed-off-by: Avi Kivity <avi@qumranet.com>
|
|
Signed-off-by: Avi Kivity <avi@qumranet.com>
|
|
Apparently the Windows code that accesses the tpr is preemptible, and
this causes vtpr+smp to fail. Fix by disabling interrupts when accessing
the vtpr.
Signed-off-by: Avi Kivity <avi@qumranet.com>
|
|
up is simpler and doesn't need messing with tr; that may help with
hibernate.
Signed-off-by: Avi Kivity <avi@qumranet.com>
|
|
Add supportint code for patching tpr accesses. The code includes a descriptor
that allows locating the code in the bios, relocation information for
patching it into whatever virtual address it ends up in, and vapic access code.
Signed-off-by: Avi Kivity <avi@qumranet.com>
|