Handler m2p table and frametable fault in pagefault handler
Review
Quoted 11 lines
Quoted 1 line
Quoted 1 line
"Jiang, Yunhong" <[email protected]> 07/08/09 9:44 AM >>>
(quoted diff) +10
-0+int pagefault_by_memadd(unsigned long addr, struct cpu_user_regs *regs) +{ + if ( guest_mode(regs) ) + { + if ( ((addr >= RO_MPT_VIRT_START) && (addr < RO_MPT_VIRT_END)) ) + return 1; + } + else + { + if ( (addr >= RO_MPT_VIRT_START) && (addr < RDWR_MPT_VIRT_END) )
RDWR_...?
Jan
Yes, it should be RDWR.
--jyh
Quoted 14 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line
"Jiang, Yunhong" <[email protected]> 07/08/09 9:44 AM >>>
+int pagefault_by_memadd(unsigned long addr, struct
cpu_user_regs
*regs) +{ + if (guest_mode(regs))(quoted diff) +2
-0+ { + if ( ((addr >= RO_MPT_VIRT_START) && (addr <
RO_MPT_VIRT_END)) ) + return 1; + }(quoted diff) +3
-0+ else + { + if ( (addr >= RO_MPT_VIRT_START) && (addr <
RDWR_MPT_VIRT_END) )
RDWR_...?Jan