|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: confusion about monitor table in shadow mode
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
|
|
|
|
|