yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-seabios-paravirt-allow-more-than-1TB-in-x86-guest.patch

9ae3a8
From df701ea37b50b14a18185708189d85d332b29319 Mon Sep 17 00:00:00 2001
9ae3a8
From: Andrea Arcangeli <aarcange@redhat.com>
9ae3a8
Date: Tue, 8 Oct 2013 17:05:45 +0200
9ae3a8
Subject: [PATCH 1/3] seabios paravirt: allow more than 1TB in x86 guest
9ae3a8
9ae3a8
RH-Author: Andrea Arcangeli <aarcange@redhat.com>
9ae3a8
Message-id: <1381251945-13402-2-git-send-email-aarcange@redhat.com>
9ae3a8
Patchwork-id: 54784
9ae3a8
O-Subject: [RHEL-7.0 qemu-kvm PATCH] seabios paravirt: allow more than 1TB in x86 guest
9ae3a8
Bugzilla: 989677
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Gleb Natapov <gleb@redhat.com>
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
9ae3a8
This patch should be applied to the qemu-kvm rpm package at the same
9ae3a8
time of the other one for seabios, so qemu will forward the ram_size
9ae3a8
bits over 40 to seabios without losing them.
9ae3a8
9ae3a8
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
9ae3a8
---
9ae3a8
 hw/i386/pc.c | 1 +
9ae3a8
 1 file changed, 1 insertion(+)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/i386/pc.c |    1 +
9ae3a8
 1 files changed, 1 insertions(+), 0 deletions(-)
9ae3a8
9ae3a8
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
9ae3a8
index 3c77040..d3acbbb 100644
9ae3a8
--- a/hw/i386/pc.c
9ae3a8
+++ b/hw/i386/pc.c
9ae3a8
@@ -399,6 +399,7 @@ void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size,
9ae3a8
     rtc_set_memory(s, 0x5b, val);
9ae3a8
     rtc_set_memory(s, 0x5c, val >> 8);
9ae3a8
     rtc_set_memory(s, 0x5d, val >> 16);
9ae3a8
+    rtc_set_memory(s, 0x5e, val >> 24);
9ae3a8
 
9ae3a8
     /* set the number of CPU */
9ae3a8
     rtc_set_memory(s, 0x5f, smp_cpus - 1);
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8