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-ia64-devel

Re: [Xen-ia64-devel] [RFC][PATCH 2/3] xen&domain gdb debugger

To: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [RFC][PATCH 2/3] xen&domain gdb debugger
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Tue, 22 Jan 2008 11:36:13 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 21 Jan 2008 18:36:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <7kr6gb1ia7.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <7kr6gb1ia7.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
On Mon, Jan 21, 2008 at 09:21:04PM +0900, Kouya Shimura wrote:
Content-Description: message body text

> diff -r ff90abf572f2 -r dc1d6b4bae38 xen/arch/ia64/xen/mm.c
> --- a/xen/arch/ia64/xen/mm.c  Fri Jan 18 14:11:20 2008 -0700
> +++ b/xen/arch/ia64/xen/mm.c  Mon Jan 21 20:20:20 2008 +0900
> @@ -1403,6 +1403,13 @@ zap_domain_page_one(struct domain *d, un
>      if (pte_none(*pte))
>          return;
>  
> +#ifdef CONFIG_XEN_IA64_DEBUG_XEN
> +    if (d == dom0 && pte->pte & _PAGE_DEBUG_XEN) {
> +        old_pte = ptep_get_and_clear(mm, mpaddr, pte);
> +        return;
> +    }
> +#endif
> +
>      if (mfn == INVALID_MFN) {
>          // clear pte
>          old_pte = ptep_get_and_clear(mm, mpaddr, pte);

All the callers of domain_flush_and_put()(and domain_put_page())
needs similar hook for correctness.
(Or instead hook domain_flush_and_put() and domain_put_page())

Probably given that this functionality is for developpers, such a flaw
would be acceptable.

-- 
yamahata

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

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