public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] No reason to disallow (phys_ram_alloc_offset + size) = phys_ram_size in qemu_ram_alloc
@ 2007-12-17  8:51 Zhang, Xiantao
       [not found] ` <42DFA526FC41B1429CE7279EF83C6BDCB12FCF-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang, Xiantao @ 2007-12-17  8:51 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 1007 bytes --]

From: Zhang Xiantao <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 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 #2: 0001-kvm-qemu-No-reason-to-disallow-phys_ram_alloc_off.patch --]
[-- Type: application/octet-stream, Size: 991 bytes --]

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


[-- Attachment #3: Type: text/plain, Size: 308 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] No reason to disallow (phys_ram_alloc_offset + size) = phys_ram_size in qemu_ram_alloc
       [not found] ` <42DFA526FC41B1429CE7279EF83C6BDCB12FCF-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2007-12-17 11:25   ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-12-17 11:25 UTC (permalink / raw)
  To: Zhang, Xiantao; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Zhang, Xiantao wrote:
> From: Zhang Xiantao <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> 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.
>   
Applied, thanks.


-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-17 11:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-17  8:51 [PATCH] No reason to disallow (phys_ram_alloc_offset + size) = phys_ram_size in qemu_ram_alloc Zhang, Xiantao
     [not found] ` <42DFA526FC41B1429CE7279EF83C6BDCB12FCF-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-12-17 11:25   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox