summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-03-24 10:43:21 +0200
committerAvi Kivity <avi@redhat.com>2009-03-24 14:36:06 +0200
commit046d43ba20311d2f8a6f9b5441b94f0d9ac470c4 (patch)
tree1ce81383c3621c31a5f52c5ad1bf6e8caa046f48
parentkvm: external module: do not hardcode tsc_khz (diff)
downloadqemu-kvm-046d43ba20311d2f8a6f9b5441b94f0d9ac470c4.tar.gz
qemu-kvm-046d43ba20311d2f8a6f9b5441b94f0d9ac470c4.tar.bz2
qemu-kvm-046d43ba20311d2f8a6f9b5441b94f0d9ac470c4.zip
kvm: extboot: Update number of HDs reported by BIOS
The Vista boot loaded expects the bios to report a correct count of the bootable disks; and extboot disks are bootable. This fixes Vista boot from virtio-blk issue. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--kvm/extboot/extboot.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvm/extboot/extboot.S b/kvm/extboot/extboot.S
index e3d1adf84..1e60f6878 100644
--- a/kvm/extboot/extboot.S
+++ b/kvm/extboot/extboot.S
@@ -32,6 +32,9 @@ _start:
xor %ax, %ax
mov %ax, %ds
+ /* there is one more bootable HD */
+ incb 0x0475
+
/* save old int 19 */
mov (0x19*4), %eax
mov %eax, %cs:old_int19