All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Parish <srparish@us.ibm.com>
To: Gerd Knorr <kraxel@bytesex.org>
Cc: xen-devel@lists.xensource.com, Scott Parish <srparish@us.ibm.com>
Subject: Re: PAE xen + linux kernel boots ...
Date: Wed, 4 May 2005 02:20:33 +0000	[thread overview]
Message-ID: <20050504022033.GC7409@us.ibm.com> (raw)
In-Reply-To: <20050502140304.GA15699@bytesex>

[-- Attachment #1: Type: text/plain, Size: 718 bytes --]

On Mon, May 02, 2005 at 04:03:05PM +0200, Gerd Knorr wrote:

> > That didn't quite do the trick, but killing the machine_to_physical()
> > conversion in pte_val() got things working.
> 
> That looks like hiding a bug somewhere else.  All the p??_val()
> functions have a separate _ma() version which doesn't do the machine
> to physical translation, so I'd suspect that happening due to some
> place in the code using the wrong version of the macro, not due to
> the macro itself being broken ...

I'm pretty sure that set_pte_atomic() should be calling the _ma version
of pte_val; compare and note that set_pte() is doing no machine_to_phys().

sRp

Signed-off-by: Scott Parish <srparish@us.ibm.com>

-- 
Scott Parish

[-- Attachment #2: set-pte-atomic.diff --]
[-- Type: text/plain, Size: 1046 bytes --]

* looking for pae@localhost/linux--pae--1.0--patch-2 to compare with
* comparing to pae@localhost/linux--pae--1.0--patch-2
M  include/asm-xen/asm-i386/page.h
M  include/asm-xen/asm-i386/pgtable-3level.h

* modified files

--- orig/include/asm-xen/asm-i386/page.h
+++ mod/include/asm-xen/asm-i386/page.h
@@ -116,7 +116,10 @@
 	if (ret) ret = machine_to_phys(ret) | 1;
 	return ret;
 }
-#define pte_val_ma(v) ((v).pte_low) /* FIXME */
+static inline unsigned long long pte_val_ma(pte_t x)
+{
+	return (unsigned long long)x.pte_high << 32 | x.pte_low;
+}
 #define HPAGE_SHIFT	21
 #else
 typedef struct { unsigned long pte_low; } pte_t;


--- orig/include/asm-xen/asm-i386/pgtable-3level.h
+++ mod/include/asm-xen/asm-i386/pgtable-3level.h
@@ -60,7 +60,7 @@
 	ptep->pte_low = pte.pte_low;
 }
 # define set_pte_atomic(pteptr,pteval) \
-		set_64bit((unsigned long long *)(pteptr),pte_val(pteval))
+		set_64bit((unsigned long long *)(pteptr),pte_val_ma(pteval))
 #else
 # define set_pte(pteptr,pteval)				\
 		xen_l1_entry_update((pteptr), (pteval))




[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

  parent reply	other threads:[~2005-05-04  2:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-25 17:26 PAE xen + linux kernel boots Gerd Knorr
2005-04-27 12:03 ` Gerd Knorr
2005-04-28 18:41   ` Chris Wright
2005-04-29  8:01     ` Gerd Knorr
2005-04-30  8:40   ` Scott Parish
2005-04-30 22:55     ` Gerd Knorr
2005-04-30  9:01   ` Scott Parish
2005-04-30  9:51     ` Scott Parish
2005-04-30 10:54       ` Keir Fraser
2005-05-01  8:12         ` Scott Parish
2005-05-02 14:03           ` Gerd Knorr
2005-05-02 16:02             ` Scott Parish
2005-05-04  2:20             ` Scott Parish [this message]
2005-05-04  8:03               ` Gerd Knorr
2005-05-04 15:20                 ` Scott Parish
2005-05-04  2:28             ` Scott Parish
2005-05-04  3:22               ` Kip Macy
2005-05-04  3:23                 ` Scott Parish
2005-05-04  7:58                   ` Gerd Knorr
2005-04-30 23:15       ` Gerd Knorr
2005-04-30 23:01     ` Gerd Knorr
2005-04-30 22:57       ` Scott Parish

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=20050504022033.GC7409@us.ibm.com \
    --to=srparish@us.ibm.com \
    --cc=kraxel@bytesex.org \
    --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.