WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Question about PV kernel ring

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: RE: [Xen-devel] Question about PV kernel ring
From: "Liu, Jinsong" <jinsong.liu@xxxxxxxxx>
Date: Tue, 31 May 2011 17:21:32 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Keir Fraser <keir.xen@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Li, Xin" <xin.li@xxxxxxxxx>
Delivery-date: Tue, 31 May 2011 14:25:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1306832998.775.138.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <BC00F5384FCFC9499AF06F92E8B78A9E208F93528A@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1306832998.775.138.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acwfcot9RKjRqochSMyYSivmiiwv6AAAWDSw
Thread-topic: [Xen-devel] Question about PV kernel ring
Ian Campbell wrote:
> On Mon, 2011-05-30 at 18:23 +0100, Liu, Jinsong wrote:
>> Keir,
>> 
>> I have a question about pv kernel ring arrangement:
>> 
>> arch/x86/x86_32/traps.c
>> void hypercall_page_initialise(struct domain *d, void
>>     *hypercall_page) { memset(hypercall_page, 0xCC, PAGE_SIZE);
>>     if ( is_hvm_domain(d) )
>>         hvm_hypercall_page_initialise(d, hypercall_page);
>>     else if ( supervisor_mode_kernel )
>>         hypercall_page_initialise_ring0_kernel(hypercall_page);    
>>         else hypercall_page_initialise_ring1_kernel(hypercall_page);
>> } 
>> 
>> arch/x86/x86_64/traps.c
>> void hypercall_page_initialise(struct domain *d, void
>>     *hypercall_page) { memset(hypercall_page, 0xCC, PAGE_SIZE);
>>     if ( is_hvm_domain(d) )
>>         hvm_hypercall_page_initialise(d, hypercall_page);
>>     else if ( !is_pv_32bit_domain(d) )
>>         hypercall_page_initialise_ring3_kernel(hypercall_page);    
>>         else hypercall_page_initialise_ring1_kernel(hypercall_page);
>> } 
>> 
>> My question:
>> 1. for x86_32 hypervisor, what's the purpose and
>> advantage/disadvantage of supervisor_mode_kernel pv which runs at
>> ring0?  
> 
> supervisor_mode_kernel was a proof of concept project about 5 years
> ago to run a Xen PV kernel on a thin "hypervisor" shim. It provides no
> actual virtualisation features (i.e. multiple domains) and there is no
> protection between the kernel and the hypervisor shim. It was mostly a
> stunt to see what the minimum amount of scaffolding to support a PV
> kernel might be, it was kind of the skanky opposite approach to pvops
> I guess. IOW the disadvantages far outweigh the advantages.
> 
>> 2. for x86_64 hypervisor, why no supervisor_mode_kernel pv? seems pv
>> can also do so ... 
> 
> I don't recall if supervisor_mode_kernel ever worked for 64 (and has
> since bit-rotted and be removed) or if it was never written for 64 bit
> in the first place. Either way it doesn't exist now and there would be
> very little point in writing it.
> 
> Ian.

I see, thanks Ian!
We just meet a little issue need confirm pv kernel ring ... :)

Jinsong
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>