From: Sheng Yang <sheng@linux.intel.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH 1/1] KVM: VMX: Fix base_ptes for EPT
Date: Wed, 19 Nov 2008 18:32:32 +0800 [thread overview]
Message-ID: <200811191832.32698.sheng@linux.intel.com> (raw)
In-Reply-To: <4923E99C.1030506@redhat.com>
On Wednesday 19 November 2008 18:25:32 Avi Kivity wrote:
> Sheng Yang wrote:
> > After support MTRR for EPT, memory type WB shouldn't take as default in
> > base_ptes. (Something wrong during the merging...)
>
> Yes, my fault.
>
> But don't we still have a big hole here? The guest can set RAM to
> various attributes, even without device assignment, and create
> inconsistencies with the qemu and host kernel mapping.
The current reply from hardware guys is: the only situation that cause MCE is
to access MMIO with cacheable memory type, and at least for EPT, they say
using different memory type for same memory region don't have problem as far as
we know... But for now, the hardware guys suggest to use host MTRR as the base
for EPT memory type rather than using guest MTRR, at least it would protect us
from MCE. And guest can operate it's PAT then promote UC to WC for performance
and use UC for DMA. We are still in discussion to get more details now.
For now, I may try to using host MTRR for EPT as suggested.
--
regards
Yang, Sheng
prev parent reply other threads:[~2008-11-19 10:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-19 8:31 [PATCH 1/1] KVM: VMX: Fix base_ptes for EPT Sheng Yang
2008-11-19 10:25 ` Avi Kivity
2008-11-19 10:32 ` Sheng Yang [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=200811191832.32698.sheng@linux.intel.com \
--to=sheng@linux.intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox