From: "pradeep singh rautela" Subject: Re: supervisor_mode_kernel and hypercall Date: Mon, 20 Oct 2008 15:50:03 +0530 Message-ID: <6bc632150810200320n42fe75cdr8a7845c8a0566d58@mail.gmail.com> References: <13a1c1400810200314h59707fd3r180aad12270babb1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <13a1c1400810200314h59707fd3r180aad12270babb1@mail.gmail.com> Content-Disposition: inline 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 Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Oct 20, 2008 at 3:44 PM, 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_kernel. > my question is, does supervisor_mode_kernel mean that the guest kernel is > also running in ring0, the same privilege level as Xen hypervisor? Yes but in non-root mode. This is possible because some new hardware extensions added to x86 archtiture by Intel/AMD to facilitate virtualization. > 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? If the new method of hypercall invocation is not supported by the CPU. I think this should be similar to the way int 0x80 and SYSENTER/SYSEXIT are differentiated in linux kernel. HTH, Thanks, --Pradeep > > Thanks. > > -Yanjun > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > -- Pradeep Singh Rautela http://eagain.wordpress.com http://emptydomain.googlepages.com