Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 340e01248478ba8b78a6d4d1809b1eff > files > 342

kvm-83-270.el5_11.src.rpm

From f21e6636eebc9949303d784ce40468620bf76876 Mon Sep 17 00:00:00 2001
From: Gleb Natapov <gleb@redhat.com>
Date: Tue, 24 Mar 2009 15:30:57 +0200
Subject: [PATCH 2/2] extboot should update number of HDs reported by BIOS

This fixes Vista boot from virtio-blk issue.

BZ 491861
Patch is upstream.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
RH-Upstream-status: submitted
Bugzilla: 491861
Acked-by: Glauber Costa <glommer@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Dor Laor <dlaor@redhat.com>
Acked-by: Zachary Amsden <zamsden@redhat.com>
---
 extboot/extboot.S |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/extboot/extboot.S b/extboot/extboot.S
index e3d1adf..1e60f68 100644
--- a/extboot/extboot.S
+++ b/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
-- 
1.6.1