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

[Xen-devel] Re: confusion about monitor table in shadow mode

To: Li Yaqiong <liyaq04@xxxxxxxxxx>
Subject: [Xen-devel] Re: confusion about monitor table in shadow mode
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Thu, 15 Jan 2009 10:09:35 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 15 Jan 2009 02:10:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1711104D07124007BB56F0FD798D6C50@xxxxxxxxxxxxx>
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: <20090112124730.GE22263@xxxxxxxxxxxxxxxxxxxxx> <1711104D07124007BB56F0FD798D6C50@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17 (2007-11-01)
At 11:32 +0800 on 15 Jan (1232019134), Li Yaqiong wrote:
>       #if SHADOW_PAGING_LEVELS == GUEST_PAGING_LEVELS
>       mfn_t
>       sh_make_monitor_table(struct vcpu *v)
>       {
>       .......
>       }

...

> If a 32-bit hvm is created, its GUEST_PAGING_LEVELS should be 2. In this
> case, SHADOW_PAGING_LEVELS will be 3 and sh_make_monitor_table will not
> be compiled.

Guests with GUEST_PAGING_LEVELS == 2 will us the three-level version,
because their SHADOW_PAGING_LEVELS will be 3.  See the comment in
shadow/types.h where the renaming is defined:

/* sh_make_monitor_table depends only on the number of shadow levels */
#define sh_make_monitor_table \
        SHADOW_INTERNAL_NAME(sh_make_monitor_table,
        SHADOW_PAGING_LEVELS)
#define sh_destroy_monitor_table \
        SHADOW_INTERNAL_NAME(sh_destroy_monitor_table,
        SHADOW_PAGING_LEVELS)

Cheers,

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]

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

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