From: Wu Bingzheng Subject: RE: Why using hypercall_page ? Date: Thu, 23 Oct 2008 09:44:41 +0800 Message-ID: <1224726281.6141.6.camel@wub> References: <1224724677.5628.9.camel@wub> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: 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 To invoke hypercall: 1. Not using hypercall_page: mov $__HYPERCALL_sched_op, %eax int $0x82 2. Using hypercall_page: call hypercall_page + __HYPERCALL_sched_op * 32 Besides, using the hypercall_page, guest has to keep a page for hypercall= _page. I do not think the hypercall_page makes the thing much easier. Is "release guest from hardcoding" the only advantage of using hypercall_= page? Thanks, Wu =E5=9C=A8 2008-10-23=E5=9B=9B=E7=9A=84 09:24 +0800=EF=BC=8CTian, Kevin=E5= =86=99=E9=81=93=EF=BC=9A > >From: Wu Bingzheng > >Sent: Thursday, October 23, 2008 9:18 AM > > > >Hello, > > > >I am studing Xen hypercall now. I found that hypercall is invoked via > >hypercall_page, which is only filled with (in > >no-hypervisor-kernel-mode ): > > > >mov $i, %eax > >int $0x82 > >ret > > > >Why not invoked the hypercall directly by "int $0x82" ? What's the > >advantage of using hypercall_page? > > >=20 > This allows guest migrated to a newer/older xen with a different > hypercall invocation convention. Xen fills hypercall page by its > convention, and thus release guest from hardcoding specific flow. >=20 > Thanks > Kevin