[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-ia64-devel] Question: Special linux dom0 handling in vcpu_translate()


  • To: tgingold@xxxxxxx
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 25 Jun 2007 10:29:06 +0200
  • Cc: Xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 25 Jun 2007 01:26:49 -0700
  • Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; b=pqKKHTAWZkI1GJG+xpM6DlqTVM25SkXxP0mGWwNGdc77P3HZ+YxBntjZsC/NbSkEQc59gd5zP1Ndc2OgM1AKMrWiv4mS4J3E0KHmX55l+0Tlo9E6unQE8W5LXFsinD+E;
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>

Am Donnerstag, 21. Juni 2007 schrieb tgingold@xxxxxxx:
> Quoting Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>:
> > Hi,
> >
> > in vcpu_translate I found some lines of code which seems to be an
> > optimization
> > for the linux dom0:
>
> ...
>
> > I found this, because mini-os uses the same scheme. Now the hypervisor
> > does the itc for mini-os with a linux kernel identity mapped pte!
> > In general this may leads to problems if other systems with similar
> > region scheme are running on xen.
> > In particular I have here the problem that using protection keys for such
> > addresses is impossible!
> > Is it possible to do this optimization for the linux kernel another way?
>
> I think this special linux optimization should be enabled by the OS. We
> should add an hypercall (or a SAL call) for this.
>
> Tristan.

The question  is, should I add an optimization call specific to linux or 
specific to single optimization features.
Are there any other implicit optimisations for linux in the hypervisor?

I would add an hypercall. This can be called in setup_arch() after 
setup_xen_features().
 The struct arch_domain has to be extended with an optimisation flag.
What is your opinion?

Dietmar.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.