x86/xen: Warn when there's no mfn for pfn
Subsystems (2)
PATCH 1/1 x86/xen: Warn when there's no mfn for pfn
I recently had to debug dom0 taking a fatal page fault and it would have been useful if it warned when creating a non-present pte if there's no mfn for a pfn.
--- arch/x86/xen/mmu.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/xen/mmu.c +1 -0
@@ -397,6 +397,7 @@ static pteval_t pte_pfn_to_mfn(pteval_t val)* pte_mfn_to_pfn is asymmetric. */ if (unlikely (mfn ==INVALID_P2M_ENTRY )) { +printk (KERN_WARNING "No mfn for pfn %lx, creating non-present pte\n" , pfn); mfn =0 ; flags =0 ; }else
Signature · 1 line
2.1.0
Quoted 3 lines · Ross Lagerwall
I recently had to debug dom0 taking a fatal page fault and it would have been useful if it warned when creating a non-present pte if there's no mfn for a pfn.
This will trigger for ever PTE covering memory hotplugged by the balloon driver, so I don't think we can take this.
David
Quoted 11 lines
arch/x86/xen/mmu.c +1
-0@@ -397,6 +397,7 @@ static pteval_t pte_pfn_to_mfn(pteval_t val)* pte_mfn_to_pfn is asymmetric. */ if (unlikely (mfn ==INVALID_P2M_ENTRY )) { +printk (KERN_WARNING "No mfn for pfn %lx, creating non-present pte\n" , pfn); mfn =0 ; flags =0 ; }else
Quoted 8 lines · David Vrabel
Quoted 3 lines · Ross Lagerwall
I recently had to debug dom0 taking a fatal page fault and it would have been useful if it warned when creating a non-present pte if there's no mfn for a pfn.
This will trigger for ever PTE covering memory hotplugged by the balloon driver, so I don't think we can take this.
That's unfortunate, I thought there may be some issue where it would be triggered spuriously.
Signature · 1 line
Ross Lagerwall