From: Avi Kivity <avi@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: qemu-devel Developers <qemu-devel@nongnu.org>,
Aurelien Jarno <aurelien@aurel32.net>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [RFC] Host vs Guest memory allocation
Date: Mon, 12 Apr 2010 19:08:04 +0300 [thread overview]
Message-ID: <4BC34564.9080904@redhat.com> (raw)
In-Reply-To: <AE3A6D92-384F-4740-9904-EEF9A47A0232@suse.de>
On 04/12/2010 06:56 PM, Alexander Graf wrote:
>
> For fully system emulation on the other hand I can imagine quite some nice tricks one could pull.
>
> On PPC hosts you get a huge number of VSIDs that are basically like tags on the TLB. So if you'd give every x86 page table one VSID you'd potentially have really great and fast shadow PTEs.
>
You mean, if you have lots of ppc machines but no x86?
smp would be a problem because of the relaxed memory model (of course
tcg needs a lot of work before it can do smp anyway).
> On x86 hosts you can just keep several page tables around. You can then map for example every combination of guest VSIDs to one page table each.
>
Yeah.
> I'm sure there are similar fun things you can do with the other supported archs. The hard part is to come up with something generic enough so it works on all hosts and guests with little effort. Oh well :)
>
Well, x86 page tables are pretty flexible, the memory model is strict,
the atomics are rich, and you have both unaligned and trapping
accesses. So if you restrict yourself to x86 hosts I think you can do
anything with page size >= 4k.
Run both user and kernel mode in guest user mode, do tcg and mmu in
kernel mode. Should be fun.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
next prev parent reply other threads:[~2010-04-12 16:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-05 22:45 [Qemu-devel] [RFC] Host vs Guest memory allocation Richard Henderson
2010-04-05 23:18 ` Aurelien Jarno
2010-04-12 11:48 ` Avi Kivity
2010-04-12 14:55 ` Richard Henderson
2010-04-12 15:09 ` Avi Kivity
2010-04-12 15:39 ` Alexander Graf
2010-04-12 15:49 ` Avi Kivity
2010-04-12 15:56 ` Alexander Graf
2010-04-12 16:08 ` Avi Kivity [this message]
2010-04-12 11:25 ` Paul Brook
2010-04-12 14:48 ` Richard Henderson
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=4BC34564.9080904@redhat.com \
--to=avi@redhat.com \
--cc=agraf@suse.de \
--cc=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).