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-users

Re: [Xen-users] Converting a HVM Guest into a PV-on-HVM Guest

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Converting a HVM Guest into a PV-on-HVM Guest
From: Srujan Kotikela <ksrujandas@xxxxxxxxx>
Date: Mon, 20 Jun 2011 21:23:09 -0500
Delivery-date: Mon, 20 Jun 2011 19:24:33 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=8da3mPhgCFcb4XiXovKf9baEn0+2XSQK63Y4OuZfxys=; b=dJFWGIt6a5LE0hgh4o0mqelPgLqoHc4VlkZuzfH8D8fVH3hcuApMV7+5F1w8d/o9ga klxxQ/M/GYLsVLTihmNJVjHDWXE/eXfAqNbJ0+u28JAj889rvchd9c3fmQu+5Mz4eWcb UIyM6ArnlvOgayCqoS3shVn3ASIszUXxBhQsI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=CGB07hZORQKE+b1AqtQ643aTQC4ErfN04PquOk8ZqUlbyITMVVscRd1oUS4k1QUcgF kxOdjOLnp4nMFopqdePt/4bv9pTXzfoHz6UZU8xvnC5eoJt6+XRkWXgqxQWSDbmHYDoh 4JM/EmWSM6Immif+lrZG0lmXG2cQZ8JD8qmu8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTinp7wFkEvHEJ1jxUVbhz=wY+iEP_w@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <BANLkTim0Xo6pvuy41Ut1WSPgq48cr8qiUw@xxxxxxxxxxxxxx> <BANLkTi=j2h1F3C_60YOgNEt1YDRZyQB_Lw@xxxxxxxxxxxxxx> <BANLkTim6dqCSTDC6FsCvC-vv1WqWyGhUSg@xxxxxxxxxxxxxx> <BANLkTimjVNCAmM_i+m4ir80gz6gmX6i6rA@xxxxxxxxxxxxxx> <BANLkTinp7wFkEvHEJ1jxUVbhz=wY+iEP_w@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
forgot to cc, earlier.


On Mon, Jun 20, 2011 at 9:22 PM, Srujan Kotikela <ksrujandas@xxxxxxxxx> wrote:
Hi Todd,

Thanks for the reply.

I am trying to invoke a hypercall from the HVM guest. The only way I did hypercalls from DomU till now (on PV guests) is use the libxc library do_xen_hypercall (which in turn uses do_privcmd which in turn uses ioctl). 

Now I have a added a custom hypercall to xen and I am trying to invoke it from HVM guest. As the HVM guest is not xenified (-linux) it doesn't have the privcmd interface (/proc/xen/privcmd). So I am looking for a way to invoke the custom hypercall from HVM. While in this try, I found that pv-on-hvm will enable hypercalls from HVM guest. However I also read that it may not allow all the hypercalls (correct me if I am wrong). 

While looking at the other posts I found this, http://xen.1045712.n5.nabble.com/hypercalls-from-HVM-guest-on-XEN-3-4-3-td4454566.html which recommends to look into tools/firmware/hvmloader. There is some code in hypercall.h in the hvmloader directory (http://rswiki.csie.org/lxr/http/source/tools/firmware/hvmloader/hypercall.h?v=xen-4.0.0;a=ppc). I am figuring out how to make use of this. Will update once I figure it out.

Sorry for not being unclear, earlier.

--
Srujan D. Kotikela



On Mon, Jun 20, 2011 at 8:54 PM, Todd Deshane <todd.deshane@xxxxxxx> wrote:
On Mon, Jun 20, 2011 at 2:44 PM, Srujan Kotikela <ksrujandas@xxxxxxxxx> wrote:
> Just to make sure,
>
> PV-on-HVM drivers are neccessary and/or sufficient to make hypercalls from a
> HVM domain, right?
>

I'm not sure.

A quick search indicates that there is some HVM hypercall code:

http://xen.markmail.org/search/?q=hvm+hypercall
http://xen.markmail.org/search/?q=hypercall_hvm_op#query:hypercall_hvm_op+page:1+mid:bozac75eaw4jrgof+state:results
http://lxr.xensource.com/lxr/source/xen/arch/x86/hvm/hvm.c

I don't know the details. You may considering taking a look at:
http://wiki.xensource.com/xenwiki/AskingXenDevelQuestions

Thanks,
Todd


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