From: "Wu Bingzheng" Subject: Re:RE: where is hypercall page initialized? Date: Wed, 31 Dec 2008 11:08:39 +0800 (CST) Message-ID: <14894939.134421230692919341.JavaMail.coremail@bj163app26.163.com> References: <0A882F4D99BBF6449D58E61AAFD7EDD603BB4A30@pdsmsx502.ccr.corp.intel.com> <30715248.145161230520305080.JavaMail.coremail@bj163app34.163.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0316307018==" Return-path: In-Reply-To: <0A882F4D99BBF6449D58E61AAFD7EDD603BB4A30@pdsmsx502.ccr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tian Kevin Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0316307018== Content-Type: multipart/alternative; boundary="----=_Part_36499_20263073.1230692919338" ------=_Part_36499_20263073.1230692919338 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: quoted-printable Thanks very much.=20 I found the hypercall_page_initialise before but didnot found where it was = called. I have found that yesterday. Thanks all the same! Regards, Wu =D4=DA2008-12-31=A3=AC"Tian, Kevin" =D0=B4=B5=C0=A3= =BA every domain has its own hypercall page. See hypercall_page_initialise in X= en. For PV domain, it's control panel to issue hypercall XEN_DOMCTL_hyperca= ll_init for domain. For HVM domain, it's platform-pci driver to wrmsr with = special index to trigger this action. =20 Thanks, Kevin From:xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.= xensource.com] On Behalf Of Wu Bingzheng Sent: Monday, December 29, 2008 11:12 AM To:xen-devel@lists.xensource.com Subject: [Xen-devel] where is hypercall page initialized? Hi men, I am trying to find the course of creating a DomU, beginning from 'xm creat= e'. But Xm and Xend are too complex for me too follow exactly, I am blocked=20 at the question: where is the hypercall-page initialized. At Xen 3.3.0, do the DomUs share a same hypercall-page, or each DomU owns o= ne? * If the former case is right, where is the hypercall-page mapped to DomU's= address space? * If the later case is right, where is the hypercall-page initilized for ea= ch DomU? In this case, I found that : =3D=3D=3D=3D=3D=3D=3D tools/libxc/xc_dom_corec, line 558: dom->parms.virt_hypercall =3D UNSET_ADDR; // -1 ------------ tools/libxc/xc_dom_boot.c, line 32: if ( dom->parms.virt_hypercall =3D=3D -1 ) return 0; /* The following will initilize the hypercall-page by HYPERVISOR_domctl_o= p. */ =3D=3D=3D=3D=3D=3D=3D So I think this case must not used now. Am I right? Thanks, Wu [=B9=E3=B8=E6] 2008=C4=EA=D7=EE=CA=DC=B9=D8=D7=A2=C2=A5=C5=CC ------=_Part_36499_20263073.1230692919338 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: quoted-printable
Thanks very much.

I found the hypercall_page_initialise before = but didnot found where it was called.

I have found that yesterday. T= hanks all the same!

Regards,
Wu

= =D4=DA2008-12-31=A3=AC"Tian, Kevin" <kevin.tian@intel.com> =D0=B4=B5= =C0=A3=BA
every domain has its own hypercal= l page. See=20 hypercall_page_initialise in Xen. For PV domain, it's control panel to issu= e=20 hypercall XEN_DOMCTL_hypercall_init for domain. For HVM domain, it's=20 platform-pci driver to wrmsr with special index to trigger this=20 action.
 
Thanks,
Kevin


From: xen-devel-bounces@lists.xensource.com=20 [mailto:xen-deve= l-bounces@lists.xensource.com] On Behalf Of Wu=20 Bingzheng
Sent: Monday, December 29, 2008 11:12 AM
To:=20 xen-devel@lists.xensourc= e.com
Subject: [Xen-devel] where is=20 hypercall page initialized?

Hi men,

I am trying to find the course of creating a DomU,=20 beginning from 'xm create'.
But Xm and Xend are too complex for me too= =20 follow exactly,  I am blocked
at the question: where is the=20 hypercall-page initialized.

At Xen 3.3.0, do the DomUs share a sam= e=20 hypercall-page, or each DomU owns one?

* If the former case is rig= ht,=20 where is the hypercall-page mapped to DomU's address space?

* If t= he=20 later case is right, where is the hypercall-page initilized for each=20 DomU?
In this case, I found that :
=3D=3D=3D=3D=3D=3D=3D
tools/l= ibxc/xc_dom_corec,=20 line 558:
  dom->parms.virt_hypercall =3D UNSET_ADDR;  //= =20 -1
------------
tools/libxc/xc_dom_boot.c, line 32:
  if (= =20 dom->parms.virt_hypercall =3D=3D -1 )
    return 0;<= br> =20 /* The following will initilize the hypercall-page by HYPERVISOR_domctl_o= p.=20 */
=3D=3D=3D=3D=3D=3D=3D
So I think this case must not used now. Am= I=20 right?

Thanks,
Wu



[=B9=E3=B8=E6] 2008=C4=EA=D7=EE= =CA=DC=B9=D8=D7=A2=C2=A5=C5=CC
=20



=CD=F8=D2=D7=C3=E2=B7=D1=D3=CA=A3=AC=C8=AB= =C7=F2=D7=EE=B4=F3=B5=C4=D6=D0=CE=C4=C3=E2=B7=D1=D3=CA=CF=E4
------=_Part_36499_20263073.1230692919338-- --===============0316307018== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0316307018==--