Skip to content

Instantly share code, notes, and snippets.

[ 1374.207509] xen_add_phys_to_mach_entry: cannot add pfn=0x00067e16 -> mfn=0x00045f49: pfn=0x00067e1e -> mfn=0x00045f49 already exists
[ 1374.248234] xen_add_phys_to_mach_entry: cannot add pfn=0x00067e8d -> mfn=0x00045f49: pfn=0x00067e99 -> mfn=0x00045f49 already exists
[ 1374.282505] xen_add_phys_to_mach_entry: cannot add pfn=0x00067e17 -> mfn=0x00045f41: pfn=0x00067e29 -> mfn=0x00045f41 already exists
[ 1374.285995] xen_add_phys_to_mach_entry: cannot add pfn=0x00067e1e -> mfn=0x00045f40: pfn=0x00067e10 -> mfn=0x00045f40 already exists
diff --git a/arch/arm/xen/p2m.c b/arch/arm/xen/p2m.c
index 97baf44..38291f6 100644
--- a/arch/arm/xen/p2m.c
+++ b/arch/arm/xen/p2m.c
@@ -41,10 +41,16 @@ static int xen_add_phys_to_mach_entry(struct xen_p2m_entry *new)
parent = *link;
entry = rb_entry(parent, struct xen_p2m_entry, rbnode_phys);
- if (new->mfn == entry->mfn)
- goto err_out;
203.417037] xen_add_phys_to_mach_entry: cannot add pfn=0x00067a8c -> mfn=0x00058a24: pfn=0x00067a98 -> mfn=0x00058a24 already exists
[ 203.417111] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.16.0-rc3-00006-g16874b2-dirty #13
[ 203.417173] [<c021668c>] (unwind_backtrace) from [<c0212230>] (show_stack+0x10/0x14)
[ 203.417219] [<c0212230>] (show_stack) from [<c07e56e8>] (dump_stack+0x8c/0x9c)
[ 203.417263] [<c07e56e8>] (dump_stack) from [<c020edb8>] (__set_phys_to_machine_multi+0x208/0x274)
[ 203.417305] [<c020edb8>] (__set_phys_to_machine_multi) from [<c020ee8c>] (set_foreign_p2m_mapping+0x60/0x78)
[ 203.417356] [<c020ee8c>] (set_foreign_p2m_mapping) from [<c05e4058>] (xenvif_tx_action+0x204/0x5d8)
[ 203.417401] [<c05e4058>] (xenvif_tx_action) from [<c05e68b8>] (xenvif_poll+0x28/0x5c)
[ 203.417440] [<c05e68b8>] (xenvif_poll) from [<c0731270>] (net_rx_action+0x110/0x188)
[ 203.417480] [<c0731270>] (net_rx_action) from [<c024a3b8>] (__do_softirq+0x124/0x234)
[ 1011.517357] xen_add_mach_to_phys_entry: cannot add pfn=0x00068d08 -> mfn=0x00058a91: pfn=0x00068d0d -> mfn=0x00058a91 already exists
[ 1011.596033] xen_add_mach_to_phys_entry: cannot add pfn=0x00068daf -> mfn=0x00058a94: pfn=0x00068d0c -> mfn=0x00058a94 already exists
[ 1011.599436] xen_add_mach_to_phys_entry: cannot add pfn=0x00068ab7 -> mfn=0x00058a93: pfn=0x00068aba -> mfn=0x00058a93 already exists
@mguentner
mguentner / .config
Created July 1, 2014 14:50
Linux mainline config for Xen
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.16.0-rc3 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_NO_IOPORT_MAP=y
@mguentner
mguentner / gist:e6e9f1d3d8a1e64430ef
Created July 1, 2014 11:52
Cubieboard kernel Panic Xen
[ 260.945975] Unable to handle kernel paging request at virtual address b771f000
[ 260.946047] pgd = c0204000
[ 260.946064] [b771f000] *pgd=00000000
[ 260.946092] Internal error: Oops: 2805 [#1] SMP ARM
[ 260.946119] Modules linked in:
[ 260.946145] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.15.0-130963-ga076583 #7
[ 260.946174] task: c0b57658 ti: c0b4c000 task.ti: c0b4c000
[ 260.946206] PC is at v7_dma_inv_range+0x34/0x4c
[ 260.946233] LR is at __dma_page_dev_to_cpu+0x80/0x118
[ 260.946257] pc : [<c021b3e0>] lr : [<c02176bc>] psr: 40000193
@mguentner
mguentner / gist:bec5ff92e07e22c4473b
Created June 23, 2014 18:10
Xen Config for Arch Linux ARM DomU
kernel = "/kernels/zImage"
memory = 512
name = "Arch Linux ARM"
vcpus = 2
serial="pty"
disk = [ 'phy:/dev/VolGroup00/archarm-guest-1,xvda,w' ]
vif = ['bridge=xenbr0']
extra = 'console=hvc0 xencons=tty root=/dev/xvda'
@mguentner
mguentner / gist:764ca309722d1cdece70
Created June 23, 2014 16:12
Archlinux ARM + Xen Boot
U-Boot 2014.04-01530-g0146847 (Jun 18 2014 - 16:44:51) Allwinner Technology
CPU: Allwinner A20 (SUN7I)
Board: Cubieboard2
I2C: ready
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
In: serial
@mguentner
mguentner / boot.cmd
Created June 23, 2014 15:27
Uboot config for Xen with Arch Linux ARM as Dom0
# SUNXI Xen Boot Script
# Arch Linux ARM adaption of the cmd file which can be found at http://openmirage.org/wiki/xen-on-cubieboard2
# Addresses suitable for 1GB system, adjust as appropriate for a 2GB system.
# Top of RAM: 0x80000000
# Xen relocate addr 0x7fe00000
setenv kernel_addr_r 0x7f600000 # 8M
setenv ramdisk_addr_r 0x7ee00000 # 8M
setenv fdt_addr 0x7ec00000 # 2M
setenv xen_addr_r 0x7ea00000 # 2M
@mguentner
mguentner / .config
Created June 23, 2014 15:08
Cubieboard 2 Xen Config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.15.0 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_NO_IOPORT_MAP=y