From: Wu Bingzheng Subject: Re: =?gb2312?Q?=B4=F0=B8=B4=3A?= Why using hypercall_page ? Date: Thu, 23 Oct 2008 09:46:26 +0800 Message-ID: <1224726386.6141.8.camel@wub> References: 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: Li Yaqiong Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I think that's the reason too.=20 Thank you very much. Wu =E5=9C=A8 2008-10-23=E5=9B=9B=E7=9A=84 09:31 +0800=EF=BC=8CLi Yaqiong=E5=86= =99=E9=81=93=EF=BC=9A > As you know, the old Intel/AMD x86 cpus use INT to invoke kernel's > service. But the newer CPUs introduce two instruction pairs: > syscall/sysret, syscenter/sysexit. So, because the hypercall page is > filled by Xen, it can hide the difference of this two types. Guest OS > only take one uniform format to invoke a hypercall. > I gusee this is the reason. >=20 > -Techie >=20 > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] =E4=BB=A3=E8=A1=A8 Wu Bi= ngzheng > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2008=E5=B9=B410=E6=9C=8823=E6=97=A5= 9:18 > =E6=94=B6=E4=BB=B6=E4=BA=BA: xen-devel@lists.xensource.com > =E4=B8=BB=E9=A2=98: [Xen-devel] Why using hypercall_page ? >=20 > Hello, >=20 > 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 ): >=20 > mov $i, %eax > int $0x82 > ret >=20 > Why not invoked the hypercall directly by "int $0x82" ? What's the > advantage of using hypercall_page? >=20 > Thanks, > Wu >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >=20 >=20