From 8a46d32dfe5eb734bd21a88c47b1d7d9c60260c4 Mon Sep 17 00:00:00 2001
From: Zhang Xiantao <xiantao.zhang@intel.com>
Date: Mon, 17 Dec 2007 16:43:24 +0800
Subject: [PATCH] kvm: qemu: No reason to disallow (phys_ram_alloc_offset + size) = phys_ram_size

No reason to disallow (phys_ram_alloc_offset + size) = phys_ram_size.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
---
 qemu/exec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu/exec.c b/qemu/exec.c
index cf14fdd..8b6a2f6 100644
--- a/qemu/exec.c
+++ b/qemu/exec.c
@@ -2093,7 +2093,7 @@ uint32_t cpu_get_physical_page_desc(target_phys_addr_t addr)
 ram_addr_t qemu_ram_alloc(unsigned long size)
 {
     ram_addr_t addr;
-    if ((phys_ram_alloc_offset + size) >= phys_ram_size) {
+    if ((phys_ram_alloc_offset + size) > phys_ram_size) {
         fprintf(stderr, "Not enough memory (requested_size = %lu, max memory = %d)\n",
                 size, phys_ram_size);
         abort();
-- 
1.5.2

