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] support special domU optimisation's in

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-ia64-devel] [RFC][PATCH] support special domU optimisation's in the hypervisor
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Jun 2007 14:41:20 +0200
Delivery-date: Wed, 27 Jun 2007 05:39:04 -0700
Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; b=axBHIFiKSo9wBRGtm1FANi+locDXlx6hdTWT2ycrUuADhL0yQLw7Vzz6jCR/zRrIrz6bLQ2J49obQkVRsbHiBppISZOPeffGphLTMDGJuCJNfeSj286vqigHDTqEMw2u;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200706271357.04065.dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
Am Mittwoch, 27. Juni 2007 schrieb Dietmar Hahn:

> The next step is the patch for dom0/domU linux to switch this feature on.

I thought of the following interface in linux:

include/asm-ia64/hypercall.h:

static inline int
HYPERVISOR_opt_feature(int cmd, void *arg)
{
        struct xencomm_handle *new_arg;
        new_arg = xencomm_create_inline(arg);
        return _hypercall2(int, opt_feature, cmd, new_arg);
}

A function with the following code to set the feature:

        struct ia64_opt_feature optf;
        optf.cmd = IA64_OPT_FEATURE_IDENTITY_MAPPING;
        optf.on = IA64_OPT_FEATURE_ON;
        optf.pgprot = pgprot_val(PAGE_KERNEL);
        HYPERVISOR_opt_feature(IA64_OPT_FEATURE_IDENTITY_MAPPING, &optf);

Thanks.

Dietmar



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