From: Marek Olszewski <mareko@csail.mit.edu>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: KVM Page Fault Question
Date: Mon, 26 Apr 2010 01:42:58 -0400 [thread overview]
Message-ID: <4BD527E2.6010305@csail.mit.edu> (raw)
In-Reply-To: <4BD0DFBE.1090103@csail.mit.edu>
Avi,
>
> I guess I only really care about intercepting ring 0 -> ring 3
> transitions in the guest. Is there an easier way of intercepting these?
Never mind about this. I figured out a solution to my problem that
didn't need to intercept these transitions.
Unfortunately, now I have a new problem. I'm getting a segfault in
gfn_to_rmap caused by gfn_to_memslot returning NULL. Would someone mind
explaining this code to me? I don't really understand what it is doing.
Also, does the current code assume that any guest page in any level can
be shadowed more than once, or are only certain levels allowed to be
shadowed multiple times?
Thank you!
Marek
>
> Marek
>
>
> Avi Kivity wrote:
>> On 04/22/2010 08:26 AM, Marek Olszewski wrote:
>>> Under VMX without EPT, I do not seeing any VM Exits due to task
>>> switches. Is there a way to enable these? I'm looking to intercept
>>> the guest whenever it does a iret.
>>
>> See EXIT_REASON_TASK_SWITCH. However, that won't fire on any iret,
>> only irets that generate task switches. You can ask for exits on
>> irets by setting CPU_BASED_VIRTUAL_NMI_PENDING and
>> GUEST_INTR_STATE_NMI, and looking for EXIT_REASON_NMI_WINDOW.
>>
>
>
next prev parent reply other threads:[~2010-04-26 5:48 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
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 [this message]
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=4BD527E2.6010305@csail.mit.edu \
--to=mareko@csail.mit.edu \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.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.