Sophie

Sophie

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

kvm-83-270.el5_11.src.rpm

From c05e9e5ef6a1030e006ed2e5e8316cb0ba3769a5 Mon Sep 17 00:00:00 2001
From: Izik Eidus <ieidus@redhat.com>
Date: Tue, 2 Jun 2009 14:45:23 +0300
Subject: [PATCH 2/4] fix bigmem offset calculation for qxl

when using big mem the 32bits offset to the rambase is just not enougth
move it into 64bits.

Thanks.

>From 32ea292c0c35640f325c6bf00228ef5661640c4c Mon Sep 17 00:00:00 2001
From: Izik Eidus <ieidus@redhat.com>
Date: Tue, 2 Jun 2009 13:25:52 -0400
Subject: [PATCH] spice: kvm-userpsace: fix bigmem offset calculation

when using big mem the 32bits offset to the rambase is just not enougth
move it into 64bits.

Thanks.

Signed-off-by: Izik Eidus <ieidus@redhat.com>
Message-ID: <4A2510D3.4040906@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
RH-Upstream-status: not-applicable
Acked-by: Dor Laor <dlaor@redhat.com>
Acked-by: Yaniv Kamay <ykamay@redhat.com>
Acked-by: Arnon Gilboa <agilboa@redhat.com>
Bugzilla: 504237
---
 qemu/hw/qxl.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/qemu/hw/qxl.c b/qemu/hw/qxl.c
index cab0855..473378a 100644
--- a/qemu/hw/qxl.c
+++ b/qemu/hw/qxl.c
@@ -90,12 +90,12 @@ typedef struct QXLState {
     uint32_t io_base;
     QXLRom *rom;
     QXLModes *modes;
-    uint32_t rom_offset;
+    uint64_t rom_offset;
     uint32_t rom_size;
 
     uint8_t *ram_start;
     QXLRam *ram;
-    uint32_t ram_offset;
+    uint64_t ram_offset;
     uint32_t ram_size;
     uint64_t ram_phys_addr;
 
@@ -145,7 +145,7 @@ struct PCIQXLDevice {
 typedef struct PCIVDIPortDevice {
     PCIDevice pci_dev;
     uint32_t io_base;
-    uint32_t ram_offset;
+    uint64_t ram_offset;
     uint32_t ram_size;
     VDIPortRam *ram;
     uint32_t connected;
-- 
1.6.3.rc4.29.g8146