WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: bogus check in get_page_from_l1e()?

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: [Xen-devel] Re: bogus check in get_page_from_l1e()?
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Tue, 08 Mar 2011 15:19:04 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 08 Mar 2011 07:22:38 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:cc:message-id :thread-topic:thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=7DpB67n2fq4VepYGz7uZInwMvH32+7gFE5yiOc7NNvU=; b=rtlAqoIICtpZdEcHAka7OWBElSn4cD9sGsGIWr/jTm9qewHXXjB1iO4qONpa3Rv6JY dBSGY0aI/29ZCl4J+/mKUG2rUBuAngw2C96cnb1oBY9qq7hEWbW4kn0y7xBLJ08JDnV9 0xa8M4kCUe0zlNMS5sKRwNZBBn4Raj2pOOo+U=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=kns/xcGCFgfpoOvNr8u+pyEj2Y2OOl9YwQNS+osGO38sOpv2urI2Ceqx/YxR8yc/qv XEWKHV27d/91XYqsp5WnRH8IptzlkqztRdPj/PfMe7PRZYLygvA6kluPOgfpkJRDlg5/ Uogul+gbijeM2kbfYB1H705f3gf+ydyDGJueg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D761C0D0200007800035236@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcvdpCja9RDtxM5mMkmF1bA9S1Yg9Q==
Thread-topic: bogus check in get_page_from_l1e()?
User-agent: Microsoft-Entourage/12.28.0.101117
On 08/03/2011 11:07, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:

> Keir,
> 
> in the I/O page code path, we have
> 
>         if ( !iomem_access_permitted(pg_owner, mfn, mfn) )
>         {
>             if ( mfn != (PADDR_MASK >> PAGE_SHIFT) ) /* INVALID_MFN? */
>                 MEM_LOG("Non-privileged (%u) attempt to map I/O space %08lx",
>                         pg_owner->domain_id, mfn);
>             return 0;
>         }
> 
> What is the reason to suppress the warning for the one specific
> (PADDR_MASK >> PAGE_SHIFT) MFN value, i.e. where could this
> validly come from and hence warrant not to issue the warning?
> 
> Also, the message seems to be having the potential of being
> misleading (these days at least, but perhaps it always was), as
> it clearly is possible for Dom0 to also be denied a mapping here
> (and hence the "Non-privileged" can be wrong).
> 
> Bottom line question: Should we issue the warning unconditionally,
> just stating the domain ID?

Long time a go, but ISTR that some PV guests (e.g., some versions of our
Linux patches) would attempt to map things during boot that they may not
have access to, and this would manifest as failed attempt to map
INVALID_MFN. Since it's not a genuine real I/O address that is failing to be
mapped, it also seems not so useful to log it.

That said, I'd be open to removing the check if it turns out that these days
failed mappings of INVALID_MFN never 'legitimately' happen. I'm skeptical of
that though.

 -- Keir

> Thanks, Jan
> 



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>