reserved bit in ShadowPT
Hi,
Dose Shadow Page Table use reserved-bit (PFEC_reserved_bit) in Xen 3.3.0?
In my test many page fault set reserved-bit. But I can't understand its function, after reading SPT's page-fault handler.
Thanks,
Wu
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · Wu Bingzheng
Hi,
Dose Shadow Page Table use reserved-bit (
PFEC_reserved_bit) in Xen 3.3.0?
Yes. It uses reserved bits in ptes to indicate entries that are known to be either emulated-MMIO or not-present in the guest pagetables. Then in the fault handler it can use PFEC_reserved_bit to branch onto a fast path for those cases without taking any locks or walking the guest pagetables.
Quoted 1 line
In my test many page fault set reserved-bit. But I can't understand its function, after reading SPT's page-fault handler.
Have a look at the definition of SH_L1E_MAGIC in arch/x86/mm/shadow/types.h
Cheers,
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]
Thanks very much!
Quoted 11 lines · 在2009-09-01,"Tim Deegan" <[email protected]> 写道:
Quoted 3 lines · Wu Bingzheng
Hi,
Dose Shadow Page Table use reserved-bit (
PFEC_reserved_bit) in Xen 3.3.0?Yes. It uses reserved bits in ptes to indicate entries that are known to be either emulated-MMIO or not-present in the guest pagetables. Then in the fault handler it can use
PFEC_reserved_bitto branch onto a fast path for those cases without taking any locks or walking the guest pagetables.
Quoted 18 lines
Quoted 1 line
In my test many page fault set reserved-bit. But I can't understand its function, after reading SPT's page-fault handler.
Have a look at the definition of
SH_L1E_MAGICinarch/x86/mm/shadow/types.hCheers,
Tim.
Signature · 8 lines
Tim Deegan <[email protected]> Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.] _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel