[PATCH] kvm: bios: use windows pcr to get cpu number rather than tr

2008-09-08 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] 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

[PATCH] kvm: qemu: stop using tr as cpu id for vtpr

2008-09-08 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] instead, use byte 4 of the vtpr region. Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/qemu/kvm-tpr-opt.c b/qemu/kvm-tpr-opt.c index 6677741..f2a3a1e 100644 --- a/qemu/kvm-tpr-opt.c +++ b/qemu/kvm-tpr-opt.c @@ -225,15 +225,11 @@ static int

[PATCH] kvm: qemu: regenerate bios for vtpr using windows pcr

2008-09-08 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/qemu/pc-bios/bios.bin b/qemu/pc-bios/bios.bin index 6aecdd7..dd21049 100644 Binary files a/qemu/pc-bios/bios.bin and b/qemu/pc-bios/bios.bin differ -- To unsubscribe from this list: send the line