From: Keir Fraser Subject: Re: [PATCH] [Xen] Check FADT's signature Date: Fri, 24 Aug 2007 16:20:21 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1682560337==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefan Berger Cc: xen-devel , Jan Beulich List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============1682560337== Content-type: multipart/alternative; boundary="B_3270817224_673767" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3270817224_673767 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Okay, please try tip of staging tree (c/s 15773). -- Keir On 24/8/07 07:19, "Stefan Berger" wrote: >=20 > xen-devel-bounces@lists.xensource.com wrote on 08/10/2007 09:15:57 PM: >=20 >> > A good debugging approach will be to write a function that walks the >> > pagetables for that virtual address and prints the PTE that maps it. >> > Scatter calls to this function between acpi_boot_table_init() and >> > acpi_boot_init() and hence narrow down exactly where the PTE is >> > getting zapped. >=20 > What is happening is that the pl1e pointer used for mapping the ACPI tabl= e > entry changes between the calls before paging_init() and after. The > l1_pgentry_t that is used before paging_init() correctly shows that the p= age > is present whereas the one used after indicates that the page is not pres= ent. > Then when the ACPI table is mapped after paging_init() the tlb is not flu= shed > and wrong information is read. >=20 > Stefan=20 >=20 >> >=20 >> > -- Keir >> >=20 >> > On 10/8/07 19:21, "Keir Fraser" wrote: >=20 >> > On 10/8/07 18:00, "Stefan Berger" wrote: >=20 >> > (XEN) map_pages_to_xen : 3533 >> > (that's the line number) >> > (XEN) 0xfff9b000 was NOT present. >> >=20 >> > Something between (*) and here seems to trash this presence flag. >> > paging_init() and many others lie in between the upper call and this >> > one here. Could be a side effect of this? Maybe that tlb flush at >> > the right place in one of these functions would solve the problem? >> >=20 >> > Yes, this now looks likely and that=B9s rather scary. We=B9ll go after >> > this next week. >> > _______________________________________________ >> > Xen-devel mailing list >> > Xen-devel@lists.xensource.com >> > http://lists.xensource.com/xen-devel >=20 --B_3270817224_673767 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] [PATCH] [Xen] Check FADT's signature Okay,= please try tip of staging tree (c/s 15773).

 -- Keir

On 24/8/07 07:19, "Stefan Berger" <stefanb@us.ibm.com> wrot= e:


xen-devel-bounces@lists.xensource.com wrote on 08/10/2007 09:15:57 PM:
> A good debugging approach will be to write a function that walks the > pagetables for that virtual address and prints the PTE that maps it. > Scatter calls to this function between acpi_boot_table_init() and
> acpi_boot_init() and hence narrow down exactly where the PTE is
> getting zapped.


What is happening is that the pl1e = pointer used for mapping the ACPI table entry changes between the calls befo= re paging_init() and after. The l1_pgentry_t that is used before paging_init= () correctly shows that the page is present whereas the one used after indic= ates that the page is not present. Then when the ACPI table is mapped after = paging_init() the tlb is not flushed and wrong information is read.

  Stefan

>
>  -- Keir
>
> On 10/8/07 19:21, "Keir Fraser" <keir@xensource.com> w= rote:

> On 10/8/07 18:00, "Stefan= Berger" <stefanb@us.ibm.com> wrote:

> (XEN) map_pages_to_xen : 3533 =             &nbs= p;            &n= bsp;          
> (that's the line number)
> (XEN) 0xfff9b000 was NOT present.
>
> Something between (*) and here seems to trash this presence flag.
> paging_init() and many others lie in between the upper call and this > one here. Could be a side effect of this? Maybe that tlb flush at
> the right place in one of these functions would solve the problem? >
> Yes, this now looks likely and that’s rather scary. We’ll = go after
> this next week.

> ______________________________= _________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.= com/xen-devel


--B_3270817224_673767-- --===============1682560337== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1682560337==--