From: Avi Kivity <avi@redhat.com>
To: Marek Olszewski <mareko@csail.mit.edu>
Cc: kvm@vger.kernel.org
Subject: Re: Shadow page table questions
Date: Thu, 11 Mar 2010 08:39:49 +0200 [thread overview]
Message-ID: <4B989035.4050109@redhat.com> (raw)
In-Reply-To: <4B9833EE.1070705@csail.mit.edu>
On 03/11/2010 02:06 AM, Marek Olszewski wrote:
> Thanks for the response. I've looked through the code some more and
> think I have figured it out now. I finally see that the root_hpa
> variable gets switched before entering the guest in mmu_alloc_roots,
> to correspond with the new cr3. Thanks again.
>
> Perhaps you can help me with one more question. I was hoping to try
> out a certain change for a research project. I would like to
> "privatize" kvm_mmu_page's and their spe's for each guest thread
> running in certain designated guest processes. The goal is to give
> each thread its own shadow page table graphs that map the same guest
> logical addresses to guest physical addresses (with some changes to be
> introduced later). Are there any assumptions that KVM makes that
> will break if I do something like this? I understand that I will have
> to add some code throughout the mmu to make sure that these structures
> are synchronized when a guest thread makes a change, but I'm wondering
> if there is anything else. Does the reverse mapping data structure
> you have assume that there is only one shadow page per guest page?
It doesn't, and there are often multiple shadow pages per guest page,
distinguished by their sp->role field.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2010-03-11 6:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-10 4:57 Shadow page table questions Marek Olszewski
2010-03-10 9:47 ` Avi Kivity
2010-03-11 0:06 ` Marek Olszewski
2010-03-11 6:39 ` Avi Kivity [this message]
2010-03-11 16:14 ` Marek Olszewski
2010-03-13 8:51 ` Avi Kivity
2010-03-18 23:50 ` KVM Page Fault Question Marek Olszewski
2010-03-19 8:39 ` Avi Kivity
2010-04-02 4:41 ` Marek Olszewski
2010-04-02 6:39 ` Avi Kivity
[not found] ` <4BB614BC.9080608@csail.mit.edu>
2010-04-04 16:59 ` Avi Kivity
2010-04-22 5:26 ` Marek Olszewski
2010-04-22 6:52 ` Avi Kivity
[not found] ` <4BD0DFBE.1090103@csail.mit.edu>
2010-04-26 5:42 ` Marek Olszewski
2010-05-20 2:24 ` Shadow MMU state preserved across kvm_mmu_zap_all? Marek Olszewski
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=4B989035.4050109@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mareko@csail.mit.edu \
/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).