From: Alexander Graf Subject: Re: [PATCH 3/5] cpu-common: Have a ram_addr_t of uint64 with Xen. Date: Mon, 18 Jul 2011 14:30:12 +0200 Message-ID: References: <1310740376-13323-1-git-send-email-anthony.perard@citrix.com> <1310740376-13323-4-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1310740376-13323-4-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anthony Perard Cc: Xen Devel , QEMU-devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 15.07.2011, at 16:32, Anthony Perard wrote: > In Xen case, memory can be bigger than the host memory. that mean a > 32bits host (and QEMU) should be able to handle a RAM address of = 64bits. >=20 > Signed-off-by: Anthony PERARD > --- > cpu-common.h | 8 ++++++++ > exec.c | 9 +++++---- > xen-all.c | 2 +- > 3 files changed, 14 insertions(+), 5 deletions(-) >=20 > diff --git a/cpu-common.h b/cpu-common.h > index e4fcded..e1b40fe 100644 > --- a/cpu-common.h > +++ b/cpu-common.h > @@ -27,7 +27,15 @@ enum device_endian { > }; >=20 > /* address in the RAM (different from a physical address) */ > +#ifndef CONFIG_XEN_BACKEND > typedef unsigned long ram_addr_t; Do we really want to depend this on _BACKEND? ram_addr_t is target = dependent, no? Alex