From: Keir Fraser Subject: Re: supervisor_mode_kernel and hypercall Date: Mon, 20 Oct 2008 11:24:41 +0100 Message-ID: References: <13a1c1400810200314h59707fd3r180aad12270babb1@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0935130285==" Return-path: In-Reply-To: <13a1c1400810200314h59707fd3r180aad12270babb1@mail.gmail.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: Yanjun Wu , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0935130285== Content-type: multipart/alternative; boundary="B_3307346691_14552536" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3307346691_14552536 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable On 20/10/08 11:14, "Yanjun Wu" wrote: > In xen/arch/x86/x86_32/traps.c, if supervisor_mode_kernel is true, the > hypercall_page will be initialized by hypercall_page_initialise_ring0_ker= nel. > my question is, does supervisor_mode_kernel mean that the guest kernel is= also > running in ring0, the same privilege level as Xen hypervisor? >=20 > The book "the definitive guide to the xen hypervisor" (in page 30) says > hypercall through int82 is now deprecated, and replaced by hypercall_page= . > but int82 can still be found in hypercall_page_initialise_ring1_kernel. I= n > what situation it will be used? Yes, supervisor_mode_kernel means that the dom0 kernel runs in ring 0. It also means that other guests cannot be run. It=B9s not really very useful these days. To your other question: guests are supposed to call into the hypervisor via the hypercall page, but actually the underlying mechanism is still int 0x82 for 32-bit PV guests. It=B9s just hidden in the hypervisor-provided hypercall page now. -- Keir --B_3307346691_14552536 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] supervisor_mode_kernel and hypercall On 20= /10/08 11:14, "Yanjun Wu" <yanjun.wu@gmail.com> wrote:

In xen/arch/x86/x86_32/traps.c, if supervisor_mode_kern= el is true, the hypercall_page will be initialized by hypercall_page_initial= ise_ring0_kernel.
my question is, does supervisor_mode_kernel mean that the guest kernel is a= lso running in ring0, the same privilege level as Xen hypervisor?

The book "the definitive guide to the xen hypervisor" (in page 30= ) says hypercall through int82 is now deprecated, and replaced by hypercall_= page.
but int82 can still be found in hypercall_page_initialise_ring1_kernel. In = what situation it will be used?

Yes, supervisor_mode_kernel means that the dom0 kernel runs in ring 0. It a= lso means that other guests cannot be run. It’s not really very useful= these days.

To your other question: guests are supposed to call into the hypervisor via= the hypercall page, but actually the underlying mechanism is still int 0x82= for 32-bit PV guests. It’s just hidden in the hypervisor-provided hyp= ercall page now.

 -- Keir
--B_3307346691_14552536-- --===============0935130285== 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 --===============0935130285==--