Re: [Xen-devel] [XEN][ARM64]: Qemu unhandled level 1 translation fault and p2m failure

2019-01-14 Thread Julien Grall

(+ Stefano and Oleksandr)

On 09/01/2019 06:54, vikram k.s. wrote:

Hello,


Hello,

I have seen this e-mail posted a couple of times. I will only answer to this 
e-mail.

First of all, I would recommend to CC people that might be interested with the 
topic, so the thread get flagged in our inbox. Otherwise, you may have to wait 
longer for an answer. Don't worry if you don't get the right people, they will 
CC relevant people.




  * We are using XEN-4.12.


Xen 4.12 is not yet released. So what is the commit used?


  * Linux 4.14 as dom0 and Linux4.19 as domU.


Please provide more details such as the hardware you use, the guest 
configuration, the full log (Xen + Dom0 + DomU).




When domU is create getting below log.
qemu-system-i38[3478]: unhandled level 1 translation fault (11) at 0x0010, 
esr 0x9205, in libxengnttab.so.1.2[7faf9cd000+3000]


What PV drivers are you using?



Also  p2m is failing .
(XEN) p2m.c:1456: d2v4: gvirt_to_maddr failed va=0x80001dfa1090 flags=0x1 
par=0x80


I think this is unrelated, this is more likely related to KPTI and a known issue 
that needs to be fixed. It is in my TODO list, not sure when it is going to be 
resolved though. Any help would be welcomed here.


Best regards,

--
Julien Grall

___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

[Xen-devel] [XEN][ARM64]: Qemu unhandled level 1 translation fault and p2m failure

2019-01-09 Thread vikram k.s.
Hello,

   - We are using XEN-4.12.
   - Linux 4.14 as dom0 and Linux4.19 as domU.

When domU is create getting below log.
qemu-system-i38[3478]: unhandled level 1 translation fault (11) at
0x0010, esr 0x9205, in libxengnttab.so.1.2[7faf9cd000+3000]

Also  p2m is failing .
(XEN) p2m.c:1456: d2v4: gvirt_to_maddr failed va=0x80001dfa1090
flags=0x1 par=0x80

Not sure whether these two issue are dependent or not. Please help in
resolving this issue.

Please find the complete domU boot log attached below.

Regards
Vks
___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

[Xen-devel] [XEN][ARM64]: Qemu unhandled level 1 translation fault and p2m failure

2019-01-09 Thread vikram k.s.
Hello,

   - We are using XEN-4.12.
   - Linux 4.14 as dom0 and Linux4.19 as domU.

When domU is create getting below log.
qemu-system-i38[3478]: unhandled level 1 translation fault (11) at
0x0010, esr 0x9205, in libxengnttab.so.1.2[7faf9cd000+3000]

Also  p2m is failing .
(XEN) p2m.c:1456: d2v4: gvirt_to_maddr failed va=0x80001dfa1090
flags=0x1 par=0x80

Not sure whether these two issue are dependent or not. Please help in
resolving this issue.

Please find the complete domU boot log attached below.

Regards
VKS
[  282.887225] IPv6: ADDRCONF(NETDEV_UP): vif2.0: link is not ready
[  282.893866] IPv6: ADDRCONF(NETDEV_UP): vif2.0: link is not ready
[  282.923047] xenbr0: port 1(vif2.0) entered blocking state
[  282.928441] xenbr0: port 1(vif2.0) entered disabled state
[  282.934115] device vif2.0 entered promiscuous mode
[  282.941478] IPv6: ADDRCONF(NETDEV_UP): vif2.0: link is not ready
[  283.058188] qemu-system-i38[3478]: unhandled level 1 translation fault (11) 
at 0x0010, esr 0x9205, in libxengnttab.so.1.2[7faf9cd000+3000]
[  283.071564] CPU: 1 PID: 3478 Comm: qemu-system-i38 Tainted: G S  
4.14.0-rc7 #1
[  283.079993] Hardware name: HiKey960 (DT)
(XEN) d2v0: vGICD: unhandled word write 0x to ICACTIVER0
[  283.083907] task: ffc004a7d080 task.stack: ff800f4e8000
[  283.095771] PC is at 0x7faf9ce7ac
[  283.099156] LR is at 0x7faf9ce294
[  283.102426] pc : [<007faf9ce7ac>] lr : [<007faf9ce294>] pstate: 
8000
[  283.109918] sp : 007ff8ad26f0
[  283.113286] x29: 007ff8ad[0.00] Booting Linux on physical CPU 
0x00 [0x410fd034]
[0.00] Linux version 4.19.13 (vikram.k@CPU-248U26f0 x28: 00) (gcc 
version 7.3.1 20180425 [linaro-7.3-2018.05 revision 
d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) 00 
#1 SMP PREEMPT Thu Jan 3 11:31:48 IST 2019
[0.00] Machine model: XENVM-4.12
[0.00] Xen 4.12 support found
[   [  283.140924] x 0.00] efi: Getting EFI parameters from FDT:
[0.00] efi: UEFI not found.
[0.00] cma: Reserved 32 MiB at 027: 00556834x02b60 x26: 
05e00
[0.00] NUMA: No NUMA configuration found
[0.00] NUMA: Faking a node at [mem 0x0 
0-0x5fff]
[0.00] NUMA: NODE_DATA [mem 0x5dff-0x5dff17bf]
[0.00] Zone ranges:
[0.00] [  283.180230] x(XEN) d2v1: vGICD: unhandled word write 
0x to ICACTIVER0
  25: DMA32[mem 0x4000-0x5fff]
[0.00]   Normal   empty
[0.00] Movable zone start for ea x24: 00ch node
[0.00] Early memory node ranges
[0.00]   node   0: [mem 0x4000-0x5fff]
[00 
0.[  283.225218] x00] Initmem setup node 0 [mem 
0x4000-0x5fff]
[0.00] psci: probing for conduit method from 23: 007faf97(XEN) 
d2v2: vGICD: unhandled word write 0x to ICACTIVER0
DT.
[0.00] psci: PSCIv1.1 detected in firmware.
[0.00] psci: Using standard PSCI v0.2 function IDs
[0.00d000 x22: 55691e62f0 
00] psci: Trusted OS migration not required
[0.00] psci: SMC Calling Convention v1.1
[0.00] random: get_rando[  283.258952] xm_bytes called from 
start_kernel+0xa8/0x418 with crng_init=0
[0.00] percpu: Embedded 21 pages/cpu @(ptrval) s521: 
0055691d(XEN) d2v3: vGICD: unhandled word write 0x to ICACTIVER0
681e40 x20: 0056 r0 d29160 u86016
[0.00] Detected VIPT I-cache on CPU0
[0.00] CPU features: enabling workaround for ARM err00 
atum 845719
[0.00] Speculative Store Bypass Disable mitigation not required
[0.00] CPU features: detected: Ke[  283.303749] xrn19: 0055691fel 
page table isolation (KPTI)
[0.00] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[0.00] Pof478 x18: 00(XEN) d2v4: vGICD: unhandled word write 
0x to ICACTIVER0
licy zone: DMA32
[0.00] Kernel command line: earlyprintk=xenboot console=hvc0 
root=/dev/xvda rootfstype=ext4 rw video=00 
HD[  283.348445] xMI-A-1:1280x720@60
[0.00] Memory: 446440K/524288K available (17212K kernel code, 1918K 
rwdata, 6684K rodata, 1536K ini17: 00556881t, 445K bss, 45080K reserved, 
32768K cma-reserved)
[0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
7a90 x16: 00(XEN) d2v5: vGICD: unhandled word write 0x to ICACTIVER0
[ 7faf9ce278 
   0.00] rcu: Preemptible hierarchical RCU implementation.
[0.00] rcu: RCU restricting CPUs from NR_CPUS=64 to nr[  
283.382180] x_cpu_ids=8.
[0.00]  Tasks RCU enabled.
[0.00] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[15:   0026 x14: 00  0.00] NR_IRQS: 64, nr_irqs: 64, 
preallocated irqs: 0
[0.00] arch_timer: cp15 timer(s) running at 1.92MHz (virt).00