From: Avi Kivity <avi@qumranet.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] phys_ram_base, direct access to guest memory
Date: Mon, 17 Mar 2008 19:23:20 +0200 [thread overview]
Message-ID: <47DEA908.4040907@qumranet.com> (raw)
In-Reply-To: <18398.33922.132796.510683@mariner.uk.xensource.com>
Ian Jackson wrote:
> As I think has been mentioned here a few times before, Xen is able to
> support guests with more RAM than the host's (strictly, dom0's)
> address space. For example, 64-bit guests with >4G RAM on 32-bit
> hosts. For this and for other reasons, guest physical RAM is not
> mapped into any host process.
>
> I don't expect qemu to take the Xen mapcache, which has been
> extensively discussed and is apparently not well-regarded here.
>
> However, it would be very helpful if where reasonable parts of qemu
> would avoid assuming that they can get at guest physical memory by use
> of phys_ram_base.
>
> For example, in the loader in pc.c, simply adding phys_ram_base does
> not work and we have to have a rather large patch to convert things to
> use cpu_physical_memory_rw. The result is no more cumbersome -
> indeed, it's slightly tidier in a few ways because there's less need
> to constantly add and subtract phys_ram_base; the code can just deal
> with guest physical addresses directly, as numbers, and leave the
> actual memory access to the existing physical memory abstraction.
>
> So I think it would be nice to have that change in qemu upstream.
> While it doesn't directly enable anything useful right away, the
> result is slightly cleaner. I'll submit a proper patch shortly.
>
Actually it is quite useful, with the 4GB+ support qemu memory is not
linear since the pci hole is skipped in phys_ram_base.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2008-03-17 17:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-17 14:47 [Qemu-devel] phys_ram_base, direct access to guest memory Ian Jackson
2008-03-17 15:52 ` [Qemu-devel] [PATCH] Remove most uses of phys_ram_base in hw/pc.c Ian Jackson
2008-03-17 17:23 ` Avi Kivity [this message]
2008-03-25 11:12 ` [Qemu-devel] [PATCH] Re: phys_ram_base, direct access to guest memory Ian Jackson
2008-04-08 18:46 ` Aurelien Jarno
2008-05-02 14:52 ` Blue Swirl
2008-05-05 4:01 ` Aurelien Jarno
2008-05-13 16:11 ` Blue Swirl
2008-05-13 17:03 ` Fabrice Bellard
2008-05-13 18:05 ` Blue Swirl
2008-05-13 18:38 ` Fabrice Bellard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47DEA908.4040907@qumranet.com \
--to=avi@qumranet.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.