From: Paolo Bonzini <pbonzini@redhat.com>
To: Zhang Haoyu <zhanghy@sangfor.com>,
Gleb Natapov <gleb@cloudius-systems.com>
Cc: kvm <kvm@vger.kernel.org>, "Michael S.Tsirkin" <mst@redhat.com>
Subject: Re: What's the difference between EPT_MISCONFIG and EPT_VIOLATION?
Date: Wed, 03 Dec 2014 11:24:49 +0100 [thread overview]
Message-ID: <547EE4F1.4070701@redhat.com> (raw)
In-Reply-To: <201412031812064379324@sangfor.com>
On 03/12/2014 11:12, Zhang Haoyu wrote:
>> > EXIT_REASON_EPT_VIOLATION is similar to a "page not present" pagefault
>> > EXIT_REASON_EPT_MISCONFIG is similar to a "reserved bit set" pagefault.
>> > handle_ept_misconfig() handles mmio pagefault because KVM has an
>> > optimization that uses reserved bits to mark mmio regions.
>> >
> Thanks, Gleb,
> where does kvm use the reserved bits to mark mmio regions?
ept_set_mmio_spte_mask is where KVM tells mmu.c how to mark MMIO
regions. You can search mmu.c for shadow_mmio_mask and is_mmio_spte in
order to find out more about this optimization, you'll also get to the
mark_mmio_spte function that Gleb mentioned.
Paolo
prev parent reply other threads:[~2014-12-03 10:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-03 9:50 What's the difference between EPT_MISCONFIG and EPT_VIOLATION? Zhang Haoyu
2014-12-03 9:56 ` Gleb Natapov
2014-12-03 10:12 ` Zhang Haoyu
2014-12-03 10:23 ` Gleb Natapov
2014-12-03 10:24 ` Paolo Bonzini [this message]
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=547EE4F1.4070701@redhat.com \
--to=pbonzini@redhat.com \
--cc=gleb@cloudius-systems.com \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
--cc=zhanghy@sangfor.com \
/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