From: "Wu Bingzheng" Subject: where is hypercall page initialized? Date: Mon, 29 Dec 2008 11:11:45 +0800 (CST) Message-ID: <30715248.145161230520305080.JavaMail.coremail@bj163app34.163.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0699240285==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0699240285== Content-Type: multipart/alternative; boundary="----=_Part_39598_2006658.1230520305078" ------=_Part_39598_2006658.1230520305078 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit Hi men, I am trying to find the course of creating a DomU, beginning from 'xm create'. But Xm and Xend are too complex for me too follow exactly, I am blocked 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 one? * 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 each DomU? In this case, I found that : ======= tools/libxc/xc_dom_core.c, line 558: dom->parms.virt_hypercall = UNSET_ADDR; // -1 ------------ tools/libxc/xc_dom_boot.c, line 32: if ( dom->parms.virt_hypercall == -1 ) return 0; /* The following will initilize the hypercall-page by HYPERVISOR_domctl_op. */ ======= So I think this case must not used now. Am I right? Thanks, Wu ------=_Part_39598_2006658.1230520305078 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: quoted-printable
Hi men,

I am trying to find the course of creating a DomU, begi= nning from 'xm create'.
But Xm and Xend are too complex for me too follo= w exactly,  I am blocked
at the question: where is the hypercall-p= age initialized.

At Xen 3.3.0, do the DomUs share a same hypercall-p= age, or each DomU owns one?

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

* If the later ca= se is right, where is the hypercall-page initilized for each DomU?
In th= is case, I found that :
=3D=3D=3D=3D=3D=3D=3D
tools/libxc/xc_dom_core= c, 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_d= omctl_op. */
=3D=3D=3D=3D=3D=3D=3D
So I think this case must not used= now. Am I right?

Thanks,
Wu


=20
[=B9=E3=B8=E6] 2008=C4=EA=D7=EE=CA=DC=B9=D8=D7= =A2=C2=A5=C5=CC
------=_Part_39598_2006658.1230520305078-- --===============0699240285== 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 --===============0699240285==--