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] [RESEND] support special guest optimis

To: Tristan Gingold <tgingold@xxxxxxx>
Subject: Re: [Xen-ia64-devel] [RFC][PATCH] [RESEND] support special guest optimisations in the hypervisor
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Jun 2007 08:40:29 +0200
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 28 Jun 2007 23:38:14 -0700
Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; b=fWyvfVmXbACW7ZB/Nza8O6RPCwz24yiHFi0U58iuzpj7p50Q5/h3nsDEF/SbiN/JFzZo0r42AmXrHQnajdPSZImni5eoED7DCkmcrYF+A9D1bbbqtqCKh3nEfwUu1pUZ;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070629014759.GA2498@saphi>
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: <200706271357.04065.dietmar.hahn@xxxxxxxxxxxxxxxxxxx> <200706281452.05877.dietmar.hahn@xxxxxxxxxxxxxxxxxxx> <20070629014759.GA2498@saphi>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
Am Freitag, 29. Juni 2007 schrieb Tristan Gingold:
> > attached to this mail are 2 patches:
> > - opt_feature_xen.patch
> >   implements the new hypercall  __HYPERVISOR_opt_feature in the
> > hypervisor. - opt_feature_linux.patch
> >   implements the usage of the hypercall.
>
> I think the hypercall interface is a little bit overkill but who knows
> about the future?
Which part do you mean with overkill?
For the function call I used the same scheme the other hypercalls use.
Or do you mean the structure?
What I wanted to do was a common solution. All the hypervisor needs to handle 
the identity mapping insertion are the access bit of the pte and (maybe in 
the future) the protection key.
Ok, I can remove the key, because there is currently no guest using this. And 
we can add it, when it will be necessary - should I resend the patch without 
the key?

>
> > The xen - patch has real effects in vcpu_translate() on inserting
> > identity mappings in the vhpt/tlb. I'am not sure about some performance
> > impacts. But without such a patch correct future protection key handling
> > is impossible.
I meant here needed is the possibility to disable the auto id mapping.

>
> I don't understand why.  Isn't PK 0 supposed to be always enabled ?
I thought of the possibility one guest may use PK!=0 for identity mapped 
pages. But you are right, currently there is no ia64-OS available using PK - 
so this is a bit overkill currently.

> (But I think it should be possible to disable the auto id mapping
> insertion).
Yes, FreeBSD uses the same scheme with identity mapping on region 7. Maybe a 
FreeBSD PV-port would lead to problems.
Many thanks for your comments!

Dietmar.

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