xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Chen, Tiejun" <tiejun.chen@intel.com>
To: Jan Beulich <JBeulich@suse.com>, Yang Z Zhang <yang.z.zhang@intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [v3][PATCH 1/1] xen:vtd: missing RMRR mapping while share EPT
Date: Fri, 25 Jul 2014 16:43:07 +0800	[thread overview]
Message-ID: <53D2189B.6080008@intel.com> (raw)
In-Reply-To: <53D2331D0200007800025E7B@mail.emea.novell.com>

On 2014/7/25 16:36, Jan Beulich wrote:
>>>> On 25.07.14 at 10:24, <yang.z.zhang@intel.com> wrote:
>> Jan Beulich wrote on 2014-07-25:
>>>>>> On 24.07.14 at 19:12, <kevin.tian@intel.com> wrote:
>>>>>> From: Chen, Tiejun
>>>>> Sent: Thursday, July 24, 2014 4:00 AM
>>>>>
>>>>> intel_iommu_map_page() does nothing if VT-d shares EPT page table.
>>>>> So rmrr_identity_mapping() never create RMRR mapping but in some
>>>>> cases like some GFX drivers it still need to access RMRR.
>>>>
>>>> this is not accurate. as long as RMRR is reported, it's always
>>>> necessary to have the identity mapping there, not just needed in
>>>> SOME CASES. :-)
>>>
>>> Actually (as also said before) I think "in some cases" is quite correct:
>>> There's no guarantee that a device will actually access the region(s)
>>> an RMRR may specify for it. A particular example would be the USB case
>>> where iiuc these regions are needed only until legacy mode emulation gets
>> turned off.
>>
>> Yes, even for Intel GFX, the RMRR is never really accessed. So we never saw
>> any issue even without this patch.
>
> So then what's the patch good for? If it's just addressing a theoretical

No, this is not a theoretical problem.

I already reply to Yang, on BDW windows GFX driver really accesses this 
range now. Without this patch, the blue screen appears.

Tiejun

> issue, then this supports my intention to commit it only when the other
> (theoretical only) problem also gets taken care of.
>
> Jan
>
>
>

  reply	other threads:[~2014-07-25  8:43 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-24 11:00 [v3][PATCH 1/1] xen:vtd: missing RMRR mapping while share EPT Tiejun Chen
2014-07-24 11:11 ` Tim Deegan
2014-07-24 11:25   ` Chen, Tiejun
2014-07-24 11:35     ` Tim Deegan
2014-07-24 11:51       ` Chen, Tiejun
2014-07-24 12:16         ` Jan Beulich
2014-07-25  6:48           ` Chen, Tiejun
2014-07-25  7:07             ` Jan Beulich
2014-07-25  7:53               ` Chen, Tiejun
2014-07-25  8:02                 ` Jan Beulich
2014-07-25 12:22                   ` Tim Deegan
2014-07-24 12:10       ` Jan Beulich
2014-07-25  0:56         ` Zhang, Yang Z
2014-07-25  6:58           ` Jan Beulich
2014-07-25  8:19             ` Zhang, Yang Z
2014-07-25  8:34               ` Jan Beulich
2014-07-25  6:47       ` Chen, Tiejun
2014-07-25  8:07         ` Jan Beulich
2014-07-25  8:45           ` Chen, Tiejun
2014-07-25  9:14             ` Jan Beulich
2014-07-24 17:12 ` Tian, Kevin
2014-07-25  8:15   ` Jan Beulich
2014-07-25  8:24     ` Zhang, Yang Z
2014-07-25  8:26       ` Chen, Tiejun
2014-07-25  8:28         ` Zhang, Yang Z
2014-07-25  8:30           ` Chen, Tiejun
2014-07-25  8:36       ` Jan Beulich
2014-07-25  8:43         ` Chen, Tiejun [this message]
2014-07-25 12:53     ` Tian, Kevin

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=53D2189B.6080008@intel.com \
    --to=tiejun.chen@intel.com \
    --cc=JBeulich@suse.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xen.org \
    --cc=yang.z.zhang@intel.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;
as well as URLs for NNTP newsgroup(s).