From: "Clyde Griffin" <CGRIFFIN@novell.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>,
"Donald D. Dugger" <donald.d.dugger@intel.com>
Cc: xen-devel@lists.xensource.com, Jun Nakajima <jun.nakajima@intel.com>
Subject: Re: [PATCH] Fix mem.c so that X Windows can restart
Date: Thu, 25 May 2006 16:14:40 -0600 [thread overview]
Message-ID: <4475D7EB.F3F6.00AD.0@novell.com> (raw)
In-Reply-To: <6c2ece1dc117d8bbafad32bb376eb273@cl.cam.ac.uk>
>>> On 5/25/2006 at 2:52 PM, in message
<6c2ece1dc117d8bbafad32bb376eb273@cl.cam.ac.uk>, Keir Fraser
<Keir.Fraser@cl.cam.ac.uk> wrote:
> On 25 May 2006, at 20:32, Donald D. Dugger wrote:
>
>> This patch fixes the problem where you cannot start X Windows on
Dom0
>> after
>> you have created an HVM guest. The problem is that X uses `mmap' to
>> map
>> 1 page at physical address 0 with read/write permission. Before an
HVM
>> guest is created this check at around line 1496 of `mm.c':
>>
>> if ( unlikely((x & (PGT_type_mask|PGT_va_mask)) != type) )
>>
>> causes the offending code from this patch to be bypassed and X's
`mmap'
>> call works. After an HVM guest is created the check at 1496 of
`mm.c'
>> is
>> now true and the code from this patch is executed, causing the
`mmap'
>> call to
>> erroneously fail.
>
> This is totally bogus. That test (line 1496) should *never* be true
for
> pages that are not type PGT_l*_page_table. I think some HVM code is
> indexing frame_table with a zero frame number and then fiddling with
> fields in that very first page_info structure. That's very bad -- in
> fact it's tempting to add some assertions about page 0 to be tested
at
> various suitable moments to prevent this sort of bad behaviour.
Keir,
We hit this very frequently. Any chance you could put together a patch
with the asserts in place so we can throw it into our code base to try
and catch the problem?
Clyde
>
> -- Keir
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
prev parent reply other threads:[~2006-05-25 22:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-25 19:32 [PATCH] Fix mem.c so that X Windows can restart Donald D. Dugger
2006-05-25 20:52 ` Keir Fraser
2006-05-25 22:14 ` Clyde Griffin [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=4475D7EB.F3F6.00AD.0@novell.com \
--to=cgriffin@novell.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=donald.d.dugger@intel.com \
--cc=jun.nakajima@intel.com \
--cc=xen-devel@lists.xensource.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 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.