Skip to contentSkip to conversation

Handler m2p table and frametable fault in pagefault handler

PATCH Jan Beulich 2 participants 2 messages Jul 9, 2009 – Jul 10, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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