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] PV-on-HVM for IPF (take 3)

To: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Subject: Re: [Xen-ia64-devel] PV-on-HVM for IPF (take 3)
From: Doi.Tsunehisa@xxxxxxxxxxxxxx
Date: Wed, 30 Aug 2006 13:42:11 +0900
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 29 Aug 2006 21:42:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: Your message of Tue, 29 Aug 2006 15:55:03 +0200. <200608291555.03897.Tristan.Gingold@xxxxxxxx>
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: <44F42A17.3060005@xxxxxxxxxxxxxx><200608291555.03897.Tristan.Gingold@xxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Tristan,

  Thank you for your comment.

You (Tristan.Gingold) said:
> I have a question about this modification:
> void vcpu_flush_vtlb_all(struct vcpu *v)
>  {
> -       /* First VCPU tlb.  */
> -       vcpu_purge_tr_entry(&PSCBX(v,dtlb));
> -       vcpu_purge_tr_entry(&PSCBX(v,itlb));
> -
> -       /* Then VHPT.  */
> -       vhpt_flush ();
> -
> -       /* Then mTLB.  */
> -       local_flush_tlb_all ();
> +       if (VMX_DOMAIN(v)) {
> +               /* Purge vTLB for VT-i domain */
> +               thash_purge_all(v);
> +       }
> +       else {
> +               /* First VCPU tlb.  */
> +               vcpu_purge_tr_entry(&PSCBX(v,dtlb));
> +               vcpu_purge_tr_entry(&PSCBX(v,itlb));
> +
> +               /* Then VHPT.  */
> +               vhpt_flush ();
> +
> +               /* Then mTLB.  */
> +               local_flush_tlb_all ();
> +       }
> 
> I don't really confortable with this modification.  I suppose you have to
>  made it because of guest_physmap_remove_page.

  Yes, I modified it because of guest_physmap_remove_page.

> You should add least add a comment because it is unusable to see
> VMX_DOMAIN() within paravirtualization area.

  OK. I'll append comment to descibe more detail reason.

Thanks,
- Tsunehisa Doi

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

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