From: Zhang Xiantao <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
---
 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

Attachment: 0001-kvm-qemu-No-reason-to-disallow-phys_ram_alloc_off.patch
Description: 0001-kvm-qemu-No-reason-to-disallow-phys_ram_alloc_off.patch

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to