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

Re: [Xen-ia64-devel] [RFC][PATCH] support special domU optimisation's in the hypervisor


  • To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
  • 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;
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>

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


 


Rackspace

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