[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xen-users
Subject:    Re: [Xen-users] xl create and xl destroy error
From:       Milan Boberic <milanboberic94 () gmail ! com>
Date:       2018-09-12 14:53:04
Message-ID: CADJ6SV2tFdqqXJyJ7GYuEDnRj5RUXK4jCsb0=N5jji+QOdrV2g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Attachments.

On Wed, Sep 12, 2018 at 4:40 PM Milan Boberic <milanboberic94@gmail.com>
wrote:

> Hi everybody,
> I implemented Xen Hypervisor 4.9.2 on UltraZed-EG board with carrier card
> following these steps:
> 1.) installed petalinux on Ubuntu 16.04
> 2.) dowloaded  UltraZed-EG IO Carrier Card - PetaLinux 2018.2 Standard BSP
> 3.) created project:   petalinux-create -t project –s  <path_to_BSP>
> 4.) copied xen-overlay.dtsi from ZCU102 project (also made with BSP) to my
> project
> 5.) built xen hypervisor following this guide link
> <http://www.wiki.xilinx.com/Building%20Xen%20Hypervisor%20with%20Petalinux%202018.1>
>  (booting with SD card)
> 6.) made baremetal application that blinks PS LED with Vivado
> 7.) measured signals jitted when application is on board with and with
> out Xen
>
> I menaged to decrease jitter adding following in xen-overlay.dtsi file in
> xen-bootargs: sched=null vwfi=native.
>
> The problem is when I add sched=null vwfi=native I can create my
> bare-metal application with xl create and destroy it with xl destroy but
> when I want to start it again (xl create) this error pops:
>
> root@uz3eg-iocc-2018-2:~# xl create bm1.cfg
> Parsing config from bm1.cfg
> (XEN) IRQ 48 is already used by domain 1
> libxl: error: libxl_create.c:1278:domcreate_launch_dm: Domain 2:failed
> give domain access to irq 48: Device or resource busy
> libxl: error: libxl_domain.c:1003:libxl__destroy_domid: Domain
> 2:Non-existant domain
> libxl: error: libxl_domain.c:962:domain_destroy_callback: Domain 2:Unable
> to destroy guest
> libxl: error: libxl_domain.c:889:domain_destroy_cb: Domain 2:Destruction
> of domain failed
>
> When I remove  sched=null vwfi=native and build project again everything
> works fine, I can create and destroy bm app as many times as i want.
> Added in attachment bare-metal application's configuration file, xl dmesg,
> dmesg and xl -v create message.
> Thank you in adance, best regards, Milan Boberic.
>
>
>
>
>
>

[Attachment #5 (text/html)]

<div dir="ltr">Attachments.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, \
Sep 12, 2018 at 4:40 PM Milan Boberic &lt;<a \
href="mailto:milanboberic94@gmail.com">milanboberic94@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everybody,<br>I \
implemented Xen Hypervisor 4.9.2 on UltraZed-EG board with carrier card following \
these steps:<br>1.) installed petalinux on Ubuntu 16.04<br>2.) dowloaded   \
UltraZed-EG IO Carrier Card - PetaLinux 2018.2 Standard BSP<br>3.) created project:   \
petalinux-create -t project –s   &lt;path_to_BSP&gt;<br>4.) copied xen-overlay.dtsi \
from ZCU102 project (also made with BSP) to my project<br>5.) built xen hypervisor \
following this guide  <a \
href="http://www.wiki.xilinx.com/Building%20Xen%20Hypervisor%20with%20Petalinux%202018.1" \
target="_blank">link</a>   (booting with SD card)<div>6.)  <span \
style="font-family:Calibri,sans-serif;font-size:16px">made baremetal application that \
blinks PS LED with Vivado</span></div><div><span \
style="font-family:Calibri,sans-serif;font-size:16px">7.)  </span><span \
style="font-family:Calibri,sans-serif;font-size:16px">measured signals jitted when \
application is on board with and with out Xen</span></div><div><br></div><div><font \
face="Calibri, sans-serif"><span style="font-size:16px">I menaged to decrease jitter \
adding following in xen-overlay.dtsi file in xen-bootargs: sched=null \
vwfi=native.</span></font></div><div><br></div><div><font face="Calibri, \
sans-serif"><span style="font-size:16px">The problem is when I add  \
</span></font><span style="font-family:Calibri,sans-serif;font-size:16px">sched=null \
vwfi=native I can create my bare-metal application with xl create and destroy it with \
xl destroy but when I want to start it again (xl create) this error \
pops:</span></div><div><span \
style="font-family:Calibri,sans-serif;font-size:16px"><br></span></div><div><div \
dir="ltr"><font color="#000000">root@uz3eg-iocc-2018-2:~# xl create \
bm1.cfg</font></div><div dir="ltr"><font color="#000000">Parsing config from \
bm1.cfg</font></div><div dir="ltr"><font color="#000000">(XEN) IRQ 48 is already used \
by domain 1</font></div><div dir="ltr"><font color="#000000">libxl: error: \
libxl_create.c:1278:domcreate_launch_dm: Domain 2:failed give domain access to irq \
48: Device or resource busy</font></div><div dir="ltr"><font color="#000000">libxl: \
error: libxl_domain.c:1003:libxl__destroy_domid: Domain 2:Non-existant \
domain</font></div><div dir="ltr"><font color="#000000">libxl: error: \
libxl_domain.c:962:domain_destroy_callback: Domain 2:Unable to destroy \
guest</font></div><div dir="ltr"><font color="#000000">libxl: error: \
libxl_domain.c:889:domain_destroy_cb: Domain 2:Destruction of domain \
failed</font></div></div><div dir="ltr"><font \
color="#000000"><br></font></div><div><font color="#000000">When I remove  \
</font><span style="font-family:Calibri,sans-serif;font-size:16px">  </span><span \
style="font-family:Calibri,sans-serif;font-size:16px">sched=null vwfi=native and \
build project again everything works fine, I can create and destroy bm app as many \
times as i want.</span></div><div><font color="#000000">Added in attachment \
bare-metal application&#39;s configuration file, xl dmesg, dmesg and xl -v create \
message.</font></div><div><font color="#000000">Thank you in adance, best regards, \
Milan Boberic.</font></div><div style="color:rgb(80,0,80)"><br></div><div \
style="color:rgb(80,0,80)"><br></div><div dir="ltr" \
style="color:rgb(80,0,80)"><br></div><div><span \
style="font-family:Calibri,sans-serif;font-size:16px"><br></span></div><div><span \
style="font-family:Calibri,sans-serif;font-size:16px"><br></span></div></div> \
</blockquote></div>


["dmesg.txt" (text/plain)]

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.0-xilinx-v2018.2 (oe-user@oe-host) (gcc version \
7.2.0 (GCC)) #1 SMP Wed Sep 12 13:32:35 CEST 2018 [    0.000000] Boot CPU: AArch64 \
Processor [410fd034] [    0.000000] Machine model: xlnx,zynqmp
[    0.000000] Xen 4.9 support found
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 256 MiB at 0x0000000060000000
[    0.000000] On node 0 totalpages: 196608
[    0.000000]   DMA zone: 2688 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 21 pages/cpu @ffffffc03ffb7000 s46488 r8192 d31336 \
u86016 [    0.000000] pcpu-alloc: s46488 r8192 d31336 u86016 alloc=21*4096
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 193920
[    0.000000] Kernel command line: console=hvc0 earlycon=xen earlyprintk=xen \
maxcpus=1 clk_ignore_unused [    0.000000] PID hash table entries: 4096 (order: 3, \
32768 bytes) [    0.000000] Dentry cache hash table entries: 131072 (order: 8, \
1048576 bytes) [    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 \
bytes) [    0.000000] Memory: 423276K/786432K available (9980K kernel code, 644K \
rwdata, 3132K rodata, 512K init, 2168K bss, 101012K reserved, 262144K cma-reserved) [ \
0.000000] Virtual kernel memory layout: [    0.000000]     modules : \
0xffffff8000000000 - 0xffffff8008000000   (   128 MB) [    0.000000]     vmalloc : \
0xffffff8008000000 - 0xffffffbebfff0000   (   250 GB) [    0.000000]       .text : \
0xffffff8008080000 - 0xffffff8008a40000   (  9984 KB) [    0.000000]     .rodata : \
0xffffff8008a40000 - 0xffffff8008d60000   (  3200 KB) [    0.000000]       .init : \
0xffffff8008d60000 - 0xffffff8008de0000   (   512 KB) [    0.000000]       .data : \
0xffffff8008de0000 - 0xffffff8008e81200   (   645 KB) [    0.000000]        .bss : \
0xffffff8008e81200 - 0xffffff800909f2b0   (  2169 KB) [    0.000000]     fixed   : \
0xffffffbefe7fd000 - 0xffffffbefec00000   (  4108 KB) [    0.000000]     PCI I/O : \
0xffffffbefee00000 - 0xffffffbeffe00000   (    16 MB) [    0.000000]     vmemmap : \
0xffffffbf00000000 - 0xffffffc000000000   (     4 GB maximum) [    0.000000]          \
0xffffffbf00700000 - 0xffffffbf01880000   (    17 MB actual) [    0.000000]     \
memory  : 0xffffffc020000000 - 0xffffffc070000000   (  1280 MB) [    0.000000] \
Hierarchical RCU implementation. [    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] arch_timer: cp15 timer(s) running at 99.99MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: \
0x171015c90f, max_idle_ns: 440795203080 ns [    0.000003] sched_clock: 56 bits at \
99MHz, resolution 10ns, wraps every 4398046511101ns [    0.000288] Console: colour \
dummy device 80x25 [    0.283045] console [hvc0] enabled
[    0.286517] Calibrating delay loop (skipped), value calculated using timer \
frequency.. 199.99 BogoMIPS (lpj=399996) [    0.296973] pid_max: default: 32768 \
minimum: 301 [    0.301734] Mount-cache hash table entries: 2048 (order: 2, 16384 \
bytes) [    0.308397] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 \
bytes) [    0.316322] ASID allocator initialised with 65536 entries
[    0.321335] xen:grant_table: Grant tables using version 1 layout
[    0.327096] Grant table initialized
[    0.330640] xen:events: Using FIFO-based ABI
[    0.334966] Xen: initializing cpu0
[    0.338472] Hierarchical SRCU implementation.
[    0.343135] EFI services will not be available.
[    0.347426] zynqmp_plat_init Platform Management API v1.0
[    0.352856] zynqmp_plat_init Trustzone version v1.0
[    0.357830] smp: Bringing up secondary CPUs ...
[    0.362370] smp: Brought up 1 node, 1 CPU
[    0.366434] SMP: Total of 1 processors activated.
[    0.371194] CPU features: detected feature: 32-bit EL0 Support
[    0.377078] CPU: All CPU(s) started at EL1
[    0.381235] alternatives: patching kernel code
[    0.386139] devtmpfs: initialized
[    0.392769] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, \
max_idle_ns: 7645041785100000 ns [    0.398879] futex hash table entries: 256 (order: \
3, 32768 bytes) [    0.410951] xor: measuring software checksum speed
[    0.449190]    8regs     :  2111.000 MB/sec
[    0.489247]    8regs_prefetch:  1882.000 MB/sec
[    0.529301]    32regs    :  2594.000 MB/sec
[    0.569360]    32regs_prefetch:  2181.000 MB/sec
[    0.569398] xor: using function: 32regs (2594.000 MB/sec)
[    0.573961] pinctrl core: initialized pinctrl subsystem
[    0.580445] NET: Registered protocol family 16
[    0.585024] vdso: 2 pages (1 code @ ffffff8008a46000, 1 data @ ffffff8008de4000)
[    0.591107] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.598979] DMA: preallocated 256 KiB pool for atomic allocations
[    0.604134] xen:swiotlb_xen: Warning: only able to allocate 4 MB for software IO \
TLB [    0.612986] software IO TLB [mem 0x3d400000-0x3d800000] (4MB) mapped at \
[ffffffc03d400000-ffffffc03d7fffff] [    0.654599] reset_zynqmp reset-controller: \
Xilinx zynqmp reset driver probed [    0.656585] ARM CCI_400_r1 PMU driver probed
[    0.661854] zynqmp-pinctrl ff180000.pinctrl: zynqmp pinctrl initialized
[    0.697873] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.763762] raid6: int64x1  gen()   369 MB/s
[    0.831786] raid6: int64x1  xor()   408 MB/s
[    0.899934] raid6: int64x2  gen()   631 MB/s
[    0.967976] raid6: int64x2  xor()   552 MB/s
[    1.036132] raid6: int64x4  gen()   957 MB/s
[    1.104181] raid6: int64x4  xor()   679 MB/s
[    1.172324] raid6: int64x8  gen()   898 MB/s
[    1.240426] raid6: int64x8  xor()   683 MB/s
[    1.308592] raid6: neonx1   gen()   666 MB/s
[    1.376645] raid6: neonx1   xor()   782 MB/s
[    1.444750] raid6: neonx2   gen()  1071 MB/s
[    1.512884] raid6: neonx2   xor()  1102 MB/s
[    1.580975] raid6: neonx4   gen()  1377 MB/s
[    1.649094] raid6: neonx4   xor()  1317 MB/s
[    1.717204] raid6: neonx8   gen()  1510 MB/s
[    1.785318] raid6: neonx8   xor()  1398 MB/s
[    1.785354] raid6: using algorithm neonx8 gen() 1510 MB/s
[    1.789486] raid6: .... xor() 1398 MB/s, rmw enabled
[    1.794502] raid6: using neon recovery algorithm
[    1.800431] XGpio: /amba_pl@0/gpio@80000000: registered, base is 504
[    1.806398] XGpio: /amba_pl@0/gpio@80001000: registered, base is 496
[    1.812352] XGpio: /amba_pl@0/gpio@80002000: registered, base is 493
[    1.818780] xen:balloon: Initialising balloon driver
[    1.823815] SCSI subsystem initialized
[    1.827229] libata version 3.00 loaded.
[    1.827357] usbcore: registered new interface driver usbfs
[    1.832766] usbcore: registered new interface driver hub
[    1.838125] usbcore: registered new device driver usb
[    1.843264] media: Linux media interface: v0.10
[    1.847806] Linux video capture interface: v2.00
[    1.852489] pps_core: LinuxPPS API ver. 1 registered
[    1.857475] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti \
<giometti@linux.it> [    1.866655] PTP clock support registered
[    1.870636] EDAC MC: Ver: 3.0.0
[    1.876209] zynqmp-ipi ff9905c0.mailbox: Probed ZynqMP IPI Mailbox driver.
[    1.880915] FPGA manager framework
[    1.884301] fpga-region fpga-full: FPGA Region probed
[    1.889393] Advanced Linux Sound Architecture Driver Initialized.
[    1.895713] Bluetooth: Core ver 2.22
[    1.899099] NET: Registered protocol family 31
[    1.903581] Bluetooth: HCI device and connection manager initialized
[    1.909984] Bluetooth: HCI socket layer initialized
[    1.914913] Bluetooth: L2CAP socket layer initialized
[    1.920026] Bluetooth: SCO socket layer initialized
[    1.926783] clocksource: Switched to clocksource arch_sys_counter
[    1.931188] VFS: Disk quotas dquot_6.6.0
[    1.935113] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.949643] NET: Registered protocol family 2
[    1.950022] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.955627] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    1.962264] TCP: Hash tables configured (established 8192 bind 8192)
[    1.968610] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.974525] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.980998] NET: Registered protocol family 1
[    1.986218] RPC: Registered named UNIX socket transport module.
[    1.991291] RPC: Registered udp transport module.
[    1.996042] RPC: Registered tcp transport module.
[    2.000798] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.007291] PCI: CLS 0 bytes, default 128
[    2.007402] Trying to unpack rootfs image as initramfs...
[    4.342876] Freeing initrd memory: 53916K
[    4.343827] audit: initializing netlink subsys (disabled)
[    4.347696] audit: type=2000 audit(4.112:1): state=initialized audit_enabled=0 \
res=1 [    4.354839] workingset: timestamp_bits=62 max_order=18 bucket_order=0
[    4.361860] NFS: Registering the id_resolver key type
[    4.366205] Key type id_resolver registered
[    4.370423] Key type id_legacy registered
[    4.374493] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    4.381249] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    4.417470] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    4.419325] io scheduler noop registered
[    4.423302] io scheduler deadline registered
[    4.427642] io scheduler cfq registered (default)
[    4.432382] io scheduler mq-deadline registered
[    4.436966] io scheduler kyber registered
[    4.441996] OF: /amba/dma@fd500000: could not find phandle
[    4.446894] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
[    4.453614] OF: /amba/dma@fd510000: could not find phandle
[    4.459236] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
[    4.466150] OF: /amba/dma@fd520000: could not find phandle
[    4.471768] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
[    4.478696] OF: /amba/dma@fd530000: could not find phandle
[    4.484312] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
[    4.491235] OF: /amba/dma@fd540000: could not find phandle
[    4.496859] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
[    4.503777] OF: /amba/dma@fd550000: could not find phandle
[    4.509405] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
[    4.516319] OF: /amba/dma@fd560000: could not find phandle
[    4.521940] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
[    4.528863] OF: /amba/dma@fd570000: could not find phandle
[    4.534482] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
[    4.541598] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
[    4.548525] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
[    4.555537] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
[    4.562540] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
[    4.569548] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
[    4.576551] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
[    4.583559] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
[    4.590567] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
[    4.600586] xen:xen_evtchn: Event-channel device installed
[    4.654825] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    4.659875] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    4.668302] brd: module loaded
[    4.672780] loop: module loaded
[    4.672824] Invalid max_queues (4), will use default max: 1.
[    4.676838] OF: /amba/ahci@fd0c0000: could not find phandle
[    4.682023] ahci-ceva fd0c0000.ahci: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 \
impl platform mode [    4.690724] ahci-ceva fd0c0000.ahci: flags: 64bit ncq sntf pm \
clo only pmp fbs pio slum part ccc sds apst [    4.702555] scsi host0: ahci-ceva
[    4.704090] scsi host1: ahci-ceva
[    4.707272] ata1: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x100 \
irq 32 [    4.715113] ata2: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port \
0x180 irq 32 [    4.723218] mtdoops: mtd device (mtddev=name/number) must be supplied
[    4.729875] OF: /amba/spi@ff0f0000: could not find phandle
[    4.736377] m25p80 spi0.0: found n25q256a, expected m25p80
[    4.740974] m25p80 spi0.0: n25q256a (65536 Kbytes)
[    4.745496] 3 ofpart partitions found on MTD device spi0.0
[    4.751008] Creating 3 MTD partitions on "spi0.0":
[    4.755856] 0x000000000000-0x000001360000 : "boot"
[    4.761240] 0x000001360000-0x0000013a0000 : "bootenv"
[    4.766378] 0x0000013a0000-0x000002aa0000 : "kernel"
[    4.772281] libphy: Fixed MDIO Bus: probed
[    4.776036] tun: Universal TUN/TAP device driver, 1.6
[    4.786614] CAN device driver interface
[    4.787120] OF: /amba/ethernet@ff0e0000: could not find phandle
[    4.791221] macb ff0e0000.ethernet: Not enabling partial store and forward
[    4.798312] libphy: MACB_mii_bus: probed
[    4.806311] macb ff0e0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0e0000 \
irq 25 (00:0a:35:00:22:01) [    4.811677] TI DP83867 ff0e0000.ethernet-ffffffff:09: \
attached PHY driver [TI DP83867] (mii_bus:phy_addr=ff0e0000.ethernet-ffffffff:09, \
irq=POLL) [    4.825270] xen_netfront: Initialising Xen virtual ethernet driver
[    4.831015] usbcore: registered new interface driver asix
[    4.836423] usbcore: registered new interface driver ax88179_178a
[    4.842557] usbcore: registered new interface driver cdc_ether
[    4.848440] usbcore: registered new interface driver net1080
[    4.854148] usbcore: registered new interface driver cdc_subset
[    4.860116] usbcore: registered new interface driver zaurus
[    4.865748] usbcore: registered new interface driver cdc_ncm
[    4.872748] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
[    4.878124] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.884316] ehci-pci: EHCI PCI platform driver
[    4.889081] usbcore: registered new interface driver cdc_acm
[    4.894521] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN \
adapters [    4.902590] usbcore: registered new interface driver uas
[    4.907959] usbcore: registered new interface driver usb-storage
[    4.915300] rtc_zynqmp ffa60000.rtc: rtc core: registered ffa60000.rtc as rtc0
[    4.921306] i2c /dev entries driver
[    4.925549] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 26
[    4.959403] i2c i2c-0: Added multiplexed i2c bus 1
[    4.959654] i2c i2c-0: Added multiplexed i2c bus 2
[    4.963499] pca954x 0-0070: registered 2 multiplexed busses for I2C mux pca9542
[    4.970929] IR NEC protocol handler initialized
[    4.975426] IR RC5(x/sz) protocol handler initialized
[    4.980528] IR RC6 protocol handler initialized
[    4.985112] IR JVC protocol handler initialized
[    4.989697] IR Sony protocol handler initialized
[    4.994368] IR SANYO protocol handler initialized
[    4.999125] IR Sharp protocol handler initialized
[    5.003883] IR MCE Keyboard/mouse protocol handler initialized
[    5.009765] IR XMP protocol handler initialized
[    5.015351] usbcore: registered new interface driver uvcvideo
[    5.020147] USB Video Class driver (1.1.1)
[    5.026313] cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer at ffffff800915d000 \
with timeout 10s [    5.033721] Bluetooth: HCI UART driver ver 2.3
[    5.037800] Bluetooth: HCI UART protocol H4 registered
[    5.042988] Bluetooth: HCI UART protocol BCSP registered
[    5.048366] Bluetooth: HCI UART protocol LL registered
[    5.053537] Bluetooth: HCI UART protocol ATH3K registered
[    5.058985] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    5.065336] Bluetooth: HCI UART protocol Intel registered
[    5.070758] Bluetooth: HCI UART protocol QCA registered
[    5.076059] usbcore: registered new interface driver bcm203x
[    5.081764] usbcore: registered new interface driver bpa10x
[    5.087385] usbcore: registered new interface driver bfusb
[    5.092921] usbcore: registered new interface driver btusb
[    5.098430] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[    5.104185] usbcore: registered new interface driver ath3k
[    5.109804] EDAC MC: ECC not enabled
[    5.113462] EDAC DEVICE0: Giving out device to module zynqmp-ocm-edac controller \
zynqmp_ocm: DEV ff960000.memory-controller (INTERRUPT) [    5.125769] cpu cpu0: \
failed to get clock: -2 [    5.129923] cpufreq-dt: probe of cpufreq-dt failed with \
error -2 [    5.136111] sdhci: Secure Digital Host Controller Interface driver
[    5.142200] sdhci: Copyright(c) Pierre Ossman
[    5.146610] sdhci-pltfm: SDHCI platform and OF driver helper
[    5.152424] OF: /amba/sdhci@ff160000: could not find phandle
[    5.158829] ata2: SATA link down (SStatus 0 SControl 330)
[    5.163514] ata1: SATA link down (SStatus 0 SControl 330)
[    5.214769] mmc0: SDHCI controller on ff160000.sdhci [ff160000.sdhci] using ADMA \
64-bit [    5.217259] PLL: shutdown
[    5.219989] PLL: enable
[    5.228137] OF: /amba/sdhci@ff170000: could not find phandle
[    5.270766] mmc1: SDHCI controller on ff170000.sdhci [ff170000.sdhci] using ADMA \
64-bit [    5.279165] ledtrig-cpu: registered to indicate activity on CPUs
[    5.279794] usbcore: registered new interface driver usbhid
[    5.285238] usbhid: USB HID core driver
[    5.297942] fpga_manager fpga0: Xilinx ZynqMP FPGA Manager registered
[    5.300304] pktgen: Packet Generator for packet performance testing. Version: 2.75
[    5.307120] Netfilter messages via NETLINK v0.30.
[    5.311328] ip_tables: (C) 2000-2006 Netfilter Core Team
[    5.316597] Initializing XFRM netlink socket
[    5.320944] NET: Registered protocol family 10
[    5.325997] Segment Routing with IPv6
[    5.329152] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    5.334581] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    5.340840] NET: Registered protocol family 17
[    5.345027] NET: Registered protocol family 15
[    5.349527] bridge: filtering via arp/ip/ip6tables is no longer available by \
default. Update your scripts to load br_netfilter if you need this. [    5.362491] \
Ebtables v2.0 registered [    5.371640] can: controller area network core (rev \
20170425 abi 9) [    5.372387] NET: Registered protocol family 29
[    5.376860] can: raw protocol (rev 20170425)
[    5.381175] can: broadcast manager protocol (rev 20170425 t)
[    5.386886] can: netlink gateway (rev 20170425) max_hops=1
[    5.392508] Bluetooth: RFCOMM TTY layer initialized
[    5.397362] Bluetooth: RFCOMM socket layer initialized
[    5.402547] Bluetooth: RFCOMM ver 1.11
[    5.406350] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    5.411709] Bluetooth: BNEP filters: protocol multicast
[    5.416988] Bluetooth: BNEP socket layer initialized
[    5.422003] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    5.427974] Bluetooth: HIDP socket layer initialized
[    5.433105] 9pnet: Installing 9P2000 support
[    5.437329] Key type dns_resolver registered
[    5.441917] mmc0: new HS200 MMC card at address 0001
[    5.447024] mmcblk0: mmc0:0001 Q2J55L 7.09 GiB
[    5.451319] mmcblk0boot0: mmc0:0001 Q2J55L partition 1 16.0 MiB
[    5.457296] mmcblk0boot1: mmc0:0001 Q2J55L partition 2 16.0 MiB
[    5.463278] mmcblk0rpmb: mmc0:0001 Q2J55L partition 3 4.00 MiB
[    5.469747] registered taskstats version 1
[    5.473635]  mmcblk0: p1
[    5.477361] Btrfs loaded, crc32c=crc32c-generic
[    5.487234] dwc3-of-simple ff9d0000.usb0: dwc3_simple_set_phydata: Can't find \
usb3-phy [    5.490013] OF: /amba/usb0@ff9d0000/dwc3@fe200000: could not find phandle
[    5.497385] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.502001] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number \
1 [    5.510060] xhci-hcd xhci-hcd.0.auto: hcc params 0x0238f625 hci version 0x100 \
quirks 0x22010010 [    5.518477] xhci-hcd xhci-hcd.0.auto: irq 57, io mem 0xfe200000
[    5.524525] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.531227] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.538479] usb usb1: Product: xHCI Host Controller
[    5.543408] usb usb1: Manufacturer: Linux 4.14.0-xilinx-v2018.2 xhci-hcd
[    5.550155] usb usb1: SerialNumber: xhci-hcd.0.auto
[    5.556069] mmc1: new high speed SDHC card at address 1234
[    5.560951] hub 1-0:1.0: USB hub found
[    5.564561] mmcblk1: mmc1:1234 SA08G 7.21 GiB (ro)
[    5.569448] hub 1-0:1.0: 1 port detected
[    5.573630] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.578808] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number \
2 [    5.586602]  mmcblk1: p1
[    5.589567] usb usb2: We don't know the algorithms for LPM for this host, \
disabling LPM. [    5.597310] usb usb2: New USB device found, idVendor=1d6b, \
idProduct=0003 [    5.604052] usb usb2: New USB device strings: Mfr=3, Product=2, \
SerialNumber=1 [    5.611314] usb usb2: Product: xHCI Host Controller
[    5.616243] usb usb2: Manufacturer: Linux 4.14.0-xilinx-v2018.2 xhci-hcd
[    5.622990] usb usb2: SerialNumber: xhci-hcd.0.auto
[    5.628190] hub 2-0:1.0: USB hub found
[    5.631832] hub 2-0:1.0: 1 port detected
[    5.636827] rtc_zynqmp ffa60000.rtc: setting system clock to 1970-01-01 00:01:05 \
UTC (65) [    5.644033] clk: Not disabling unused clocks
[    5.648291] ALSA device list:
[    5.651274]   No soundcards found.
[    5.655498] Freeing unused kernel memory: 512K
[    5.734925] udevd[1716]: starting version 3.2.2
[    5.742492] udevd[1717]: starting eudev-3.2.2
[    6.771074] export_store: invalid GPIO 350
[    6.771291] blinky[1980]: unhandled level 2 translation fault (11) at 0x00000000, \
esr 0x92000006, in libc-2.26.so[7f992e2000+138000] [    6.783194] CPU: 0 PID: 1980 \
Comm: blinky Not tainted 4.14.0-xilinx-v2018.2 #1 [    6.790438] Hardware name: \
xlnx,zynqmp (DT) [    6.794677] task: ffffffc03c9e8080 task.stack: ffffff800b2d0000
[    6.800646] PC is at 0x7f99343abc
[    6.804018] LR is at 0x400dfc
[    6.807046] pc : [<0000007f99343abc>] lr : [<0000000000400dfc>] pstate: 60000000
[    6.814484] sp : 0000007fc4068f90
[    6.817857] x29: 0000007fc4068f90 x28: 0000000000000000
[    6.823220] x27: 0000000000000000 x26: 0000007fc4069edf
[    6.828584] x25: 0000007fc40690a4 x24: 0000000000401140
[    6.833947] x23: 0000000000412000 x22: 0000000000000003
[    6.839309] x21: 0000000000000001 x20: 0000007fc4068ff8
[    6.844673] x19: 0000000000000000 x18: 0000007fc4068d3d
[    6.850036] x17: 0000007f99343aa0 x16: 0000000000412058
[    6.855399] x15: 000000000000000a x14: 000000000000015e
[    6.860762] x13: 0000000000000000 x12: 0000000000000000
[    6.866125] x11: 0000000000000020 x10: 0000007fc4068d40
[    6.871488] x9 : 0000000000000000 x8 : 0000000000000038
[    6.876851] x7 : 0000000000000000 x6 : 0000000000401126
[    6.882214] x5 : 0000000000000000 x4 : 000000000d518260
[    6.887577] x3 : 0000000000000000 x2 : 0000000000000001
[    6.892940] x1 : 0000000000000001 x0 : 0000007fc4068ff8
[    7.093343] pps pps0: new PPS source ptp0
[    7.093400] macb ff0e0000.ethernet: gem-ptp-timer ptp clock registered.
[    7.098572] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.131043] macb ff0e0000.ethernet eth0: link up (1000/Full)
[    9.131170] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  229.609858] random: crng init done


["xl -v create.txt" (text/plain)]

domainbuilder: detail: xc_dom_allocate: cmdline="(null)", features="(null)"
domainbuilder: detail: xc_dom_kernel_file: filename="ultraled.bin"
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.9, caps xen-3.0-aarch64 \
                xen-3.0-armv7l
domainbuilder: detail: xc_dom_rambase_init: RAM starts at 40000
domainbuilder: detail: xc_dom_parse_image: called
domainbuilder: detail: xc_dom_find_loader: trying multiboot-binary loader ...
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying Linux zImage (ARM64) loader ...
domainbuilder: detail: loader probe OK
domainbuilder: detail: xc_dom_parse_zimage64_kernel: called
domainbuilder: detail: xc_dom_parse_zimage64_kernel: xen-3.0-aarch64: 0x40000000 -> \
                0x4000b080
domainbuilder: detail: xc_dom_devicetree_mem: called
domainbuilder: detail: xc_dom_mem_init: mem 8 MB, pages 0x800 pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x800 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: set_mode: guest xen-3.0-aarch64, address size 64
domainbuilder: detail: populate_guest_memory: populating RAM @ \
                0000000040000000-0000000040800000 (8MB)
domainbuilder: detail: populate_one_size: populated 0x4/0x4 entries with shift 9
domainbuilder: detail: meminit: placing boot modules at 0x407ff000
domainbuilder: detail: meminit: devicetree: 0x407ff000 -> 0x40800000
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x40000+0xc at \
                0x7f91b8d000
domainbuilder: detail: xc_dom_alloc_segment:   kernel       : 0x40000000 -> \
                0x4000c000  (pfn 0x40000 + 0xc pages)
domainbuilder: detail: xc_dom_load_zimage_kernel: called
domainbuilder: detail: xc_dom_load_zimage_kernel: kernel seg 0x40000000-0x4000c000
domainbuilder: detail: xc_dom_load_zimage_kernel: copy 45184 bytes from blob \
                0x7f91b99000 to dst 0x7f91b8d000
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x407ff+0x1 at \
                0x7f92186000
domainbuilder: detail: xc_dom_alloc_segment:   devicetree   : 0x407ff000 -> \
                0x40800000  (pfn 0x407ff + 0x1 pages)
domainbuilder: detail: alloc_magic_pages: called
domainbuilder: detail: alloc_pgtables_arm: called
domainbuilder: detail: xc_dom_build_image  : virt_alloc_end : 0x40800000
domainbuilder: detail: xc_dom_build_image  : virt_pgtab_end : 0x0
domainbuilder: detail: xc_dom_boot_image: called
domainbuilder: detail: bootearly: doing nothing
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-aarch64 <= \
                matches
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-armv7l
domainbuilder: detail: setup_pgtables_arm: called
domainbuilder: detail: clear_page: pfn 0x39000, mfn 0x39000
domainbuilder: detail: clear_page: pfn 0x39001, mfn 0x39001
domainbuilder: detail: start_info_arm: called
domainbuilder: detail: domain builder memory footprint
domainbuilder: detail:    allocated
domainbuilder: detail:       malloc             : 19448 bytes
domainbuilder: detail:       anon mmap          : 0 bytes
domainbuilder: detail:    mapped
domainbuilder: detail:       file mmap          : 44 kB
domainbuilder: detail:       domU mmap          : 52 kB
domainbuilder: detail: vcpu_arm64: called
domainbuilder: detail: DTB 407ff000
domainbuilder: detail: Initial state CPSR 0x1c5 PC 0x40000000
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0x38000
domainbuilder: detail: xc_dom_release: called
(XEN) IRQ 48 is already used by domain 1
libxl: error: libxl_create.c:1278:domcreate_launch_dm: Domain 4:failed give domain \
                access to irq 48: Device or resource busy
libxl: error: libxl_domain.c:1003:libxl__destroy_domid: Domain 4:Non-existant domain
libxl: error: libxl_domain.c:962:domain_destroy_callback: Domain 4:Unable to destroy \
                guest
libxl: error: libxl_domain.c:889:domain_destroy_cb: Domain 4:Destruction of domain \
failed


["bare-metal application's configuration file.txt" (text/plain)]

name = "bm1"
kernel = "ultraled.bin"
memory = 8
vcpus = 1
cpus = [2]
irqs = [ 48 ]
iomem = [ "0xff0a0,1" ]
hap=0
["xl dmesg after trying to create bm app again.txt" (text/plain)]

(XEN) Checking for initrd in /chosen
(XEN) Initrd 0000000002b58000-0000000005ffffc9
(XEN) RAM: 0000000000000000 - 000000007fefffff
(XEN)
(XEN) MODULE[0]: 0000000007ff4000 - 0000000007ffc080 Device Tree
(XEN) MODULE[1]: 0000000002b58000 - 0000000005ffffc9 Ramdisk
(XEN) MODULE[2]: 0000000000080000 - 0000000003180000 Kernel
(XEN)  RESVD[0]: 0000000007ff4000 - 0000000007ffc000
(XEN)  RESVD[1]: 0000000002b58000 - 0000000005ffffc9
(XEN)
(XEN) Command line: console=dtuart dtuart=serial0 dom0_mem=768M bootscrub=0 maxcpus=1 \
dom0_max_vcpus=1 dom0_vcpus_pin=true timer_slop=0 core_parking=performance \
cpufreq=xen:performance sched=null vwfi=native (XEN) Placing Xen at \
0x000000007fc00000-0x000000007fe00000 (XEN) Update BOOTMOD_XEN from \
0000000006000000-0000000006100d81 => 000000007fc00000-000000007fd00d81 (XEN) Domain \
heap initialised (XEN) Booting using Device Tree
(XEN) Looking for dtuart at "serial0", options ""
 Xen 4.9.2-pre
(XEN) Xen version 4.9.2-pre (@) (aarch64-xilinx-linux-gcc (GCC) 7.2.0) debug=n  Mon \
Jun 11 18:56:51 EDT 2018 (XEN) Latest ChangeSet: Thu Mar 22 22:02:18 2018 +0100 \
git:c227fe6-dirty (XEN) Processor: 410fd034: "ARM Limited", variant: 0x0, part 0xd03, \
rev 0x4 (XEN) 64-bit Execution:
(XEN)   Processor Features: 0000000000002222 0000000000000000
(XEN)     Exception Levels: EL3:64+32 EL2:64+32 EL1:64+32 EL0:64+32
(XEN)     Extensions: FloatingPoint AdvancedSIMD
(XEN)   Debug Features: 0000000010305106 0000000000000000
(XEN)   Auxiliary Features: 0000000000000000 0000000000000000
(XEN)   Memory Model Features: 0000000000001122 0000000000000000
(XEN)   ISA Features:  0000000000011120 0000000000000000
(XEN) 32-bit Execution:
(XEN)   Processor Features: 00000131:00011011
(XEN)     Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN)     Extensions: GenericTimer Security
(XEN)   Debug Features: 03010066
(XEN)   Auxiliary Features: 00000000
(XEN)   Memory Model Features: 10201105 40000000 01260000 02102211
(XEN)  ISA Features: 02101110 13112111 21232042 01112131 00011142 00011121
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 99999 KHz
(XEN) GICv2 initialization:
(XEN)         gic_dist_addr=00000000f9010000
(XEN)         gic_cpu_addr=00000000f9020000
(XEN)         gic_hyp_addr=00000000f9040000
(XEN)         gic_vcpu_addr=00000000f9060000
(XEN)         gic_maintenance_irq=25
(XEN) GICv2: Adjusting CPU interface base to 0xf902f000
(XEN) GICv2: 192 lines, 4 cpus, secure (IID 0200143b).
(XEN) Using scheduler: null Scheduler (null)
(XEN) Initializing null scheduler
(XEN) WARNING: This is experimental software in development.
(XEN) Use at your own risk.
(XEN) Allocated console ring of 16 KiB.
(XEN) Bringing up CPU1
(XEN) Bringing up CPU2
(XEN) Bringing up CPU3
(XEN) Brought up 4 CPUs
(XEN) P2M: 40-bit IPA with 40-bit PA and 8-bit VMID
(XEN) P2M: 3 levels with order-1 root, VTCR 0x80023558
(XEN) I/O virtualisation enabled
(XEN)  - Dom0 mode: Relaxed
(XEN) Interrupt remapping enabled
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading kernel from boot module @ 0000000000080000
(XEN) Loading ramdisk from boot module @ 0000000002b58000
(XEN) Allocating 1:1 mappings totalling 768MB for dom0:
(XEN) BANK[0] 0x00000020000000-0x00000040000000 (512MB)
(XEN) BANK[1] 0x00000060000000-0x00000070000000 (256MB)
(XEN) Grant table range: 0x0000007fc00000-0x0000007fc5b000
(XEN) Loading zImage from 0000000000080000 to 0000000020080000-0000000023180000
(XEN) Loading dom0 initrd from 0000000002b58000 to \
0x0000000028200000-0x000000002b6a7fc9 (XEN) Allocating PPI 16 for event channel \
interrupt (XEN) Loading dom0 DTB to 0x0000000028000000-0x0000000028006e66
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 280kB init memory.
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER4
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER8
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER12
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER16
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER20
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER0
(XEN) IRQ 48 is already used by domain 1
(XEN) IRQ 48 is already used by domain 1


[Attachment #10 (text/plain)]

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic