On 27.08.2022 19:52, Dylanger Daly wrote:
> Thank you for your reply, Xen appears to crash immediately on startup and
> appears to hit the patch
Oh, yes, silly me - map_domain_page() can't be used that way. You
may want to give the replacement patch (below) a try, albeit later
replies of yours have hinted in a different direction now anyway.
Jan
--- sle15sp3.orig/xen/arch/x86/e820.c
+++ sle15sp3/xen/arch/x86/e820.c
@@ -700,3 +700,16 @@ unsigned long __init init_e820(const cha
return find_max_pfn();
}
+
+#include <xen/domain_page.h>//temp
+static int __init ryzen6000_init(void) {//temp
+ if(e820_all_mapped(0x7AF67000, 0x7AF68000, E820_NVS)) {
+ mfn_t mfn = _mfn(0x7AF67);
+ const uint32_t*p = vmap(&mfn, 1);
+ printk("0x7AF67000: %08x %08x %08x %08x\n", p[0], p[1], p[2], p[3]);
+ printk("0x7AF67010: %08x %08x %08x %08x\n", p[4], p[5], p[6], p[7]);
+ vunmap(p);
+ }
+ return 0;
+}
+__initcall(ryzen6000_init);