[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] linux-4.7.* under xen-4.6.* gives "unhandled page fault (ec=0000)" at boot. -- Root cause found.



Den 09. sep. 2016 20:16, skrev Todd A. Walter:
> Hi Hakon,
>
> Thanks very much for this patch; it's saved the few hairs I have left from 
> being torn out.  I don't know what platform you are on but mine is an HP 
> Z440; it's EFI is a little goofy.  Next problem, VGA console corruption!
>
> Best regards,
>
> Todd
If you  are talking about my hack on efi memory access, there is a
better, slightly more official patch. It takes care of all potential
uses, like so:
----------------------------------
 # cat /usr/src/xen-map-fix.patch
--- a/linux/include/linux/efi.h 2016-07-24 21:23:50.000000000 +0200
+++ b/linux/include/linux/efi.h 2016-09-08 00:08:04.748911068 +0200
@@ -1005,7 +1005,7 @@
 /* Iterate through an efi_memory_map */
 #define for_each_efi_memory_desc_in_map(m, md)                            \
        for ((md) = (m)->map;                                              \
-            ((void *)(md) + (m)->desc_size) <= (m)->map_end;              \
+            (md) && ((void *)(md) + (m)->desc_size) <= (m)->map_end;   \
             (md) = (void *)(md) + (m)->desc_size)
 
 /**


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
https://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.