Skip to contentSkip to conversation

Xen 4.18rc/ARM64 on Raspberry Pi 4B: Traffic in DomU crashing Dom0 when using VLANs

DISCUSSION Paul Leiber 6 participants 17 messages Oct 13, 2023 – Mar 6, 2024

lore
Share & tools
lore
#0 lore raw

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:

bridge_stp off      # dont use STP (spanning tree proto)
bridge_waitport 0   # dont wait for port to be available
bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes Logging enabcm6e4ei0.10 (VLAN 10): instant crash Logging enabcm6e4ei0.20 (VLAN 20): no crashes Logging xenbr0 (on VLAN 10): instant crash Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:
------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

Thanks,

Paul

xl info:

host : ***
release : 6.1.0-13-arm64
version : #1 SMP Debian 6.1.55-1 (2023-09-29)
machine : aarch64
nr_cpus : 4
max_cpu_id : 3
nr_nodes : 1
cores_per_socket : 1
threads_per_core : 1
cpu_mhz : 54.000
hw_caps : 00000000:00000000:00000000:00000000:00000000:00000000:0
virt_caps : hvm hap vpmu gnttab-v1
arm_sve_vector_length : 0
total_memory : 8043
free_memory : 4829
sharing_freed_memory : 0
sharing_used_memory : 0
outstanding_claims : 0
free_cpus : 0
xen_major : 4
xen_minor : 18
xen_extra : -rc
xen_version : 4.18-rc
xen_caps : xen-3.0-aarch64 xen-3.0-armv7l
xen_scheduler : credit2
xen_pagesize : 4096
platform_params : virt_start=0x0
xen_changeset : Tue Sep 19 12:13:50 2023 +0100 git:dc9d9aa62d
xen_commandline : placeholder dom0_mem=1024M,max:1024M console=dtuart dtu
cc_compiler : gcc (Debian 12.2.0-14) 12.2.0
cc_compile_by : root
cc_compile_domain : xxx.onlineschubla.de
cc_compile_date : Fri Oct 13 16:01:16 CEST 2023
build_id : 1d92e27e22e82c09edcb6c178cc09c6e390d031d
xend_config_format : 4

cat /etc/network/interfaces (with VLAN setup, redacted for IPs):

# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enabcm6e4ei0
iface enabcm6e4ei0 inet manual
iface enabcm6e4ei0 inet6 manual

#VLAN LAN
auto enabcm6e4ei0.10
iface enabcm6e4ei0.10 inet manual

#VLAN DMZ_LAN
auto enabcm6e4ei0.20
iface enabcm6e4ei0.20 inet manual

#Bridge LAN
auto xenbr0
iface xenbr0 inet static

        bridge_ports enabcm6e4ei0.10
        address *.*.*.*/24
        gateway *.*.*.*

iface xenbr0 inet6 static
bridge_ports enabcm6e4ei0.10
address *::*/64
gateway *::*
# use SLAAC al IPv6 address from the router # we may notv6 forwarding, otherwise SLAAC ged autoconf 1
accept_ra 2

#Bridge DMZ_LAN
auto xenbr1
iface xenbr1 inet manual
bridge_ports enabcm6e4ei0.20

#1 lore raw

Am 13.10.2023 um 20:56 schrieb Paul Leiber:

Quoted 57 lines

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:
bridge_stp off      # dont use STP (spanning tree proto) bridge_waitport 0   # dont wait for port to be available bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes
Logging enabcm6e4ei0.10 (VLAN 10): instant crash
Logging enabcm6e4ei0.20 (VLAN 20): no crashes
Logging xenbr0 (on VLAN 10): instant crash
Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

Quoted 8 lines

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:
------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

O.k., let's try to break that issue down.

Firstly, how can I get more information on why the Xen watchdog triggers? Is there documentation? Are there any logs? I couldn't find anything useful with my search skills.

Thanks,

Paul

#2 lore raw

Am 22.10.2023 um 07:42 schrieb Paul Leiber:

Quoted 61 lines

Am 13.10.2023 um 20:56 schrieb Paul Leiber:

Quoted 60 lines

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:
bridge_stp off      # dont use STP (spanning tree proto) bridge_waitport 0   # dont wait for port to be available bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes
Logging enabcm6e4ei0.10 (VLAN 10): instant crash
Logging enabcm6e4ei0.20 (VLAN 20): no crashes
Logging xenbr0 (on VLAN 10): instant crash
Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:(XEN) d3v0 Unhandled SMC/HVC: 0x84000050

(XEN) d3v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d3v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 1 to 2 frames (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 2 to 3 frames (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 3 to 4 frames

Quoted 10 lines
Quoted 5 lines

------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

O.k., let's try to break that issue down.

Firstly, how can I get more information on why the Xen watchdog triggers? Is there documentation? Are there any logs? I couldn't find anything useful with my search skills.

After some delay, I have picked up the Raspberry Pi again, built Xen 4.19-unstable, with the same result: Reboot of the complete system after the Dom0 watchdog triggering when accessing the Zabbix content on a webserver on DomU.

I still would like to find out what's going wrong here, but I have no idea what to do. I'd appreciate any hint.

Not knowing if it helps, I added Xen logs from boot until Dom0 crash/reboot below.

Loading Xen xen ...
Loading Linux 6.1.0-17-arm64 ...
Loading initial ramdisk ...
Using modules provided by bootloader in FDT
Xen 4.19-unstable (c/s Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty) EFI loader
Xen 4.19-unstable
(XEN) Xen version 4.19-unstable ([email protected]) (gcc (Debian 12.2.0-

14) 12.2.0) debug=y Sun Jan 14 21:46:34 CET 2024
(XEN) Latest ChangeSet: Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty (XEN) build-id: babb03cb6107fc46f7d8969142ccd6772a1133c3
(XEN) Console output is synchronous.
(XEN) Processor: 00000000410fd083: "ARM Limited", variant: 0x0, part 0xd08,rev 0

                               x3

(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: 0000000000001124 0000000000000000
(XEN)   ISA Features:  0000000000010000 0000000000000000

(XEN) 32-bit Execution:
(XEN) Processor Features: 0000000000000131:0000000000011011
(XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN) Extensions: GenericTimer Security

(XEN)   Debug Features: 0000000003010066
(XEN)   Auxiliary Features: 0000000000000000
(XEN)   Memory Model Features: 0000000010201105 0000000040000000

(XEN) 0000000001260000 0000000002102211
(XEN) ISA Features: 0000000002101110 0000000013112111 0000000021232042
(XEN) 0000000001112131 0000000000011142 0000000000010001
(XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) ACPI: GICC (acpi_id[0x0000] address[0xff842000] MPIDR[0x0] enabled) (XEN) ACPI: GICC (acpi_id[0x0001] address[0xff842000] MPIDR[0x1] enabled) (XEN) ACPI: GICC (acpi_id[0x0002] address[0xff842000] MPIDR[0x2] enabled) (XEN) ACPI: GICC (acpi_id[0x0003] address[0xff842000] MPIDR[0x3] enabled) (XEN) 4 CPUs enabled, 4 CPUs total
(XEN) SMP: Allowing 4 CPUs
(XEN) enabled workaround for: ARM erratum 1319537
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 54000 KHz (XEN) GICv2 initialization:

(XEN)         gic_dist_addr=00000000ff841000
(XEN)         gic_cpu_addr=00000000ff842000
(XEN)         gic_hyp_addr=00000000ff844000
(XEN)         gic_vcpu_addr=00000000ff846000
(XEN)         gic_maintenance_irq=25

(XEN) GICv2: 256 lines, 4 cpus, secure (IID 0200143b). (XEN) XSM Framework v1.0.1 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2) (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 32 KiB.
(XEN) CPU0: Guest atomics will try 16 times before pausing the domain (XEN) Bringing up CPU1
(XEN) CPU1: Guest atomics will try 16 times before pausing the domain (XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU2: Guest atomics will try 13 times before pausing the domain (XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU3: Guest atomics will try 16 times before pausing the domain (XEN) Brought up 4 CPUs
(XEN) CPU 3 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 44-bit IPA with 44-bit PA and 8-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x0000000080043594 (XEN) Scheduling granularity: cpu, 1 CPU per sched-resource (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN) First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000a00002ee0b0 -> 00000a00002ef250 (XEN) CPU2 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU1 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU3 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU0 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 0000000030ef7000
(XEN) Loading ramdisk from boot module @ 000000002ee6d000
(XEN) Allocating 1:1 mappings totalling 1024MB for dom0:
(XEN) BANK[0] 0x00000040000000-0x00000080000000 (1024MB)
(XEN) Grant table range: 0x0000002eceb000-0x0000002ed2b000
(XEN) Allocating PPI 16 for event channel interrupt
(XEN) Loading zImage from 0000000030ef7000 to 0000000040000000-0000000041f1c7c0 (XEN) Loading d0 initrd from 000000002ee6d000 to 0x0000000048200000-0x000000004a

                                                   288c22

(XEN) Loading d0 DTB to 0x0000000048000000-0x00000000480002c3
(XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) ***************************************************
(XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line. (XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use!
(XEN) ***************************************************
(XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) Freed 376kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v1: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v2: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v3: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d1v0 Unhandled SMC/HVC: 0x84000050
(XEN) d1v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d1v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d1v0 Expanding d1 grant table from 1 to 2 frames (XEN) gnttab_mark_dirty not implemented yet
(XEN) d2v0 Unhandled SMC/HVC: 0x84000050
(XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d2v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 1 to 2 frames (XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 2 to 3 frames (XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 3 to 4 frames (XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

#3 lore raw
Quoted 310 lines · Paul Leiber

Am 22.10.2023 um 07:42 schrieb Paul Leiber:

Quoted 121 lines

Am 13.10.2023 um 20:56 schrieb Paul Leiber:

Quoted 120 lines

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:
bridge_stp off      # dont use STP (spanning tree proto) bridge_waitport 0   # dont wait for port to be available bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes
Logging enabcm6e4ei0.10 (VLAN 10): instant crash
Logging enabcm6e4ei0.20 (VLAN 20): no crashes
Logging xenbr0 (on VLAN 10): instant crash
Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:(XEN) d3v0 Unhandled SMC/HVC: 0x84000050

(XEN) d3v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d3v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 3 to 4 frames

Quoted 5 lines
Quoted 5 lines

------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

Quoted 9 lines
Quoted 2 lines

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

O.k., let's try to break that issue down.

Firstly, how can I get more information on why the Xen watchdog triggers? Is there documentation? Are there any logs? I couldn't find anything useful with my search skills.

After some delay, I have picked up the Raspberry Pi again, built Xen 4.19-unstable, with the same result: Reboot of the complete system after the Dom0 watchdog triggering when accessing the Zabbix content on a webserver on DomU.

I still would like to find out what's going wrong here, but I have no idea what to do. I'd appreciate any hint.

Not knowing if it helps, I added Xen logs from boot until Dom0 crash/reboot below.

Loading Xen xen ...
Loading Linux 6.1.0-17-arm64 ...
Loading initial ramdisk ...
Using modules provided by bootloader in FDT
Xen 4.19-unstable (c/s Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty) EFI
loader
Xen 4.19-unstable
(XEN) Xen version 4.19-unstable ([email protected]) (gcc (Debian 12.2.0-

14) 12.2.0) debug=y Sun Jan 14 21:46:34 CET 2024
(XEN) Latest ChangeSet: Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty (XEN) build-id: babb03cb6107fc46f7d8969142ccd6772a1133c3
(XEN) Console output is synchronous.
(XEN) Processor: 00000000410fd083: "ARM Limited", variant: 0x0, part 0xd08,rev 0

                                x3

(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: 0000000000001124 0000000000000000
(XEN)   ISA Features:  0000000000010000 0000000000000000

(XEN) 32-bit Execution:
(XEN) Processor Features: 0000000000000131:0000000000011011
(XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN) Extensions: GenericTimer Security

(XEN)   Debug Features: 0000000003010066
(XEN)   Auxiliary Features: 0000000000000000
(XEN)   Memory Model Features: 0000000010201105 0000000040000000

(XEN) 0000000001260000 0000000002102211
(XEN) ISA Features: 0000000002101110 0000000013112111 0000000021232042
(XEN) 0000000001112131 0000000000011142 0000000000010001
(XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) ACPI: GICC (acpi_id[0x0000] address[0xff842000] MPIDR[0x0] enabled) (XEN) ACPI: GICC (acpi_id[0x0001] address[0xff842000] MPIDR[0x1] enabled) (XEN) ACPI: GICC (acpi_id[0x0002] address[0xff842000] MPIDR[0x2] enabled) (XEN) ACPI: GICC (acpi_id[0x0003] address[0xff842000] MPIDR[0x3] enabled) (XEN) 4 CPUs enabled, 4 CPUs total
(XEN) SMP: Allowing 4 CPUs
(XEN) enabled workaround for: ARM erratum 1319537
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 54000 KHz (XEN) GICv2 initialization:

(XEN)         gic_dist_addr=00000000ff841000
(XEN)         gic_cpu_addr=00000000ff842000
(XEN)         gic_hyp_addr=00000000ff844000
(XEN)         gic_vcpu_addr=00000000ff846000
(XEN)         gic_maintenance_irq=25

(XEN) GICv2: 256 lines, 4 cpus, secure (IID 0200143b). (XEN) XSM Framework v1.0.1 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2) (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 32 KiB.
(XEN) CPU0: Guest atomics will try 16 times before pausing the domain (XEN) Bringing up CPU1
(XEN) CPU1: Guest atomics will try 16 times before pausing the domain (XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU2: Guest atomics will try 13 times before pausing the domain (XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU3: Guest atomics will try 16 times before pausing the domain (XEN) Brought up 4 CPUs
(XEN) CPU 3 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 44-bit IPA with 44-bit PA and 8-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x0000000080043594 (XEN) Scheduling granularity: cpu, 1 CPU per sched-resource (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN) First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000a00002ee0b0 -> 00000a00002ef250
(XEN) CPU2 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU1 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU3 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU0 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 0000000030ef7000 (XEN) Loading ramdisk from boot module @ 000000002ee6d000 (XEN) Allocating 1:1 mappings totalling 1024MB for dom0:
(XEN) BANK[0] 0x00000040000000-0x00000080000000 (1024MB) (XEN) Grant table range: 0x0000002eceb000-0x0000002ed2b000 (XEN) Allocating PPI 16 for event channel interrupt (XEN) Loading zImage from 0000000030ef7000 to 0000000040000000-0000000041f1c7c0
(XEN) Loading d0 initrd from 000000002ee6d000 to 0x0000000048200000-0x000000004a

                                                    288c22

(XEN) Loading d0 DTB to 0x0000000048000000-0x00000000480002c3 (XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *************************************************** (XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line. (XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) *************************************************** (XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) Freed 376kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v1: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v2: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v3: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d1v0 Unhandled SMC/HVC: 0x84000050
(XEN) d1v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d1v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d1v0 Expanding d1 grant table from 1 to 2 frames
(XEN) gnttab_mark_dirty not implemented yet
(XEN) d2v0 Unhandled SMC/HVC: 0x84000050
(XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d2v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Quoted 8 lines

(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 3 to 4 frames
(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

I'm unsure whose attention to draw to this report.

This might be a scheduler issue since the watchdog timer is triggering.

This might be an ACPI issue as ACPI is in use here.

This might be an ARM Linux kernel issue.

In the end this is someone running into trouble with Xen on an ARM device. Yet despite bringing up the issue hasn't gotten any help...

Signature · 4 lines
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         [email protected]  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
#4 lore raw
Quoted 323 lines · Elliott Mitchell
Quoted 310 lines · Paul Leiber

Am 22.10.2023 um 07:42 schrieb Paul Leiber:

Quoted 121 lines

Am 13.10.2023 um 20:56 schrieb Paul Leiber:

Quoted 120 lines

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:

bridge_stp off      # dont use STP (spanning tree proto)
bridge_waitport 0   # dont wait for port to be available
bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes
Logging enabcm6e4ei0.10 (VLAN 10): instant crash
Logging enabcm6e4ei0.20 (VLAN 20): no crashes
Logging xenbr0 (on VLAN 10): instant crash
Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:(XEN) d3v0 Unhandled SMC/HVC: 0x84000050

(XEN) d3v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d3v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 3 to 4 frames

Quoted 5 lines
Quoted 5 lines

------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

Quoted 9 lines
Quoted 2 lines

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

O.k., let's try to break that issue down.

Firstly, how can I get more information on why the Xen watchdog triggers? Is there documentation? Are there any logs? I couldn't find anything useful with my search skills.

After some delay, I have picked up the Raspberry Pi again, built Xen 4.19-unstable, with the same result: Reboot of the complete system after the Dom0 watchdog triggering when accessing the Zabbix content on a webserver on DomU.

I still would like to find out what's going wrong here, but I have no idea what to do. I'd appreciate any hint.

Not knowing if it helps, I added Xen logs from boot until Dom0 crash/reboot below.

Loading Xen xen ...
Loading Linux 6.1.0-17-arm64 ...
Loading initial ramdisk ...
Using modules provided by bootloader in FDT
Xen 4.19-unstable (c/s Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty) EFI
loader
Xen 4.19-unstable
(XEN) Xen version 4.19-unstable ([email protected]) (gcc (Debian 12.2.0-

14) 12.2.0) debug=y Sun Jan 14 21:46:34 CET 2024
(XEN) Latest ChangeSet: Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty (XEN) build-id: babb03cb6107fc46f7d8969142ccd6772a1133c3
(XEN) Console output is synchronous.
(XEN) Processor: 00000000410fd083: "ARM Limited", variant: 0x0, part 0xd08,rev 0

                                x3

(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: 0000000000001124 0000000000000000
(XEN)   ISA Features:  0000000000010000 0000000000000000

(XEN) 32-bit Execution:
(XEN) Processor Features: 0000000000000131:0000000000011011
(XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN) Extensions: GenericTimer Security

(XEN)   Debug Features: 0000000003010066
(XEN)   Auxiliary Features: 0000000000000000
(XEN)   Memory Model Features: 0000000010201105 0000000040000000

(XEN) 0000000001260000 0000000002102211
(XEN) ISA Features: 0000000002101110 0000000013112111 0000000021232042
(XEN) 0000000001112131 0000000000011142 0000000000010001
(XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) ACPI: GICC (acpi_id[0x0000] address[0xff842000] MPIDR[0x0] enabled) (XEN) ACPI: GICC (acpi_id[0x0001] address[0xff842000] MPIDR[0x1] enabled) (XEN) ACPI: GICC (acpi_id[0x0002] address[0xff842000] MPIDR[0x2] enabled) (XEN) ACPI: GICC (acpi_id[0x0003] address[0xff842000] MPIDR[0x3] enabled) (XEN) 4 CPUs enabled, 4 CPUs total
(XEN) SMP: Allowing 4 CPUs
(XEN) enabled workaround for: ARM erratum 1319537
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 54000 KHz (XEN) GICv2 initialization:

(XEN)         gic_dist_addr=00000000ff841000
(XEN)         gic_cpu_addr=00000000ff842000
(XEN)         gic_hyp_addr=00000000ff844000
(XEN)         gic_vcpu_addr=00000000ff846000
(XEN)         gic_maintenance_irq=25

(XEN) GICv2: 256 lines, 4 cpus, secure (IID 0200143b). (XEN) XSM Framework v1.0.1 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2) (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 32 KiB.
(XEN) CPU0: Guest atomics will try 16 times before pausing the domain (XEN) Bringing up CPU1
(XEN) CPU1: Guest atomics will try 16 times before pausing the domain (XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU2: Guest atomics will try 13 times before pausing the domain (XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU3: Guest atomics will try 16 times before pausing the domain (XEN) Brought up 4 CPUs
(XEN) CPU 3 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 44-bit IPA with 44-bit PA and 8-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x0000000080043594 (XEN) Scheduling granularity: cpu, 1 CPU per sched-resource (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN) First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000a00002ee0b0 -> 00000a00002ef250
(XEN) CPU2 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU1 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU3 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU0 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 0000000030ef7000 (XEN) Loading ramdisk from boot module @ 000000002ee6d000 (XEN) Allocating 1:1 mappings totalling 1024MB for dom0:
(XEN) BANK[0] 0x00000040000000-0x00000080000000 (1024MB) (XEN) Grant table range: 0x0000002eceb000-0x0000002ed2b000 (XEN) Allocating PPI 16 for event channel interrupt (XEN) Loading zImage from 0000000030ef7000 to 0000000040000000-0000000041f1c7c0
(XEN) Loading d0 initrd from 000000002ee6d000 to 0x0000000048200000-0x000000004a

                                                    288c22

(XEN) Loading d0 DTB to 0x0000000048000000-0x00000000480002c3 (XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *************************************************** (XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line. (XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) *************************************************** (XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) Freed 376kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v1: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v2: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v3: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d1v0 Unhandled SMC/HVC: 0x84000050
(XEN) d1v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d1v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d1v0 Expanding d1 grant table from 1 to 2 frames
(XEN) gnttab_mark_dirty not implemented yet
(XEN) d2v0 Unhandled SMC/HVC: 0x84000050
(XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d2v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Quoted 8 lines

(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 3 to 4 frames
(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

I'm unsure whose attention to draw to this report.

Quoted 8 lines

This might be a scheduler issue since the watchdog timer is triggering.

This might be an ACPI issue as ACPI is in use here.

This might be an ARM Linux kernel issue.

In the end this is someone running into trouble with Xen on an ARM device. Yet despite bringing up the issue hasn't gotten any help...

Hey Elliot,

Thanks for raising the visibility of this. I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are. "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

I don't see anything suspicious WRT the scheduler, but a simple way to test that would be to set the scheduler to credit1 and see if that changes things.

-George

#5 lore raw

Hi,

will try to explain some of the messages here after but I am not sure of the reason
of the crash so I will just set some pointers...

Quoted 287 lines · George Dunlap
Quoted 284 lines · Elliott Mitchell
Quoted 282 lines · Paul Leiber

Am 22.10.2023 um 07:42 schrieb Paul Leiber:

Quoted 121 lines

Am 13.10.2023 um 20:56 schrieb Paul Leiber:

Quoted 120 lines

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:

bridge_stp off      # dont use STP (spanning tree proto)
bridge_waitport 0   # dont wait for port to be available
bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes
Logging enabcm6e4ei0.10 (VLAN 10): instant crash
Logging enabcm6e4ei0.20 (VLAN 20): no crashes
Logging xenbr0 (on VLAN 10): instant crash
Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:(XEN) d3v0 Unhandled SMC/HVC: 0x84000050

(XEN) d3v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d3v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 3 to 4 frames

Quoted 5 lines
Quoted 5 lines

------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

Quoted 9 lines
Quoted 2 lines

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

O.k., let's try to break that issue down.

Firstly, how can I get more information on why the Xen watchdog triggers? Is there documentation? Are there any logs? I couldn't find anything useful with my search skills.

After some delay, I have picked up the Raspberry Pi again, built Xen 4.19-unstable, with the same result: Reboot of the complete system after the Dom0 watchdog triggering when accessing the Zabbix content on a webserver on DomU.

I still would like to find out what's going wrong here, but I have no idea what to do. I'd appreciate any hint.

Not knowing if it helps, I added Xen logs from boot until Dom0 crash/reboot below.

Loading Xen xen ...
Loading Linux 6.1.0-17-arm64 ...
Loading initial ramdisk ...
Using modules provided by bootloader in FDT
Xen 4.19-unstable (c/s Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty) EFI
loader
Xen 4.19-unstable
(XEN) Xen version 4.19-unstable ([email protected]) (gcc (Debian 12.2.0-

14) 12.2.0) debug=y Sun Jan 14 21:46:34 CET 2024
(XEN) Latest ChangeSet: Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty (XEN) build-id: babb03cb6107fc46f7d8969142ccd6772a1133c3
(XEN) Console output is synchronous.
(XEN) Processor: 00000000410fd083: "ARM Limited", variant: 0x0, part 0xd08,rev 0

                               x3

(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: 0000000000001124 0000000000000000
(XEN)   ISA Features:  0000000000010000 0000000000000000

(XEN) 32-bit Execution:
(XEN) Processor Features: 0000000000000131:0000000000011011
(XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN) Extensions: GenericTimer Security

(XEN)   Debug Features: 0000000003010066
(XEN)   Auxiliary Features: 0000000000000000
(XEN)   Memory Model Features: 0000000010201105 0000000040000000

(XEN) 0000000001260000 0000000002102211
(XEN) ISA Features: 0000000002101110 0000000013112111 0000000021232042
(XEN) 0000000001112131 0000000000011142 0000000000010001
(XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) ACPI: GICC (acpi_id[0x0000] address[0xff842000] MPIDR[0x0] enabled) (XEN) ACPI: GICC (acpi_id[0x0001] address[0xff842000] MPIDR[0x1] enabled) (XEN) ACPI: GICC (acpi_id[0x0002] address[0xff842000] MPIDR[0x2] enabled) (XEN) ACPI: GICC (acpi_id[0x0003] address[0xff842000] MPIDR[0x3] enabled) (XEN) 4 CPUs enabled, 4 CPUs total
(XEN) SMP: Allowing 4 CPUs
(XEN) enabled workaround for: ARM erratum 1319537
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 54000 KHz (XEN) GICv2 initialization:

(XEN)         gic_dist_addr=00000000ff841000
(XEN)         gic_cpu_addr=00000000ff842000
(XEN)         gic_hyp_addr=00000000ff844000
(XEN)         gic_vcpu_addr=00000000ff846000
(XEN)         gic_maintenance_irq=25

(XEN) GICv2: 256 lines, 4 cpus, secure (IID 0200143b). (XEN) XSM Framework v1.0.1 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2) (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 32 KiB.
(XEN) CPU0: Guest atomics will try 16 times before pausing the domain (XEN) Bringing up CPU1
(XEN) CPU1: Guest atomics will try 16 times before pausing the domain (XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU2: Guest atomics will try 13 times before pausing the domain (XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU3: Guest atomics will try 16 times before pausing the domain (XEN) Brought up 4 CPUs
(XEN) CPU 3 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 44-bit IPA with 44-bit PA and 8-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x0000000080043594 (XEN) Scheduling granularity: cpu, 1 CPU per sched-resource (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN) First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000a00002ee0b0 -> 00000a00002ef250
(XEN) CPU2 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU1 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU3 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU0 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 0000000030ef7000 (XEN) Loading ramdisk from boot module @ 000000002ee6d000 (XEN) Allocating 1:1 mappings totalling 1024MB for dom0:
(XEN) BANK[0] 0x00000040000000-0x00000080000000 (1024MB) (XEN) Grant table range: 0x0000002eceb000-0x0000002ed2b000 (XEN) Allocating PPI 16 for event channel interrupt (XEN) Loading zImage from 0000000030ef7000 to 0000000040000000-0000000041f1c7c0
(XEN) Loading d0 initrd from 000000002ee6d000 to 0x0000000048200000-0x000000004a

                                                   288c22

(XEN) Loading d0 DTB to 0x0000000048000000-0x00000000480002c3 (XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *************************************************** (XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) *************************************************** (XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) Freed 376kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01

This means Linux is trying to do some kind of smc call which is not handled. I will highly suggest to investigate here as it could really be some platform specific calls trying to enable some clocks.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v1: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v2: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v3: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Those can be ignored. This is Linux writing to some GIC registers we do not emulate so we warn that those are ignored. Those messages are present on all arm targets when the log level of Xen is high.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) d1v0 Unhandled SMC/HVC: 0x84000050
(XEN) d1v0 Unhandled SMC/HVC: 0x8600ff01

Same as upper done on a different core

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) d1v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Can be ignored as explained earlier

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) common/grant_table.c:1909:d1v0 Expanding d1 grant table from 1 to 2 frames

Those are internal debug messages to Xen and can be ignored (they are present on most arm targets).

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) gnttab_mark_dirty not implemented yet

Can be ignored to

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) d2v0 Unhandled SMC/HVC: 0x84000050
(XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01

Same as upper on a different core

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) d2v0: vGICD: unhandled word write 0x000000

Same as upper on a different core

Quoted 21 lines
Quoted 12 lines
Quoted 9 lines

ffffffff to ICACTIVER0
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 3 to 4 frames
(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

I'm unsure whose attention to draw to this report.

Quoted 8 lines

This might be a scheduler issue since the watchdog timer is triggering.

This might be an ACPI issue as ACPI is in use here.

This might be an ARM Linux kernel issue.

In the end this is someone running into trouble with Xen on an ARM device. Yet despite bringing up the issue hasn't gotten any help...

Quoted 7 lines

Hey Elliot,

Thanks for raising the visibility of this. I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are. "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

I tried to explain those and they are not the reason of the problem.

Quoted 4 lines

I don't see anything suspicious WRT the scheduler, but a simple way to test that would be to set the scheduler to credit1 and see if that changes things.

I would definitely suggest to investigate the 2 unhandled SMC/HVC calls as if one of them is to enable some clock it could explain why the system is getting stuck at some point (maybe waiting for something to be started).

Other than that i did not see anything that could point to an obvious issue.

Regards
Bertrand

Quoted 2 lines

-George

#6 lore raw

Elliot, Bertrand, George: Thanks for your replies.

Am 23.01.2024 um 09:29 schrieb Bertrand Marquis:

Quoted 341 lines

Hi,

will try to explain some of the messages here after but I am not sure of the reason
of the crash so I will just set some pointers...

Quoted 287 lines · George Dunlap
Quoted 284 lines · Elliott Mitchell
Quoted 282 lines · Paul Leiber

Am 22.10.2023 um 07:42 schrieb Paul Leiber:

Quoted 121 lines

Am 13.10.2023 um 20:56 schrieb Paul Leiber:

Quoted 120 lines

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:

bridge_stp off      # dont use STP (spanning tree proto)
bridge_waitport 0   # dont wait for port to be available
bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes
Logging enabcm6e4ei0.10 (VLAN 10): instant crash
Logging enabcm6e4ei0.20 (VLAN 20): no crashes
Logging xenbr0 (on VLAN 10): instant crash
Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:(XEN) d3v0 Unhandled SMC/HVC: 0x84000050

(XEN) d3v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d3v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 3 to 4 frames

Quoted 5 lines
Quoted 5 lines

------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

Quoted 9 lines
Quoted 2 lines

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

O.k., let's try to break that issue down.

Firstly, how can I get more information on why the Xen watchdog triggers? Is there documentation? Are there any logs? I couldn't find anything useful with my search skills.

After some delay, I have picked up the Raspberry Pi again, built Xen 4.19-unstable, with the same result: Reboot of the complete system after the Dom0 watchdog triggering when accessing the Zabbix content on a webserver on DomU.

I still would like to find out what's going wrong here, but I have no idea what to do. I'd appreciate any hint.

Not knowing if it helps, I added Xen logs from boot until Dom0 crash/reboot below.

Loading Xen xen ...
Loading Linux 6.1.0-17-arm64 ...
Loading initial ramdisk ...
Using modules provided by bootloader in FDT
Xen 4.19-unstable (c/s Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty) EFI
loader
Xen 4.19-unstable
(XEN) Xen version 4.19-unstable ([email protected]) (gcc (Debian 12.2.0-

14) 12.2.0) debug=y Sun Jan 14 21:46:34 CET 2024
(XEN) Latest ChangeSet: Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty (XEN) build-id: babb03cb6107fc46f7d8969142ccd6772a1133c3
(XEN) Console output is synchronous.
(XEN) Processor: 00000000410fd083: "ARM Limited", variant: 0x0, part 0xd08,rev 0

                                x3

(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: 0000000000001124 0000000000000000
(XEN)   ISA Features:  0000000000010000 0000000000000000

(XEN) 32-bit Execution:
(XEN) Processor Features: 0000000000000131:0000000000011011
(XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN) Extensions: GenericTimer Security

(XEN)   Debug Features: 0000000003010066
(XEN)   Auxiliary Features: 0000000000000000
(XEN)   Memory Model Features: 0000000010201105 0000000040000000

(XEN) 0000000001260000 0000000002102211
(XEN) ISA Features: 0000000002101110 0000000013112111 0000000021232042
(XEN) 0000000001112131 0000000000011142 0000000000010001
(XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) ACPI: GICC (acpi_id[0x0000] address[0xff842000] MPIDR[0x0] enabled) (XEN) ACPI: GICC (acpi_id[0x0001] address[0xff842000] MPIDR[0x1] enabled) (XEN) ACPI: GICC (acpi_id[0x0002] address[0xff842000] MPIDR[0x2] enabled) (XEN) ACPI: GICC (acpi_id[0x0003] address[0xff842000] MPIDR[0x3] enabled) (XEN) 4 CPUs enabled, 4 CPUs total
(XEN) SMP: Allowing 4 CPUs
(XEN) enabled workaround for: ARM erratum 1319537
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 54000 KHz (XEN) GICv2 initialization:

(XEN)         gic_dist_addr=00000000ff841000
(XEN)         gic_cpu_addr=00000000ff842000
(XEN)         gic_hyp_addr=00000000ff844000
(XEN)         gic_vcpu_addr=00000000ff846000
(XEN)         gic_maintenance_irq=25

(XEN) GICv2: 256 lines, 4 cpus, secure (IID 0200143b). (XEN) XSM Framework v1.0.1 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2) (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 32 KiB.
(XEN) CPU0: Guest atomics will try 16 times before pausing the domain (XEN) Bringing up CPU1
(XEN) CPU1: Guest atomics will try 16 times before pausing the domain (XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU2: Guest atomics will try 13 times before pausing the domain (XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU3: Guest atomics will try 16 times before pausing the domain (XEN) Brought up 4 CPUs
(XEN) CPU 3 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 44-bit IPA with 44-bit PA and 8-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x0000000080043594 (XEN) Scheduling granularity: cpu, 1 CPU per sched-resource (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN) First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000a00002ee0b0 -> 00000a00002ef250
(XEN) CPU2 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU1 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU3 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU0 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 0000000030ef7000 (XEN) Loading ramdisk from boot module @ 000000002ee6d000 (XEN) Allocating 1:1 mappings totalling 1024MB for dom0:
(XEN) BANK[0] 0x00000040000000-0x00000080000000 (1024MB) (XEN) Grant table range: 0x0000002eceb000-0x0000002ed2b000 (XEN) Allocating PPI 16 for event channel interrupt (XEN) Loading zImage from 0000000030ef7000 to 0000000040000000-0000000041f1c7c0
(XEN) Loading d0 initrd from 000000002ee6d000 to 0x0000000048200000-0x000000004a

                                                    288c22

(XEN) Loading d0 DTB to 0x0000000048000000-0x00000000480002c3 (XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *************************************************** (XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) *************************************************** (XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) Freed 376kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01

This means Linux is trying to do some kind of smc call which is not handled. I will highly suggest to investigate here as it could really be some platform specific calls trying to enable some clocks.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v1: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v2: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v3: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Those can be ignored. This is Linux writing to some GIC registers we do not emulate so we warn that those are ignored. Those messages are present on all arm targets when the log level of Xen is high.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) d1v0 Unhandled SMC/HVC: 0x84000050
(XEN) d1v0 Unhandled SMC/HVC: 0x8600ff01

Same as upper done on a different core

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) d1v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Can be ignored as explained earlier

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) common/grant_table.c:1909:d1v0 Expanding d1 grant table from 1 to 2 frames

Those are internal debug messages to Xen and can be ignored (they are present on most arm targets).

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) gnttab_mark_dirty not implemented yet

Can be ignored to

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) d2v0 Unhandled SMC/HVC: 0x84000050
(XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01

Same as upper on a different core

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) d2v0: vGICD: unhandled word write 0x000000

Same as upper on a different core

Is this also relevant or not?

I couldn't identify this yet. There is a mailing list exchange that could be related:

https://lists.xenproject.org/archives/html/xen-devel/2021-09/msg00382.html

Although I'm a little bit puzzled because when comparing with the other messages, this log meassage seems to be missing some parts "vGICD: unhandled word write 0x000000" instead of "vGICD: unhandled word write 0x000000xxxxxxx to y"

Quoted 36 lines
Quoted 21 lines
Quoted 12 lines
Quoted 9 lines

ffffffff to ICACTIVER0
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 3 to 4 frames
(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

I'm unsure whose attention to draw to this report.

Quoted 8 lines

This might be a scheduler issue since the watchdog timer is triggering.

This might be an ACPI issue as ACPI is in use here.

This might be an ARM Linux kernel issue.

In the end this is someone running into trouble with Xen on an ARM device. Yet despite bringing up the issue hasn't gotten any help...

Quoted 7 lines

Hey Elliot,

Thanks for raising the visibility of this. I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are. "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

I tried to explain those and they are not the reason of the problem.

Quoted 4 lines

I don't see anything suspicious WRT the scheduler, but a simple way to test that would be to set the scheduler to credit1 and see if that changes things.

Quoted 5 lines

I would definitely suggest to investigate the 2 unhandled SMC/HVC calls as if one of them is to enable some clock it could explain why the system is getting stuck at some point (maybe waiting for something to be started).

Other than that i did not see anything that could point to an obvious issue.

I'll try to use credit1 scheduler and report results when I've got some more time, just to make sure.

From what I could find out in ARM documentation, the unhandled calls seem to be the following:

0x84000050 = TRNG_VERSION, returns the implemented TRNG (True Random Number Generator) ABI version [1] 0x8600ff01 = Call UID Query for Vendor Specific Hypervisor Service, Returns a unique identifier of the service provider [2]

Does this make sense?

What could be next steps?

Thanks,

Paul

[1] https://developer.arm.com/documentation/den0098/latest/
[2] https://documentation-service.arm.com/static/628b755ce3c4322a76af56de?token=

#7 lore raw

Hi Paul,

Please keep me in CC so that i can more easily find out that you answered me :-)

Quoted 330 lines · Paul Leiber

Elliot, Bertrand, George: Thanks for your replies.

Am 23.01.2024 um 09:29 schrieb Bertrand Marquis:

Quoted 325 lines

Hi,
will try to explain some of the messages here after but I am not sure of the reason
of the crash so I will just set some pointers...

Quoted 287 lines · George Dunlap
Quoted 284 lines · Elliott Mitchell
Quoted 282 lines · Paul Leiber

Am 22.10.2023 um 07:42 schrieb Paul Leiber:

Quoted 121 lines

Am 13.10.2023 um 20:56 schrieb Paul Leiber:

Quoted 120 lines

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:

bridge_stp off      # dont use STP (spanning tree proto)
bridge_waitport 0   # dont wait for port to be available
bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes
Logging enabcm6e4ei0.10 (VLAN 10): instant crash
Logging enabcm6e4ei0.20 (VLAN 20): no crashes
Logging xenbr0 (on VLAN 10): instant crash
Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:(XEN) d3v0 Unhandled SMC/HVC: 0x84000050

(XEN) d3v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d3v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 3 to 4 frames

Quoted 5 lines
Quoted 5 lines

------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

Quoted 9 lines
Quoted 2 lines

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

O.k., let's try to break that issue down.

Firstly, how can I get more information on why the Xen watchdog triggers? Is there documentation? Are there any logs? I couldn't find anything useful with my search skills.

After some delay, I have picked up the Raspberry Pi again, built Xen 4.19-unstable, with the same result: Reboot of the complete system after the Dom0 watchdog triggering when accessing the Zabbix content on a webserver on DomU.

I still would like to find out what's going wrong here, but I have no idea what to do. I'd appreciate any hint.

Not knowing if it helps, I added Xen logs from boot until Dom0 crash/reboot below.

Loading Xen xen ...
Loading Linux 6.1.0-17-arm64 ...
Loading initial ramdisk ...
Using modules provided by bootloader in FDT
Xen 4.19-unstable (c/s Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty) EFI
loader
Xen 4.19-unstable
(XEN) Xen version 4.19-unstable ([email protected]) (gcc (Debian 12.2.0-

14) 12.2.0) debug=y Sun Jan 14 21:46:34 CET 2024
(XEN) Latest ChangeSet: Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty (XEN) build-id: babb03cb6107fc46f7d8969142ccd6772a1133c3
(XEN) Console output is synchronous.
(XEN) Processor: 00000000410fd083: "ARM Limited", variant: 0x0, part 0xd08,rev 0

                               x3

(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: 0000000000001124 0000000000000000
(XEN)   ISA Features:  0000000000010000 0000000000000000

(XEN) 32-bit Execution:
(XEN) Processor Features: 0000000000000131:0000000000011011
(XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN) Extensions: GenericTimer Security

(XEN)   Debug Features: 0000000003010066
(XEN)   Auxiliary Features: 0000000000000000
(XEN)   Memory Model Features: 0000000010201105 0000000040000000

(XEN) 0000000001260000 0000000002102211
(XEN) ISA Features: 0000000002101110 0000000013112111 0000000021232042
(XEN) 0000000001112131 0000000000011142 0000000000010001
(XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) ACPI: GICC (acpi_id[0x0000] address[0xff842000] MPIDR[0x0] enabled) (XEN) ACPI: GICC (acpi_id[0x0001] address[0xff842000] MPIDR[0x1] enabled) (XEN) ACPI: GICC (acpi_id[0x0002] address[0xff842000] MPIDR[0x2] enabled) (XEN) ACPI: GICC (acpi_id[0x0003] address[0xff842000] MPIDR[0x3] enabled) (XEN) 4 CPUs enabled, 4 CPUs total
(XEN) SMP: Allowing 4 CPUs
(XEN) enabled workaround for: ARM erratum 1319537
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 54000 KHz (XEN) GICv2 initialization:

(XEN)         gic_dist_addr=00000000ff841000
(XEN)         gic_cpu_addr=00000000ff842000
(XEN)         gic_hyp_addr=00000000ff844000
(XEN)         gic_vcpu_addr=00000000ff846000
(XEN)         gic_maintenance_irq=25

(XEN) GICv2: 256 lines, 4 cpus, secure (IID 0200143b). (XEN) XSM Framework v1.0.1 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2) (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 32 KiB.
(XEN) CPU0: Guest atomics will try 16 times before pausing the domain (XEN) Bringing up CPU1
(XEN) CPU1: Guest atomics will try 16 times before pausing the domain (XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU2: Guest atomics will try 13 times before pausing the domain (XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU3: Guest atomics will try 16 times before pausing the domain (XEN) Brought up 4 CPUs
(XEN) CPU 3 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 44-bit IPA with 44-bit PA and 8-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x0000000080043594 (XEN) Scheduling granularity: cpu, 1 CPU per sched-resource (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN) First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000a00002ee0b0 -> 00000a00002ef250
(XEN) CPU2 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU1 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU3 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU0 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 0000000030ef7000 (XEN) Loading ramdisk from boot module @ 000000002ee6d000 (XEN) Allocating 1:1 mappings totalling 1024MB for dom0:
(XEN) BANK[0] 0x00000040000000-0x00000080000000 (1024MB) (XEN) Grant table range: 0x0000002eceb000-0x0000002ed2b000 (XEN) Allocating PPI 16 for event channel interrupt (XEN) Loading zImage from 0000000030ef7000 to 0000000040000000-0000000041f1c7c0
(XEN) Loading d0 initrd from 000000002ee6d000 to 0x0000000048200000-0x000000004a

                                                   288c22

(XEN) Loading d0 DTB to 0x0000000048000000-0x00000000480002c3 (XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *************************************************** (XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) *************************************************** (XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) Freed 376kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01

This means Linux is trying to do some kind of smc call which is not handled. I will highly suggest to investigate here as it could really be some platform specific calls trying to enable some clocks.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v1: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v2: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v3: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Those can be ignored. This is Linux writing to some GIC registers we do not emulate so we warn that those are ignored. Those messages are present on all arm targets when the log level of Xen is high.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) d1v0 Unhandled SMC/HVC: 0x84000050
(XEN) d1v0 Unhandled SMC/HVC: 0x8600ff01

Same as upper done on a different core

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) d1v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Can be ignored as explained earlier

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) common/grant_table.c:1909:d1v0 Expanding d1 grant table from 1 to 2 frames

Those are internal debug messages to Xen and can be ignored (they are present on most arm targets).

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) gnttab_mark_dirty not implemented yet

Quoted 8 lines
Quoted 6 lines

Can be ignored to

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) d2v0 Unhandled SMC/HVC: 0x84000050
(XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01

Same as upper on a different core

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) d2v0: vGICD: unhandled word write 0x000000

Same as upper on a different core

Is this also relevant or not?

This one is weird and i cannot identify where it could come from as all printk in vGICD have something after. Maybe specific to your version of Xen.
But I would say you can ignore.

Quoted 6 lines

I couldn't identify this yet. There is a mailing list exchange that could be related:

https://lists.xenproject.org/archives/html/xen-devel/2021-09/msg00382.html

Although I'm a little bit puzzled because when comparing with the other messages, this log meassage seems to be missing some parts "vGICD: unhandled word write 0x000000" instead of "vGICD: unhandled word write 0x000000xxxxxxx to y"

Agree, could be that something is lost in the console.

Quoted 34 lines
Quoted 34 lines
Quoted 22 lines
Quoted 13 lines
Quoted 10 lines

ffffffff to ICACTIVER0
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 3 to 4 frames
(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

I'm unsure whose attention to draw to this report.

Quoted 8 lines

This might be a scheduler issue since the watchdog timer is triggering.

This might be an ACPI issue as ACPI is in use here.

This might be an ARM Linux kernel issue.

In the end this is someone running into trouble with Xen on an ARM device. Yet despite bringing up the issue hasn't gotten any help...

Quoted 7 lines

Hey Elliot,

Thanks for raising the visibility of this. I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are. "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

I tried to explain those and they are not the reason of the problem.

Quoted 4 lines

I don't see anything suspicious WRT the scheduler, but a simple way to test that would be to set the scheduler to credit1 and see if that changes things.

Quoted 6 lines
Quoted 4 lines

I would definitely suggest to investigate the 2 unhandled SMC/HVC calls as if one of them is to enable some clock it could explain why the system is getting stuck at some point (maybe waiting for something to be started). Other than that i did not see anything that could point to an obvious issue.

I'll try to use credit1 scheduler and report results when I've got some more time, just to make sure.

This is not related to the scheduler. When i said clock i meant linux trying to configure the clock frequency or voltage of a specific peripheral.

Quoted 4 lines

From what I could find out in ARM documentation, the unhandled calls seem to be the following:

0x84000050 = TRNG_VERSION, returns the implemented TRNG (True Random Number Generator) ABI version [1]

Could be the origin but then you can ignore i would say, linux might fall back to an other way.

Quoted 1 line

0x8600ff01 = Call UID Query for Vendor Specific Hypervisor Service, Returns a unique identifier of the service provider [2]

I would say this one is the problem and you would need to dig in Linux to understand what vendor specific call is being made. Linux might expect that this one is done but Xen is ignoring it.
So Linux could just be waiting for something that was actually not started at all.

Quoted 4 lines

Does this make sense?

What could be next steps?

I would say understand in Linux who is generating this call and try to disable in the linux configuration whatever clock/voltage/performance driver is doing this call.

Regards
Bertrand

Quoted 7 lines

Thanks,

Paul

[1] https://developer.arm.com/documentation/den0098/latest/
[2] https://documentation-service.arm.com/static/628b755ce3c4322a76af56de?token=

#8 lore raw

Am 25.01.2024 um 09:12 schrieb Bertrand Marquis:

Quoted 26 lines

Hi Paul,

Please keep me in CC so that i can more easily find out that you answered me :-)

Quoted 22 lines · Paul Leiber

Elliot, Bertrand, George: Thanks for your replies.

Am 23.01.2024 um 09:29 schrieb Bertrand Marquis:

Quoted 17 lines

Hi,
will try to explain some of the messages here after but I am not sure of the reason
of the crash so I will just set some pointers...

Quoted 14 lines · George Dunlap
Quoted 11 lines · Elliott Mitchell
Quoted 9 lines · Paul Leiber
Quoted 9 lines
Quoted 9 lines

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

[snip]

Quoted 231 lines
Quoted 164 lines
Quoted 164 lines
Quoted 129 lines
Quoted 129 lines
Quoted 129 lines

Not knowing if it helps, I added Xen logs from boot until Dom0 crash/reboot below.

Loading Xen xen ...
Loading Linux 6.1.0-17-arm64 ...
Loading initial ramdisk ...
Using modules provided by bootloader in FDT
Xen 4.19-unstable (c/s Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty) EFI
loader
Xen 4.19-unstable
(XEN) Xen version 4.19-unstable ([email protected]) (gcc (Debian 12.2.0-

14) 12.2.0) debug=y Sun Jan 14 21:46:34 CET 2024
(XEN) Latest ChangeSet: Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty (XEN) build-id: babb03cb6107fc46f7d8969142ccd6772a1133c3
(XEN) Console output is synchronous.
(XEN) Processor: 00000000410fd083: "ARM Limited", variant: 0x0, part 0xd08,rev 0

                                x3

(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: 0000000000001124 0000000000000000
(XEN)   ISA Features:  0000000000010000 0000000000000000

(XEN) 32-bit Execution:
(XEN) Processor Features: 0000000000000131:0000000000011011
(XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN) Extensions: GenericTimer Security

(XEN)   Debug Features: 0000000003010066
(XEN)   Auxiliary Features: 0000000000000000
(XEN)   Memory Model Features: 0000000010201105 0000000040000000

(XEN) 0000000001260000 0000000002102211
(XEN) ISA Features: 0000000002101110 0000000013112111 0000000021232042
(XEN) 0000000001112131 0000000000011142 0000000000010001
(XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) ACPI: GICC (acpi_id[0x0000] address[0xff842000] MPIDR[0x0] enabled) (XEN) ACPI: GICC (acpi_id[0x0001] address[0xff842000] MPIDR[0x1] enabled) (XEN) ACPI: GICC (acpi_id[0x0002] address[0xff842000] MPIDR[0x2] enabled) (XEN) ACPI: GICC (acpi_id[0x0003] address[0xff842000] MPIDR[0x3] enabled) (XEN) 4 CPUs enabled, 4 CPUs total
(XEN) SMP: Allowing 4 CPUs
(XEN) enabled workaround for: ARM erratum 1319537
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 54000 KHz (XEN) GICv2 initialization:

(XEN)         gic_dist_addr=00000000ff841000
(XEN)         gic_cpu_addr=00000000ff842000
(XEN)         gic_hyp_addr=00000000ff844000
(XEN)         gic_vcpu_addr=00000000ff846000
(XEN)         gic_maintenance_irq=25

(XEN) GICv2: 256 lines, 4 cpus, secure (IID 0200143b). (XEN) XSM Framework v1.0.1 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2) (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 32 KiB.
(XEN) CPU0: Guest atomics will try 16 times before pausing the domain (XEN) Bringing up CPU1
(XEN) CPU1: Guest atomics will try 16 times before pausing the domain (XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU2: Guest atomics will try 13 times before pausing the domain (XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU3: Guest atomics will try 16 times before pausing the domain (XEN) Brought up 4 CPUs
(XEN) CPU 3 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 44-bit IPA with 44-bit PA and 8-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x0000000080043594 (XEN) Scheduling granularity: cpu, 1 CPU per sched-resource (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN) First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000a00002ee0b0 -> 00000a00002ef250
(XEN) CPU2 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU1 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU3 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU0 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 0000000030ef7000 (XEN) Loading ramdisk from boot module @ 000000002ee6d000 (XEN) Allocating 1:1 mappings totalling 1024MB for dom0:
(XEN) BANK[0] 0x00000040000000-0x00000080000000 (1024MB) (XEN) Grant table range: 0x0000002eceb000-0x0000002ed2b000 (XEN) Allocating PPI 16 for event channel interrupt (XEN) Loading zImage from 0000000030ef7000 to 0000000040000000-0000000041f1c7c0
(XEN) Loading d0 initrd from 000000002ee6d000 to 0x0000000048200000-0x000000004a

                                                    288c22

(XEN) Loading d0 DTB to 0x0000000048000000-0x00000000480002c3 (XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *************************************************** (XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) *************************************************** (XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) Freed 376kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01

This means Linux is trying to do some kind of smc call which is not handled. I will highly suggest to investigate here as it could really be some platform specific calls trying to enable some clocks.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v1: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v2: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v3: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Those can be ignored. This is Linux writing to some GIC registers we do not emulate so we warn that those are ignored. Those messages are present on all arm targets when the log level of Xen is high.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) d1v0 Unhandled SMC/HVC: 0x84000050
(XEN) d1v0 Unhandled SMC/HVC: 0x8600ff01

Same as upper done on a different core

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) d1v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Can be ignored as explained earlier

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) common/grant_table.c:1909:d1v0 Expanding d1 grant table from 1 to 2 frames

Those are internal debug messages to Xen and can be ignored (they are present on most arm targets).

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) gnttab_mark_dirty not implemented yet

Quoted 8 lines
Quoted 6 lines

Can be ignored to

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(XEN) d2v0 Unhandled SMC/HVC: 0x84000050
(XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01

Same as upper on a different core

Quoted 1 line
Quoted 1 line
Quoted 1 line

(XEN) d2v0: vGICD: unhandled word write 0x000000

Same as upper on a different core

Is this also relevant or not?

This one is weird and i cannot identify where it could come from as all printk in vGICD have something after. Maybe specific to your version of Xen.
But I would say you can ignore.

Quoted 6 lines

I couldn't identify this yet. There is a mailing list exchange that could be related:

https://lists.xenproject.org/archives/html/xen-devel/2021-09/msg00382.html

Although I'm a little bit puzzled because when comparing with the other messages, this log meassage seems to be missing some parts "vGICD: unhandled word write 0x000000" instead of "vGICD: unhandled word write 0x000000xxxxxxx to y"

Agree, could be that something is lost in the console.

Quoted 34 lines
Quoted 34 lines
Quoted 22 lines
Quoted 13 lines
Quoted 10 lines

ffffffff to ICACTIVER0
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 3 to 4 frames
(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

I'm unsure whose attention to draw to this report.

Quoted 8 lines

This might be a scheduler issue since the watchdog timer is triggering.

This might be an ACPI issue as ACPI is in use here.

This might be an ARM Linux kernel issue.

In the end this is someone running into trouble with Xen on an ARM device. Yet despite bringing up the issue hasn't gotten any help...

Quoted 7 lines

Hey Elliot,

Thanks for raising the visibility of this. I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are. "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

I tried to explain those and they are not the reason of the problem.

Quoted 4 lines

I don't see anything suspicious WRT the scheduler, but a simple way to test that would be to set the scheduler to credit1 and see if that changes things.

Quoted 6 lines
Quoted 4 lines

I would definitely suggest to investigate the 2 unhandled SMC/HVC calls as if one of them is to enable some clock it could explain why the system is getting stuck at some point (maybe waiting for something to be started). Other than that i did not see anything that could point to an obvious issue.

I'll try to use credit1 scheduler and report results when I've got some more time, just to make sure.

This is not related to the scheduler. When i said clock i meant linux trying to configure the clock frequency or voltage of a specific peripheral.

Quoted 1 line
Quoted 5 lines
Quoted 3 lines

From what I could find out in ARM documentation, the unhandled calls seem to be the following:

0x84000050 = TRNG_VERSION, returns the implemented TRNG (True Random Number Generator) ABI version [1]

Could be the origin but then you can ignore i would say, linux might fall back to an other way.

The SMC code 0x84000050 is defined in include/linux/arm-smccc.h as constant ARM_SMCCC_TRNG_VERSION. This constant is used in six source files [1]. Two source files are smccc.h itself:

include/linux/arm-smccc.h
tools/include/linux/arm-smccc.h).

Three have to do with KVM:

arch/arm64/kvm/trng.c
arch/arm64/kvm/hypercalls.c
tools/testing/selftests/kvm/aarch64/hypercalls.c

One sticks out as not KVM related:

arch/arm64/include/asm/archrandom.h

Quoted 7 lines
Quoted 1 line

0x8600ff01 = Call UID Query for Vendor Specific Hypervisor Service, Returns a unique identifier of the service provider [2]

I would say this one is the problem and you would need to dig in Linux to understand what vendor specific call is being made. Linux might expect that this one is done but Xen is ignoring it.
So Linux could just be waiting for something that was actually not started at all.

Quoted 1 line
Quoted 6 lines
Quoted 3 lines

Does this make sense?

What could be next steps?

I would say understand in Linux who is generating this call and try to disable in the linux configuration whatever clock/voltage/performance driver is doing this call.

The SMC code 0x8600ff01 is defined in include/linux/arm-smccc.h as constant ARM_SMCCC_VENDOR_HYP_CALL_UID_FUNC_ID. This constant is also used in six source files [2], 2 of which again are smccc.h itself

include/linux/arm-smccc.h
tools/include/linux/arm-smccc.h

One is KVM documentation:

Documentation/virt/kvm/arm/hypercalls.rst

The three remaining again have to do with KVM:

drivers/firmware/smccc/kvm_guest.c
arch/arm64/kvm/hypercalls.c
tools/testing/selftests/kvm/aarch64/hypercalls.c

I wouldn't expect that anything KVM related could be the cause for the Xen watchdog triggering. If this is right, this would leave us with the TRNG trace in arch/arm64/include/asm/archrandom.h. Or am I wrong, and some KVM component can also be the cause?

Also, what still puzzles me is the fact that the Xen watchdog is only triggered when multiple VLANs are in use. Where could the connection to networking be?

Best regards,

Paul

[1] https://github.com/search?q=repo%3Atorvalds%2Flinux+ARM_SMCCC_TRNG_VERSION&type=code
[2] https://github.com/search?q=repo%3Atorvalds/linux%20ARM_SMCCC_VENDOR_HYP_CALL_UID_FUNC_ID&type=code

#9 lore raw
In reply to Bertrand Marquis
Quoted 6 lines · Bertrand Marquis
Quoted 5 lines

Thanks for raising the visibility of this. I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are. "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

I tried to explain those and they are not the reason of the problem.

The "gnttab_mark_dirty not implemented yet" printk() should be deleted.

It's /* TODO - logdirty support */ in a form that is actively unhelpful to people using a debug hypervisor to debug other things.

~Andrew

#10 lore raw

Hi Andrew,

Quoted 8 lines · Andrew Cooper
Quoted 5 lines · Bertrand Marquis
Quoted 5 lines

Thanks for raising the visibility of this. I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are. "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

Quoted 6 lines
Quoted 1 line

I tried to explain those and they are not the reason of the problem.

The "gnttab_mark_dirty not implemented yet" printk() should be deleted.

It's /* TODO - logdirty support */ in a form that is actively unhelpful to people using a debug hypervisor to debug other things.

Could make sense.
It is true that this one appears in all debug log but it might not be very useful in fact.

@julien and Stefano: what would you say ?

Bertrand

Quoted 2 lines

~Andrew

#11 lore raw

Hi Bertrand,

Quoted 14 lines · Bertrand Marquis

Hi Andrew,

Quoted 12 lines · Andrew Cooper
Quoted 6 lines · Bertrand Marquis
Quoted 5 lines

Thanks for raising the visibility of this. I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are. "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

I tried to explain those and they are not the reason of the problem.

The "gnttab_mark_dirty not implemented yet" printk() should be deleted.

Quoted 8 lines
Quoted 2 lines

It's /* TODO - logdirty support */ in a form that is actively unhelpful to people using a debug hypervisor to debug other things.

Could make sense.
It is true that this one appears in all debug log but it might not be very useful in fact.

@julien and Stefano: what would you say ?

I would be fine to replace the printk with a comment. I am happy to review it if someone wants to send a patch.

Cheers,

Signature · 1 line
Julien Grall
#12 lore raw
In reply to George Dunlap

Am 22.01.2024 um 11:46 schrieb George Dunlap:

Quoted 341 lines · Elliott Mitchell
Quoted 323 lines · Paul Leiber
Quoted 310 lines

Am 22.10.2023 um 07:42 schrieb Paul Leiber:

Quoted 121 lines

Am 13.10.2023 um 20:56 schrieb Paul Leiber:

Quoted 120 lines

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:

bridge_stp off      # dont use STP (spanning tree proto)
bridge_waitport 0   # dont wait for port to be available
bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes
Logging enabcm6e4ei0.10 (VLAN 10): instant crash
Logging enabcm6e4ei0.20 (VLAN 20): no crashes
Logging xenbr0 (on VLAN 10): instant crash
Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:(XEN) d3v0 Unhandled SMC/HVC: 0x84000050

(XEN) d3v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d3v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 3 to 4 frames

Quoted 5 lines
Quoted 5 lines

------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

Quoted 9 lines
Quoted 2 lines

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

O.k., let's try to break that issue down.

Firstly, how can I get more information on why the Xen watchdog triggers? Is there documentation? Are there any logs? I couldn't find anything useful with my search skills.

After some delay, I have picked up the Raspberry Pi again, built Xen 4.19-unstable, with the same result: Reboot of the complete system after the Dom0 watchdog triggering when accessing the Zabbix content on a webserver on DomU.

I still would like to find out what's going wrong here, but I have no idea what to do. I'd appreciate any hint.

Not knowing if it helps, I added Xen logs from boot until Dom0 crash/reboot below.

Loading Xen xen ...
Loading Linux 6.1.0-17-arm64 ...
Loading initial ramdisk ...
Using modules provided by bootloader in FDT
Xen 4.19-unstable (c/s Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty) EFI
loader
Xen 4.19-unstable
(XEN) Xen version 4.19-unstable ([email protected]) (gcc (Debian 12.2.0-

14) 12.2.0) debug=y Sun Jan 14 21:46:34 CET 2024
(XEN) Latest ChangeSet: Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty (XEN) build-id: babb03cb6107fc46f7d8969142ccd6772a1133c3
(XEN) Console output is synchronous.
(XEN) Processor: 00000000410fd083: "ARM Limited", variant: 0x0, part 0xd08,rev 0

                                 x3

(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: 0000000000001124 0000000000000000
(XEN)   ISA Features:  0000000000010000 0000000000000000

(XEN) 32-bit Execution:
(XEN) Processor Features: 0000000000000131:0000000000011011
(XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN) Extensions: GenericTimer Security

(XEN)   Debug Features: 0000000003010066
(XEN)   Auxiliary Features: 0000000000000000
(XEN)   Memory Model Features: 0000000010201105 0000000040000000

(XEN) 0000000001260000 0000000002102211
(XEN) ISA Features: 0000000002101110 0000000013112111 0000000021232042
(XEN) 0000000001112131 0000000000011142 0000000000010001
(XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) ACPI: GICC (acpi_id[0x0000] address[0xff842000] MPIDR[0x0] enabled) (XEN) ACPI: GICC (acpi_id[0x0001] address[0xff842000] MPIDR[0x1] enabled) (XEN) ACPI: GICC (acpi_id[0x0002] address[0xff842000] MPIDR[0x2] enabled) (XEN) ACPI: GICC (acpi_id[0x0003] address[0xff842000] MPIDR[0x3] enabled) (XEN) 4 CPUs enabled, 4 CPUs total
(XEN) SMP: Allowing 4 CPUs
(XEN) enabled workaround for: ARM erratum 1319537
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 54000 KHz (XEN) GICv2 initialization:

(XEN)         gic_dist_addr=00000000ff841000
(XEN)         gic_cpu_addr=00000000ff842000
(XEN)         gic_hyp_addr=00000000ff844000
(XEN)         gic_vcpu_addr=00000000ff846000
(XEN)         gic_maintenance_irq=25

(XEN) GICv2: 256 lines, 4 cpus, secure (IID 0200143b). (XEN) XSM Framework v1.0.1 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2) (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 32 KiB.
(XEN) CPU0: Guest atomics will try 16 times before pausing the domain (XEN) Bringing up CPU1
(XEN) CPU1: Guest atomics will try 16 times before pausing the domain (XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU2: Guest atomics will try 13 times before pausing the domain (XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU3: Guest atomics will try 16 times before pausing the domain (XEN) Brought up 4 CPUs
(XEN) CPU 3 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 44-bit IPA with 44-bit PA and 8-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x0000000080043594 (XEN) Scheduling granularity: cpu, 1 CPU per sched-resource (XEN) Initializing Credit2 scheduler

(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms

(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN) First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000a00002ee0b0 -> 00000a00002ef250
(XEN) CPU2 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU1 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU3 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU0 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 0000000030ef7000 (XEN) Loading ramdisk from boot module @ 000000002ee6d000 (XEN) Allocating 1:1 mappings totalling 1024MB for dom0:
(XEN) BANK[0] 0x00000040000000-0x00000080000000 (1024MB) (XEN) Grant table range: 0x0000002eceb000-0x0000002ed2b000 (XEN) Allocating PPI 16 for event channel interrupt (XEN) Loading zImage from 0000000030ef7000 to 0000000040000000-0000000041f1c7c0
(XEN) Loading d0 initrd from 000000002ee6d000 to 0x0000000048200000-0x000000004a

                                                     288c22

(XEN) Loading d0 DTB to 0x0000000048000000-0x00000000480002c3 (XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *************************************************** (XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line. (XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) *************************************************** (XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) Freed 376kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v1: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v2: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v3: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d1v0 Unhandled SMC/HVC: 0x84000050
(XEN) d1v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d1v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d1v0 Expanding d1 grant table from 1 to 2 frames
(XEN) gnttab_mark_dirty not implemented yet
(XEN) d2v0 Unhandled SMC/HVC: 0x84000050
(XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d2v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Quoted 8 lines

(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 3 to 4 frames
(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

I'm unsure whose attention to draw to this report.

Quoted 8 lines

This might be a scheduler issue since the watchdog timer is triggering.

This might be an ACPI issue as ACPI is in use here.

This might be an ARM Linux kernel issue.

In the end this is someone running into trouble with Xen on an ARM device. Yet despite bringing up the issue hasn't gotten any help...

Hey Elliot,

Thanks for raising the visibility of this. I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are. "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

Quoted 3 lines

I don't see anything suspicious WRT the scheduler, but a simple way to test that would be to set the scheduler to credit1 and see if that changes things.

Just to rule out all possibilities, I did a test with credit(1) scheduler, which didn't change anything noticable. The watchdog triggered after traffic has been created on the VLAN.

Best regards,

Paul

#13 lore raw

Hi,

Quoted 342 lines · Paul Leiber

Am 22.01.2024 um 11:46 schrieb George Dunlap:

Quoted 341 lines · Elliott Mitchell
Quoted 323 lines · Paul Leiber
Quoted 310 lines

Am 22.10.2023 um 07:42 schrieb Paul Leiber:

Quoted 121 lines

Am 13.10.2023 um 20:56 schrieb Paul Leiber:

Quoted 120 lines

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:
bridge_stp off      # dont use STP (spanning tree proto) bridge_waitport 0   # dont wait for port to be available bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes
Logging enabcm6e4ei0.10 (VLAN 10): instant crash
Logging enabcm6e4ei0.20 (VLAN 20): no crashes
Logging xenbr0 (on VLAN 10): instant crash
Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:(XEN) d3v0 Unhandled SMC/HVC: 0x84000050

(XEN) d3v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d3v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 3 to 4 frames

Quoted 5 lines
Quoted 5 lines

------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

Quoted 9 lines
Quoted 2 lines

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

O.k., let's try to break that issue down.

Firstly, how can I get more information on why the Xen watchdog triggers? Is there documentation? Are there any logs? I couldn't find anything useful with my search skills.

After some delay, I have picked up the Raspberry Pi again, built Xen 4.19-unstable, with the same result: Reboot of the complete system after the Dom0 watchdog triggering when accessing the Zabbix content on a webserver on DomU.

I still would like to find out what's going wrong here, but I have no idea what to do. I'd appreciate any hint.

Not knowing if it helps, I added Xen logs from boot until Dom0 crash/reboot below.

Loading Xen xen ...
Loading Linux 6.1.0-17-arm64 ...
Loading initial ramdisk ...
Using modules provided by bootloader in FDT
Xen 4.19-unstable (c/s Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty) EFI
loader
   Xen 4.19-unstable
(XEN) Xen version 4.19-unstable ([email protected]) (gcc (Debian 12.2.0-

                             14) 12.2.0) debug=y Sun Jan 14 21:46:34 CET 2024 (XEN) Latest ChangeSet: Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty (XEN) build-id: babb03cb6107fc46f7d8969142ccd6772a1133c3
(XEN) Console output is synchronous.
(XEN) Processor: 00000000410fd083: "ARM Limited", variant: 0x0, part 0xd08,rev 0

                                 x3
(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: 0000000000001124 0000000000000000 (XEN)   ISA Features:  0000000000010000 0000000000000000 (XEN) 32-bit Execution:
(XEN)   Processor Features: 0000000000000131:0000000000011011 (XEN)     Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle (XEN)     Extensions: GenericTimer Security
(XEN)   Debug Features: 0000000003010066
(XEN)   Auxiliary Features: 0000000000000000
(XEN)   Memory Model Features: 0000000010201105 0000000040000000 (XEN)                          0000000001260000 0000000002102211 (XEN)   ISA Features: 0000000002101110 0000000013112111 0000000021232042 (XEN)                 0000000001112131 0000000000011142 0000000000010001 (XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) ACPI: GICC (acpi_id[0x0000] address[0xff842000] MPIDR[0x0] enabled) (XEN) ACPI: GICC (acpi_id[0x0001] address[0xff842000] MPIDR[0x1] enabled) (XEN) ACPI: GICC (acpi_id[0x0002] address[0xff842000] MPIDR[0x2] enabled) (XEN) ACPI: GICC (acpi_id[0x0003] address[0xff842000] MPIDR[0x3] enabled) (XEN) 4 CPUs enabled, 4 CPUs total
(XEN) SMP: Allowing 4 CPUs
(XEN) enabled workaround for: ARM erratum 1319537
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 54000 KHz (XEN) GICv2 initialization:
(XEN)         gic_dist_addr=00000000ff841000
(XEN)         gic_cpu_addr=00000000ff842000
(XEN)         gic_hyp_addr=00000000ff844000
(XEN)         gic_vcpu_addr=00000000ff846000
(XEN)         gic_maintenance_irq=25
(XEN) GICv2: 256 lines, 4 cpus, secure (IID 0200143b).
(XEN) XSM Framework v1.0.1 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2) (XEN) Initializing Credit2 scheduler
(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms
(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 32 KiB.
(XEN) CPU0: Guest atomics will try 16 times before pausing the domain (XEN) Bringing up CPU1
(XEN) CPU1: Guest atomics will try 16 times before pausing the domain (XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU2: Guest atomics will try 13 times before pausing the domain (XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU3: Guest atomics will try 16 times before pausing the domain (XEN) Brought up 4 CPUs
(XEN) CPU 3 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 44-bit IPA with 44-bit PA and 8-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x0000000080043594 (XEN) Scheduling granularity: cpu, 1 CPU per sched-resource (XEN) Initializing Credit2 scheduler
(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms
(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN)  First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000a00002ee0b0 -> 00000a00002ef250
(XEN) CPU2 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU1 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU3 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU0 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 0000000030ef7000 (XEN) Loading ramdisk from boot module @ 000000002ee6d000 (XEN) Allocating 1:1 mappings totalling 1024MB for dom0:
(XEN) BANK[0] 0x00000040000000-0x00000080000000 (1024MB) (XEN) Grant table range: 0x0000002eceb000-0x0000002ed2b000 (XEN) Allocating PPI 16 for event channel interrupt
(XEN) Loading zImage from 0000000030ef7000 to 0000000040000000-0000000041f1c7c0
(XEN) Loading d0 initrd from 000000002ee6d000 to 0x0000000048200000-0x000000004a

                                                     288c22 (XEN) Loading d0 DTB to 0x0000000048000000-0x00000000480002c3 (XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *************************************************** (XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line. (XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) *************************************************** (XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) Freed 376kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v1: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v2: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v3: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d1v0 Unhandled SMC/HVC: 0x84000050
(XEN) d1v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d1v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d1v0 Expanding d1 grant table from 1 to 2 frames
(XEN) gnttab_mark_dirty not implemented yet
(XEN) d2v0 Unhandled SMC/HVC: 0x84000050
(XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d2v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Quoted 8 lines

(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 3 to 4 frames
(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

I'm unsure whose attention to draw to this report.

Quoted 8 lines

This might be a scheduler issue since the watchdog timer is triggering.

This might be an ACPI issue as ACPI is in use here.

This might be an ARM Linux kernel issue.

In the end this is someone running into trouble with Xen on an ARM device.  Yet despite bringing up the issue hasn't gotten any help...

Hey Elliot,

Thanks for raising the visibility of this.  I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are.  "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

Quoted 5 lines
Quoted 3 lines

I don't see anything suspicious WRT the scheduler, but a simple way to test that would be to set the scheduler to credit1 and see if that changes things.

Just to rule out all possibilities, I did a test with credit(1) scheduler, which didn't change anything noticable. The watchdog triggered after traffic has been created on the VLAN.

Thanks for trying. Looking at the watchdog code, sadly, it doesn't seem to do much logging or even dump some information (e.g. stack trace) when it get triggers.

To answer your previous question about the watchdog, it is a daemon that is running in the domain (in your case dom0). The only thing it will do is every N secs (default 15 seconds), it will tell Xen that it is still alive. If the domain has answered after M (default 30 seconds), then the domain will be considered as unresponsive and Xen will shutdown it down.

If this is dom0, then the whole system will shutdown. As the others hinted, this is likely a sign that your domain deadlock or is overloaded.

Have you tried to disable the watchdog and check the liveness of dom0? I don't expect to solve your issue, but it could help to get some further information out of the system before rebooting. The service is called xen-watchdog.

If dom0 is partially stuck, then I would expect the kernel to start printing some RCU stall after a few seconds.

If you have access to the console you can press CTRL + A three times. This will switch to Xen console where you can ask to print more information. 'h' will give you the list of all the keys supported.

I think, the keys '0' and 'q' would print useful information in your case.

Cheers,

Signature · 1 line
Julien Grall
#14 lore raw

Hi,

Am 18.02.2024 um 18:49 schrieb Julien Grall:

Quoted 359 lines

Hi,

Quoted 342 lines · Paul Leiber

Am 22.01.2024 um 11:46 schrieb George Dunlap:

Quoted 341 lines · Elliott Mitchell
Quoted 323 lines · Paul Leiber
Quoted 310 lines

Am 22.10.2023 um 07:42 schrieb Paul Leiber:

Quoted 121 lines

Am 13.10.2023 um 20:56 schrieb Paul Leiber:

Quoted 120 lines

Hi Xen developers list,

TL;DR:
------

Causing certain web server traffic on a secondary VLAN on Raspberry Pi under vanilla Debian/UEFI in combination with Xen leads to complete system reboot (watchdog triggering for Dom0). Other strange things are happening.

Description:
----------

I recently set up Xen (self compiled, Version 4.18-rc) on a Raspberry Pi 4B (on vanilla Debian Bookworm, UEFI boot mode). Until some time ago, everything worked well with Dom0, one DomU and one bridge.

Then I wanted to actually make use of the virtualization and started to set up a second Debian Bookworm DomU (using xen-create-image) for monitoring my systems with zabbix (a webserver based system monitoring solution). The bridge used for this setup was the device bridging the hardware NIC. I installed zabbix, set it up, and everything went well, I could access the web interface without any problem.

Then I set up VLANs (initally using VLAN numbers 1 and 2) to separate network traffic between the DomUs. I made the existing device bridge VLAN 1 (bridge 1) and created a secondary device for bridging VLAN 2 (bridge 2). Using only bridge 1 / VLAN 1 everything works well, I can access the zabbix web interface without any noticeable issue. After switching the zabbix DomU to VLAN 2 / bridge 2, everything seemingly keeps on working well, I can ping different devices in my network from the zabbix DomU and vice versa, I can ssh into the machine.

However, as soon as I remotely access the zabbix web interface, the complete system (DomUs and Dom0) becomes unresponsive and reboots after some time (usually seconds, sometimes 1-2 minutes). The reboot is reliably reproducable.

I didn't see any error message in any log (zabbix, DomU syslog, Dom0 syslog) except for the following lines immediately before the system reboots on the Xen serial console:

(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

As soon as I change the bridge to bridge 1 (with or without VLAN setup), the web interface is accessible again after booting the zabbix DomU, no reboots.

So I assume that causing specific traffic on the virtual NIC when using a VLAN setup with more than one VLAN under Xen makes the Dom0 system hard crash. Of course, there might be other causes that I'm not aware of, but to me, this seems to be the most likely explanation right now.

What I tried:
-------------

1. I changed the VLAN numbers. First to 101, 102, 103 etc. This was when I noticed another strange thing: VLANs with numbers >99 simply don't work on my Raspberry Pi under Debian, with or without Xen. VLAN 99 works, VLAN 100 (or everything else >99 that I tried) doesn't work. If I choose a number >99, the VLAN is not configured, "ip a" doesn't list it. Other Debian systems on x64 architecture don't show this behavior, there, it was no problem to set up VLANs > 99. Therefore, I've changed the VLANs to 10, 20, 30 etc., which worked. But it didn't solve the initial problem of the crashing Dom0 and DomUs.

2. Different bridge options, without noticable effect:
bridge_stp off      # dont use STP (spanning tree proto) bridge_waitport 0   # dont wait for port to be available bridge_fd 0         # no forward delay

3. Removing IPv6: No noticable effect.

4. Network traffic analysis: Now, here it becomes _really_ strange. I started tcpdumps on Dom0, and depending on on which interface/bridge traffic was logged, the problem went away, meaning, the DomU was running smoothly for hours, even when accessing the zabbix web interface. Stopping the log makes the system crash (as above, after seconds up to 1-2 minutes) reproducably if I access the zabbix web interface.

Logging enabcm6e4ei0 (NIC): no crashes
Logging enabcm6e4ei0.10 (VLAN 10): instant crash
Logging enabcm6e4ei0.20 (VLAN 20): no crashes
Logging xenbr0 (on VLAN 10): instant crash
Logging xenbr1 (on VLAN 20): no crashes

I am clinging to the thought that there must be a rational explanation for why logging the traffic on certain interfaces/bridges should avoid the crash of the complete system, while logging other interfaces/bridges doesn't. I myself can't think of one.

I checked the dumps of enabcm6e4ei0.10 and xenbr0 (where the system crashes) with wireshark, nothing sticks out to me (but I am really no expert in analyzing network traffic). Dumps can be provided.

5. Watchdog: I tried to dig deeper into the cause for the watchdog triggering. However, I didn't find any useful documentation on the web on how the watchdog works or how to enable logging.

6. Eliminating Xen as cause: I booted the Debian system (which in Xen setup would be Dom0) without Xen and set it up to use the VLAN 20 bridge (the same that leads to a reboot when using it in the DomU) as primary network interface. Everything seemed to be working, I could download large files from the internet without any problem. Setting up Zabbix on the base Debian system showed that the same setup (VLANs 10 and 20, bridges 1 and 2, using bridge 2 as interface for Zabbix) without Xen is working reliably, no reboots. This points to some Xen related component being the root cause, I think.

7. Eliminating Apache as root cause: Reloading the Apache starting page hosted on DomU several times per second didn't lead to a reboot.

8. Recompiling Xen: Independent of which Xen master branch version I was using (all 4.18), the behavior was the same. I didn't get Xen working on ARM64/UEFI in version 4.17.

Current situation:(XEN) d3v0 Unhandled SMC/HVC: 0x84000050

(XEN) d3v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d3v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d3v0 Expanding d3 grant table from 3 to 4 frames

Quoted 5 lines
Quoted 5 lines

------------------

I am out of ideas what to do next. Everything that was recommended to me on xen-users didn't lead to significant insight or solve the problem.

Quoted 9 lines
Quoted 2 lines

I'd appreciate any hints how to troubleshoot this and/or how to proceed otherwise.

O.k., let's try to break that issue down.

Firstly, how can I get more information on why the Xen watchdog triggers? Is there documentation? Are there any logs? I couldn't find anything useful with my search skills.

After some delay, I have picked up the Raspberry Pi again, built Xen 4.19-unstable, with the same result: Reboot of the complete system after the Dom0 watchdog triggering when accessing the Zabbix content on a webserver on DomU.

I still would like to find out what's going wrong here, but I have no idea what to do. I'd appreciate any hint.

Not knowing if it helps, I added Xen logs from boot until Dom0 crash/reboot below.

Loading Xen xen ...
Loading Linux 6.1.0-17-arm64 ...
Loading initial ramdisk ...
Using modules provided by bootloader in FDT
Xen 4.19-unstable (c/s Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty) EFI
loader
   Xen 4.19-unstable
(XEN) Xen version 4.19-unstable ([email protected]) (gcc (Debian 12.2.0-

                             14) 12.2.0) debug=y Sun Jan 14 21:46:34 CET 2024 (XEN) Latest ChangeSet: Fri Jan 12 11:54:31 2024 +0000 git:1ec3fe1f66-dirty (XEN) build-id: babb03cb6107fc46f7d8969142ccd6772a1133c3
(XEN) Console output is synchronous.
(XEN) Processor: 00000000410fd083: "ARM Limited", variant: 0x0, part 0xd08,rev 0

                                 x3
(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: 0000000000001124 0000000000000000 (XEN)   ISA Features:  0000000000010000 0000000000000000 (XEN) 32-bit Execution:
(XEN)   Processor Features: 0000000000000131:0000000000011011 (XEN)     Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle (XEN)     Extensions: GenericTimer Security
(XEN)   Debug Features: 0000000003010066
(XEN)   Auxiliary Features: 0000000000000000
(XEN)   Memory Model Features: 0000000010201105 0000000040000000 (XEN)                          0000000001260000 0000000002102211 (XEN)   ISA Features: 0000000002101110 0000000013112111 0000000021232042 (XEN)                 0000000001112131 0000000000011142 0000000000010001 (XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) ACPI: GICC (acpi_id[0x0000] address[0xff842000] MPIDR[0x0] enabled) (XEN) ACPI: GICC (acpi_id[0x0001] address[0xff842000] MPIDR[0x1] enabled) (XEN) ACPI: GICC (acpi_id[0x0002] address[0xff842000] MPIDR[0x2] enabled) (XEN) ACPI: GICC (acpi_id[0x0003] address[0xff842000] MPIDR[0x3] enabled) (XEN) 4 CPUs enabled, 4 CPUs total
(XEN) SMP: Allowing 4 CPUs
(XEN) enabled workaround for: ARM erratum 1319537
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 54000 KHz (XEN) GICv2 initialization:
(XEN)         gic_dist_addr=00000000ff841000
(XEN)         gic_cpu_addr=00000000ff842000
(XEN)         gic_hyp_addr=00000000ff844000
(XEN)         gic_vcpu_addr=00000000ff846000
(XEN)         gic_maintenance_irq=25
(XEN) GICv2: 256 lines, 4 cpus, secure (IID 0200143b).
(XEN) XSM Framework v1.0.1 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2) (XEN) Initializing Credit2 scheduler
(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms
(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 32 KiB.
(XEN) CPU0: Guest atomics will try 16 times before pausing the domain (XEN) Bringing up CPU1
(XEN) CPU1: Guest atomics will try 16 times before pausing the domain (XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU2: Guest atomics will try 13 times before pausing the domain (XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU3: Guest atomics will try 16 times before pausing the domain (XEN) Brought up 4 CPUs
(XEN) CPU 3 booted.
(XEN) I/O virtualisation disabled
(XEN) P2M: 44-bit IPA with 44-bit PA and 8-bit VMID
(XEN) P2M: 4 levels with order-0 root, VTCR 0x0000000080043594 (XEN) Scheduling granularity: cpu, 1 CPU per sched-resource (XEN) Initializing Credit2 scheduler
(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms
(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN)  First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000a00002ee0b0 -> 00000a00002ef250
(XEN) CPU2 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU1 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU3 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) CPU0 will call ARM_SMCCC_ARCH_WORKAROUND_1 on exception entry (XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 0000000030ef7000 (XEN) Loading ramdisk from boot module @ 000000002ee6d000 (XEN) Allocating 1:1 mappings totalling 1024MB for dom0:
(XEN) BANK[0] 0x00000040000000-0x00000080000000 (1024MB) (XEN) Grant table range: 0x0000002eceb000-0x0000002ed2b000 (XEN) Allocating PPI 16 for event channel interrupt
(XEN) Loading zImage from 0000000030ef7000 to 0000000040000000-0000000041f1c7c0
(XEN) Loading d0 initrd from 000000002ee6d000 to 0x0000000048200000-0x000000004a

                                                     288c22 (XEN) Loading d0 DTB to 0x0000000048000000-0x00000000480002c3 (XEN) Initial low memory virq threshold set at 0x4000 pages. (XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *************************************************** (XEN) WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) This option is intended to aid debugging of Xen by ensuring (XEN) that all output is synchronously delivered on the serial line. (XEN) However it can introduce SIGNIFICANT latencies and affect (XEN) timekeeping. It is NOT recommended for production use! (XEN) *************************************************** (XEN) 3... 2... 1...
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input) (XEN) Freed 376kB init memory.
(XEN) d0v0 Unhandled SMC/HVC: 0x84000050
(XEN) d0v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER4 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER8 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28 (XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v1: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v2: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d0v3: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) d1v0 Unhandled SMC/HVC: 0x84000050
(XEN) d1v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d1v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0 (XEN) common/grant_table.c:1909:d1v0 Expanding d1 grant table from 1 to 2 frames
(XEN) gnttab_mark_dirty not implemented yet
(XEN) d2v0 Unhandled SMC/HVC: 0x84000050
(XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01
(XEN) d2v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER0

Quoted 8 lines

(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 1 to 2 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 2 to 3 frames
(XEN) common/grant_table.c:1909:d2v0 Expanding d2 grant table from 3 to 4 frames
(XEN) Watchdog timer fired for domain 0
(XEN) Hardware Dom0 shutdown: watchdog rebooting machine

I'm unsure whose attention to draw to this report.

Quoted 8 lines

This might be a scheduler issue since the watchdog timer is triggering.

This might be an ACPI issue as ACPI is in use here.

This might be an ARM Linux kernel issue.

In the end this is someone running into trouble with Xen on an ARM device.  Yet despite bringing up the issue hasn't gotten any help...

Hey Elliot,

Thanks for raising the visibility of this.  I'm not familiar with ARM, but if I were investigating this I'd try to figure out what the "unhandled" error messages are.  "gnttab_mark_dirty not implemented yet" looks pretty sus too, and also sounds like it might be something ARM-specific.

Quoted 5 lines
Quoted 3 lines

I don't see anything suspicious WRT the scheduler, but a simple way to test that would be to set the scheduler to credit1 and see if that changes things.

Just to rule out all possibilities, I did a test with credit(1) scheduler, which didn't change anything noticable. The watchdog triggered after traffic has been created on the VLAN.

Thanks for trying. Looking at the watchdog code, sadly, it doesn't seem to do much logging or even dump some information (e.g. stack trace) when it get triggers.

To answer your previous question about the watchdog, it is a daemon that is running in the domain (in your case dom0). The only thing it will do is every N secs (default 15 seconds), it will tell Xen that it is still alive. If the domain has answered after M (default 30 seconds), then the domain will be considered as unresponsive and Xen will shutdown it down.

If this is dom0, then the whole system will shutdown. As the others hinted, this is likely a sign that your domain deadlock or is overloaded.

Have you tried to disable the watchdog and check the liveness of dom0? I don't expect to solve your issue, but it could help to get some further information out of the system before rebooting. The service is called xen-watchdog.

Quoted 8 lines

If dom0 is partially stuck, then I would expect the kernel to start printing some RCU stall after a few seconds.

If you have access to the console you can press CTRL + A three times. This will switch to Xen console where you can ask to print more information. 'h' will give you the list of all the keys supported.

I think, the keys '0' and 'q' would print useful information in your case.

Cheers,

Stopping xen-watchdog prevents the reboot. However, when triggering traffic on the VLAN, Dom0 and DomU become completely unresponsive. No error or kernel message is printed in the serial console.

Switching to Xen console works. Pressing '0' produces the following output:

(XEN) '0' pressed -> dumping Dom0's registers
(XEN) *** Dumping Dom0 vcpu#0 state: ***
(XEN) ----[ Xen-4.19-unstable arm64 debug=y Tainted: C ]----

(XEN) CPU:    0
(XEN) PC:     ffff800008027e50
(XEN) LR:     ffff800008027e44
(XEN) SP_EL0: ffff800009c78f80
(XEN) SP_EL1: ffff800008003b60
(XEN) CPSR:   00000000000003c5 MODE:64-bit EL1h (Guest Kernel, handler)
(XEN)      X0: 0000000000000001  X1: 0000000000000003  X2: 0000000000000000
(XEN)      X3: ffff800009c6eb08  X4: ffff800009c6ea88  X5: 0000000000000000
(XEN)      X6: 000000000001964d  X7: 0000000070000000  X8: 00000000000178a7
(XEN)      X9: ffff800008027e44 X10: 00000000000005ee X11: 0000000000000001
(XEN)     X12: ffff800009c6ebb0 X13: 0000000000000000 X14: 0000000000000000
(XEN)     X15: 0000000000000000 X16: ffff800008000000 X17: ffff800076596000
(XEN)     X18: 0000000000000000 X19: ffff8000097c2008 X20: ffff000042126c80
(XEN)     X21: ffff8000097c2008 X22: 0000000000000000 X23: 0000000000000005
(XEN)     X24: ffff8000097c2008 X25: ffff0000483309f8 X26: ffff800076596000
(XEN)     X27: ffff800009c67000 X28: ffff800009c78f80  FP: ffff800008003b60
(XEN)
(XEN)    ELR_EL1: ffff800008cad668
(XEN)    ESR_EL1: 56000000
(XEN)    FAR_EL1: 0000ffffa8ff7e48

(XEN)
(XEN) SCTLR_EL1: 0000000034d4d91d
(XEN) TCR_EL1: 00000074b5503510
(XEN) TTBR0_EL1: 0000000046cd1000
(XEN) TTBR1_EL1: 0a34000041612000
(XEN)
(XEN) VTCR_EL2: 0000000080043594
(XEN) VTTBR_EL2: 00010001fffac000
(XEN)
(XEN) SCTLR_EL2: 0000000030cd183d
(XEN) HCR_EL2: 00000000807c663f
(XEN) TTBR0_EL2: 000000002ee24000
(XEN)
(XEN) ESR_EL2: 0000000007e00000
(XEN) HPFAR_EL2: 0000000000ff8410
(XEN) FAR_EL2: ffff800008005f00
(XEN)
(XEN) Guest stack trace from sp=ffff800008003b60:
(XEN) Failed to convert stack to physical address
(XEN) *** Dumping Dom0 vcpu#1 state: ***
(XEN) ----[ Xen-4.19-unstable arm64 debug=y Tainted: C ]----

(XEN) CPU:    0
(XEN) PC:     ffff800008c5dc80
(XEN) LR:     ffff800008c5dc88
(XEN) SP_EL0: ffff000042272080
(XEN) SP_EL1: ffff80000800b0e0
(XEN) CPSR:   0000000080000305 MODE:64-bit EL1h (Guest Kernel, handler)
(XEN)      X0: 0000000000001c7a  X1: ffff80000800b0e0  X2: 0000000000000001
(XEN)      X3: 0000000000000000  X4: 0000000000000000  X5: ffff00007fd78ad0
(XEN)      X6: 0000000000000001  X7: c0000000ffffefff  X8: 0000000000017fe8
(XEN)      X9: ffff800008c5dc4c X10: ffff800009cf0a78 X11: 00000000ffffefff
(XEN)     X12: 0720072007200720 X13: 0720072007200720 X14: 0720072007200720
(XEN)     X15: 0720072007200720 X16: 65206c6174614620 X17: 6e6f697470656378
(XEN)     X18: 0000000000000006 X19: 000000000000d2f0 X20: ffff8000090ebf50
(XEN)     X21: 000000060197033e X22: fffffff9fe6911da X23: 0000000000000023
(XEN)     X24: 0000000000418958 X25: 0000000000000001 X26: 0000000000000000
(XEN)     X27: 0000000000000000 X28: ffff000042272080  FP: ffff80000800b0e0
(XEN)
(XEN)    ELR_EL1: ffff800008c5dc80
(XEN)    ESR_EL1: f2000800
(XEN)    FAR_EL1: 0000aaaaf011c000

(XEN)
(XEN) SCTLR_EL1: 0000000034d4d91d
(XEN) TCR_EL1: 00000074b5503510
(XEN) TTBR0_EL1: 0000000046cd1000
(XEN) TTBR1_EL1: 0a34000041612000
(XEN)
(XEN) VTCR_EL2: 0000000080043594
(XEN) VTTBR_EL2: 00010001fffac000
(XEN)
(XEN) SCTLR_EL2: 0000000030cd183d
(XEN) HCR_EL2: 00000000807c663f
(XEN) TTBR0_EL2: 000000002ee24000
(XEN)
(XEN) ESR_EL2: 0000000007e00001
(XEN) HPFAR_EL2: 0000000000ff8410
(XEN) FAR_EL2: ffff800008005f00
(XEN)
(XEN) Guest stack trace from sp=ffff80000800b0e0:
(XEN) Failed to convert stack to physical address
(XEN) *** Dumping Dom0 vcpu#2 state: ***
(XEN) ----[ Xen-4.19-unstable arm64 debug=y Tainted: C ]----

(XEN) CPU:    0
(XEN) PC:     ffff800008027e50
(XEN) LR:     ffff800008027e44
(XEN) SP_EL0: ffff000042271040
(XEN) SP_EL1: ffff800009fcbf20
(XEN) CPSR:   00000000000003c5 MODE:64-bit EL1h (Guest Kernel, handler)
(XEN)      X0: 0000000000000001  X1: 0000000000000002  X2: 0000000000000000
(XEN)      X3: ffff800009c6eb08  X4: ffff800009c6ea88  X5: 0000000000000000
(XEN)      X6: 0000000000009c40  X7: 00003d08ffff63c0  X8: 003d090ce9e9e665
(XEN)      X9: ffff800008027e44 X10: 0000000000000008 X11: 0000000000000000
(XEN)     X12: 003d090ce9e9e665 X13: fffffffff7ed551f X14: 0000000000034bc0
(XEN)     X15: 00003d090ce92d00 X16: ffff800009fc8000 X17: ffff8000765d2000
(XEN)     X18: 0000000000000000 X19: ffff8000097c2008 X20: ffff000042126c80
(XEN)     X21: ffff8000097c2008 X22: 0000000000000002 X23: 0000000040000005
(XEN)     X24: 0000000000000000 X25: 0000000000000000 X26: ffff000042271040
(XEN)     X27: 0000000000000000 X28: ffff000042271040  FP: ffff800009fcbf20
(XEN)
(XEN)    ELR_EL1: ffff800008c9df8c
(XEN)    ESR_EL1: 56000000
(XEN)    FAR_EL1: 0000ffff280c2020

(XEN)
(XEN) SCTLR_EL1: 0000000034d4d91d
(XEN) TCR_EL1: 00000074b5503510
(XEN) TTBR0_EL1: 000000004613e000
(XEN) TTBR1_EL1: 0d88000041612000
(XEN)
(XEN) VTCR_EL2: 0000000080043594
(XEN) VTTBR_EL2: 00010001fffac000
(XEN)
(XEN) SCTLR_EL2: 0000000030cd183d
(XEN) HCR_EL2: 00000000807c663f
(XEN) TTBR0_EL2: 000000002ee24000
(XEN)
(XEN) ESR_EL2: 0000000007e00000
(XEN) HPFAR_EL2: 0000000000ff8410
(XEN) FAR_EL2: ffff800008005f00
(XEN)
(XEN) Guest stack trace from sp=ffff800009fcbf20:
(XEN) Failed to convert stack to physical address
(XEN) *** Dumping Dom0 vcpu#3 state: ***
(XEN) ----[ Xen-4.19-unstable arm64 debug=y Tainted: C ]----

(XEN) CPU:    0
(XEN) PC:     ffff800008027e50
(XEN) LR:     ffff800008027e44
(XEN) SP_EL0: ffff0000422730c0
(XEN) SP_EL1: ffff800009fd3f20
(XEN) CPSR:   00000000000003c5 MODE:64-bit EL1h (Guest Kernel, handler)
(XEN)      X0: 0000000000000001  X1: 0000000000000001  X2: 0000000000000000
(XEN)      X3: ffff800009c6eb08  X4: ffff800009c6ea88  X5: 0000000000000000
(XEN)      X6: 0000000157ebd3d8  X7: 0000000000000000  X8: ffff000042273cd0
(XEN)      X9: ffff800008027e44 X10: 0000000000000bb0 X11: 0000000000000001
(XEN)     X12: ffff800009c6ebb0 X13: 0000000000000030 X14: ffffffffffffffff
(XEN)     X15: ffff80000b809000 X16: ffff800009fd0000 X17: ffff8000765f0000
(XEN)     X18: ffff8000090e2000 X19: ffff8000097c2008 X20: ffff000042126c80
(XEN)     X21: ffff8000097c2008 X22: 0000000000000003 X23: 0000000040000005
(XEN)     X24: 0000000000000000 X25: 0000000000000000 X26: ffff0000422730c0
(XEN)     X27: 0000000000000000 X28: ffff0000422730c0  FP: ffff800009fd3f20
(XEN)
(XEN)    ELR_EL1: ffff800008c9df8c
(XEN)    ESR_EL1: 56000000
(XEN)    FAR_EL1: 0000aaaaf011c000

(XEN)
(XEN) SCTLR_EL1: 0000000034d4d91d
(XEN) TCR_EL1: 00000074b5503510
(XEN) TTBR0_EL1: 00000000463ad000
(XEN) TTBR1_EL1: 0d8a000041612000
(XEN)
(XEN) VTCR_EL2: 0000000080043594
(XEN) VTTBR_EL2: 00010001fffac000
(XEN)
(XEN) SCTLR_EL2: 0000000030cd183d
(XEN) HCR_EL2: 00000000807c663f
(XEN) TTBR0_EL2: 000000002ee24000
(XEN)
(XEN) ESR_EL2: 0000000007e00000
(XEN) HPFAR_EL2: 0000000000ff8410
(XEN) FAR_EL2: ffff800008005f00
(XEN)
(XEN) Guest stack trace from sp=ffff800009fd3f20:
(XEN) Failed to convert stack to physical address

Pressing 'q' produces the following output:

(XEN) 'q' pressed -> dumping domain info (now = 727929105981) (XEN) General information for domain 0:

(XEN)     refcnt=3 dying=0 pause_count=0
(XEN)     nr_pages=262144 xenheap_pages=2 dirty_cpus={} max_pages=262144
(XEN)     handle=00000000-0000-0000-0000-000000000000 vm_assist=00000020
(XEN) p2m mappings for domain 0 (vmid 1):
(XEN)   1G mappings: 0 (shattered 1)
(XEN)   2M mappings: 422 (shattered 90)
(XEN)   4K mappings: 45372

(XEN) Rangesets belonging to domain 0:
(XEN) Interrupts { 32-152, 154-255 }
(XEN) I/O Memory { 0-fe200, fe203-ff841, ff849-ffffffffffffffff }
(XEN) NODE affinity for domain 0: [0] (XEN) VCPU information and callbacks for domain 0:
(XEN) UNIT0 affinities: hard={0-3} soft={0-3}
(XEN) VCPU0: CPU3 [has=F] poll=0 upcall_pend=01 upcall_mask=01
(XEN) pause_count=0 pause_flags=1
(XEN) GICH_LRs (vcpu 0) mask=f

(XEN)    VCPU_LR[0]=2a000002
(XEN)    VCPU_LR[1]=1a00001b
(XEN)    VCPU_LR[2]=1a000001
(XEN)    VCPU_LR[3]=1a000010

(XEN) Inflight irq=2 lr=0
(XEN) Inflight irq=27 lr=1
(XEN) Inflight irq=1 lr=2
(XEN) Inflight irq=16 lr=3
(XEN) No periodic timer
(XEN) UNIT1 affinities: hard={0-3} soft={0-3}
(XEN) VCPU1: CPU1 [has=T] poll=0 upcall_pend=00 upcall_mask=00
(XEN) pause_count=0 pause_flags=0
(XEN) GICH_LRs (vcpu 1) mask=0

(XEN)    VCPU_LR[0]=0
(XEN)    VCPU_LR[1]=0
(XEN)    VCPU_LR[2]=0
(XEN)    VCPU_LR[3]=0

(XEN) No periodic timer
(XEN) UNIT2 affinities: hard={0-3} soft={0-3}
(XEN) VCPU2: CPU1 [has=F] poll=0 upcall_pend=01 upcall_mask=01
(XEN) pause_count=0 pause_flags=1
(XEN) GICH_LRs (vcpu 2) mask=f

(XEN)    VCPU_LR[0]=2a000002
(XEN)    VCPU_LR[1]=1a000001
(XEN)    VCPU_LR[2]=1a00001b
(XEN)    VCPU_LR[3]=1a000010

(XEN) Inflight irq=2 lr=0
(XEN) Inflight irq=1 lr=1
(XEN) Inflight irq=27 lr=2
(XEN) Inflight irq=16 lr=3
(XEN) No periodic timer
(XEN) UNIT3 affinities: hard={0-3} soft={0-3}
(XEN) VCPU3: CPU3 [has=F] poll=0 upcall_pend=00 upcall_mask=01
(XEN) pause_count=0 pause_flags=1
(XEN) GICH_LRs (vcpu 3) mask=7

(XEN)    VCPU_LR[0]=2a000002
(XEN)    VCPU_LR[1]=1a00001b
(XEN)    VCPU_LR[2]=1a000001
(XEN)    VCPU_LR[3]=0

(XEN) Inflight irq=2 lr=0
(XEN) Inflight irq=27 lr=1
(XEN) Inflight irq=1 lr=2
(XEN) No periodic timer
(XEN) General information for domain 1:

(XEN)     refcnt=3 dying=0 pause_count=0
(XEN)     nr_pages=262148 xenheap_pages=3 dirty_cpus={} max_pages=262400
(XEN)     handle=f79da05c-9594-4085-9dd3-08a1197ae443 vm_assist=00000020
(XEN) p2m mappings for domain 1 (vmid 2):
(XEN)   1G mappings: 0 (shattered 1)
(XEN)   2M mappings: 511 (shattered 1)
(XEN)   4K mappings: 519

(XEN) Rangesets belonging to domain 1:
(XEN) Interrupts { }
(XEN) I/O Memory { }
(XEN) NODE affinity for domain 1: [0] (XEN) VCPU information and callbacks for domain 1:
(XEN) UNIT0 affinities: hard={0-3} soft={0-3}
(XEN) VCPU0: CPU3 [has=T] poll=0 upcall_pend=00 upcall_mask=01
(XEN) pause_count=0 pause_flags=0
(XEN) GICH_LRs (vcpu 0) mask=0

(XEN)    VCPU_LR[0]=0
(XEN)    VCPU_LR[1]=0
(XEN)    VCPU_LR[2]=0
(XEN)    VCPU_LR[3]=0
(XEN) Inflight irq=27 lr=0
(XEN) No periodic timer
(XEN) General information for domain 2:
(XEN)     refcnt=3 dying=0 pause_count=0
(XEN)     nr_pages=262148 xenheap_pages=5 dirty_cpus={} max_pages=262400
(XEN)     handle=8a518bb5-a0f8-47d7-8220-62cc4035c5ed vm_assist=00000020
(XEN) p2m mappings for domain 2 (vmid 3):
(XEN)   1G mappings: 0 (shattered 1)
(XEN)   2M mappings: 511 (shattered 1)
(XEN)   4K mappings: 521

(XEN) Rangesets belonging to domain 2:
(XEN) Interrupts { }
(XEN) I/O Memory { }
(XEN) NODE affinity for domain 2: [0] (XEN) VCPU information and callbacks for domain 2:
(XEN) UNIT0 affinities: hard={0-3} soft={0-3}
(XEN) VCPU0: CPU2 [has=T] poll=0 upcall_pend=00 upcall_mask=01
(XEN) pause_count=0 pause_flags=0
(XEN) GICH_LRs (vcpu 0) mask=0

(XEN)    VCPU_LR[0]=0
(XEN)    VCPU_LR[1]=0
(XEN)    VCPU_LR[2]=0
(XEN)    VCPU_LR[3]=0

(XEN) Inflight irq=27 lr=0
(XEN) No periodic timer
(XEN) Notifying guest 0:0 (virq 1, port 0)
(XEN) Notifying guest 0:1 (virq 1, port 0)
(XEN) Notifying guest 0:2 (virq 1, port 0)
(XEN) Notifying guest 0:3 (virq 1, port 0)
(XEN) Notifying guest 1:0 (virq 1, port 0)
(XEN) Notifying guest 2:0 (virq 1, port 0)

Anything specific I should pay attention to?

Thanks,

Paul

#15 lore raw

Hi Paul,

Quoted 1 line · Paul Leiber

Stopping xen-watchdog prevents the reboot. However, when triggering traffic on the VLAN, Dom0 and DomU become completely unresponsive. No error or kernel message is printed in the serial console.

Thanks for providing some logs. See some comments below. How long did you wait before confirming dom0 is stucked?

IIRC, Linux may print some RCU stall logs after a few minutes.

Quoted 12 lines

Switching to Xen console works. Pressing '0' produces the following output:

(XEN) '0' pressed -> dumping Dom0's registers
(XEN) *** Dumping Dom0 vcpu#0 state: ***
(XEN) ----[ Xen-4.19-unstable  arm64  debug=y  Tainted:   C    ]---- (XEN) CPU:    0
(XEN) PC:     ffff800008027e50
(XEN) LR:     ffff800008027e44
(XEN) SP_EL0: ffff800009c78f80
(XEN) SP_EL1: ffff800008003b60
(XEN) CPSR:   00000000000003c5 MODE:64-bit EL1h (Guest Kernel, handler)

[...]

Quoted 8 lines

(XEN) *** Dumping Dom0 vcpu#1 state: ***
(XEN) ----[ Xen-4.19-unstable  arm64  debug=y  Tainted:   C    ]---- (XEN) CPU:    0
(XEN) PC:     ffff800008c5dc80
(XEN) LR:     ffff800008c5dc88
(XEN) SP_EL0: ffff000042272080
(XEN) SP_EL1: ffff80000800b0e0
(XEN) CPSR:   0000000080000305 MODE:64-bit EL1h (Guest Kernel, handler)

[...]

Quoted 8 lines

(XEN) *** Dumping Dom0 vcpu#2 state: ***
(XEN) ----[ Xen-4.19-unstable  arm64  debug=y  Tainted:   C    ]---- (XEN) CPU:    0
(XEN) PC:     ffff800008027e50
(XEN) LR:     ffff800008027e44
(XEN) SP_EL0: ffff000042271040
(XEN) SP_EL1: ffff800009fcbf20
(XEN) CPSR:   00000000000003c5 MODE:64-bit EL1h (Guest Kernel, handler)

[...]

Quoted 8 lines

(XEN) *** Dumping Dom0 vcpu#3 state: ***
(XEN) ----[ Xen-4.19-unstable  arm64  debug=y  Tainted:   C    ]---- (XEN) CPU:    0
(XEN) PC:     ffff800008027e50
(XEN) LR:     ffff800008027e44
(XEN) SP_EL0: ffff0000422730c0
(XEN) SP_EL1: ffff800009fd3f20
(XEN) CPSR:   00000000000003c5 MODE:64-bit EL1h (Guest Kernel, handler)

All the PCs but one (vcpu#1) are the same.

Quoted 9 lines

(XEN) 'q' pressed -> dumping domain info (now = 727929105981) (XEN) General information for domain 0:
(XEN)     refcnt=3 dying=0 pause_count=0
(XEN)     nr_pages=262144 xenheap_pages=2 dirty_cpus={} max_pages=262144 (XEN)     handle=00000000-0000-0000-0000-000000000000 vm_assist=00000020 (XEN) p2m mappings for domain 0 (vmid 1):
(XEN)   1G mappings: 0 (shattered 1)
(XEN)   2M mappings: 422 (shattered 90)
(XEN)   4K mappings: 45372

Quoted 8 lines

(XEN) Rangesets belonging to domain 0:
(XEN)     Interrupts { 32-152, 154-255 }
(XEN)     I/O Memory { 0-fe200, fe203-ff841, ff849-ffffffffffffffff } (XEN) NODE affinity for domain 0: [0]
(XEN) VCPU information and callbacks for domain 0:
(XEN)   UNIT0 affinities: hard={0-3} soft={0-3}
(XEN)     VCPU0: CPU3 [has=F] poll=0 upcall_pend=01 upcall_mask=01 (XEN)     pause_count=0 pause_flags=1

The vCPU is blocked. But...

Quoted 5 lines

(XEN) GICH_LRs (vcpu 0) mask=f
(XEN)    VCPU_LR[0]=2a000002
(XEN)    VCPU_LR[1]=1a00001b
(XEN)    VCPU_LR[2]=1a000001
(XEN)    VCPU_LR[3]=1a000010

... it loosk like multiple IRQs are inflights. LR0 (holding IRQ2) is active but the others are pending. This is the same for vCPU #2, #3. vCPU #1 still seems to "work".

AFAICT, Linux is using IRQ2 for the IPI CPU_STOP. So it sounds like dom0 may have panicked.

Looking at the initial logs you posted. I see some messages from Xen but no messages at all from dom0 (including boot). Can you check if you have console=hvc0 on the Linux command line?

If not, please add it and retry.

Cheers,

Signature · 1 line
Julien Grall
#16 lore raw

Hi Julien

Am 04.03.2024 um 23:15 schrieb Julien Grall:

Quoted 83 lines

Hi Paul,

Quoted 1 line · Paul Leiber

Stopping xen-watchdog prevents the reboot. However, when triggering traffic on the VLAN, Dom0 and DomU become completely unresponsive. No error or kernel message is printed in the serial console.

Thanks for providing some logs. See some comments below. How long did you wait before confirming dom0 is stucked?

IIRC, Linux may print some RCU stall logs after a few minutes.

Quoted 12 lines

Switching to Xen console works. Pressing '0' produces the following output:

(XEN) '0' pressed -> dumping Dom0's registers
(XEN) *** Dumping Dom0 vcpu#0 state: ***
(XEN) ----[ Xen-4.19-unstable  arm64  debug=y  Tainted:   C    ]---- (XEN) CPU:    0
(XEN) PC:     ffff800008027e50
(XEN) LR:     ffff800008027e44
(XEN) SP_EL0: ffff800009c78f80
(XEN) SP_EL1: ffff800008003b60
(XEN) CPSR:   00000000000003c5 MODE:64-bit EL1h (Guest Kernel, handler)

[...]

Quoted 8 lines

(XEN) *** Dumping Dom0 vcpu#1 state: ***
(XEN) ----[ Xen-4.19-unstable  arm64  debug=y  Tainted:   C    ]---- (XEN) CPU:    0
(XEN) PC:     ffff800008c5dc80
(XEN) LR:     ffff800008c5dc88
(XEN) SP_EL0: ffff000042272080
(XEN) SP_EL1: ffff80000800b0e0
(XEN) CPSR:   0000000080000305 MODE:64-bit EL1h (Guest Kernel, handler)

[...]

Quoted 8 lines

(XEN) *** Dumping Dom0 vcpu#2 state: ***
(XEN) ----[ Xen-4.19-unstable  arm64  debug=y  Tainted:   C    ]---- (XEN) CPU:    0
(XEN) PC:     ffff800008027e50
(XEN) LR:     ffff800008027e44
(XEN) SP_EL0: ffff000042271040
(XEN) SP_EL1: ffff800009fcbf20
(XEN) CPSR:   00000000000003c5 MODE:64-bit EL1h (Guest Kernel, handler)

[...]

Quoted 8 lines

(XEN) *** Dumping Dom0 vcpu#3 state: ***
(XEN) ----[ Xen-4.19-unstable  arm64  debug=y  Tainted:   C    ]---- (XEN) CPU:    0
(XEN) PC:     ffff800008027e50
(XEN) LR:     ffff800008027e44
(XEN) SP_EL0: ffff0000422730c0
(XEN) SP_EL1: ffff800009fd3f20
(XEN) CPSR:   00000000000003c5 MODE:64-bit EL1h (Guest Kernel, handler)

All the PCs but one (vcpu#1) are the same.

Quoted 9 lines

(XEN) 'q' pressed -> dumping domain info (now = 727929105981) (XEN) General information for domain 0:
(XEN)     refcnt=3 dying=0 pause_count=0
(XEN)     nr_pages=262144 xenheap_pages=2 dirty_cpus={} max_pages=262144 (XEN)     handle=00000000-0000-0000-0000-000000000000 vm_assist=00000020 (XEN) p2m mappings for domain 0 (vmid 1):
(XEN)   1G mappings: 0 (shattered 1)
(XEN)   2M mappings: 422 (shattered 90)
(XEN)   4K mappings: 45372

Quoted 8 lines

(XEN) Rangesets belonging to domain 0:
(XEN)     Interrupts { 32-152, 154-255 }
(XEN)     I/O Memory { 0-fe200, fe203-ff841, ff849-ffffffffffffffff } (XEN) NODE affinity for domain 0: [0]
(XEN) VCPU information and callbacks for domain 0:
(XEN)   UNIT0 affinities: hard={0-3} soft={0-3}
(XEN)     VCPU0: CPU3 [has=F] poll=0 upcall_pend=01 upcall_mask=01 (XEN)     pause_count=0 pause_flags=1

The vCPU is blocked. But...

Quoted 5 lines

(XEN) GICH_LRs (vcpu 0) mask=f
(XEN)    VCPU_LR[0]=2a000002
(XEN)    VCPU_LR[1]=1a00001b
(XEN)    VCPU_LR[2]=1a000001
(XEN)    VCPU_LR[3]=1a000010

Quoted 7 lines

... it loosk like multiple IRQs are inflights. LR0 (holding IRQ2) is active but the others are pending. This is the same for vCPU #2, #3. vCPU #1 still seems to "work".

AFAICT, Linux is using IRQ2 for the IPI CPU_STOP. So it sounds like dom0 may have panicked.

Looking at the initial logs you posted. I see some messages from Xen but no messages at all from dom0 (including boot). Can you check if you have console=hvc0 on the Linux command line?

If not, please add it and retry.

*facepalm*

After activating Dom0 output in xen console with console=hvc0, Dom0 messages appear in xen console.

Directly after triggering the crash, the following messages appear:

[   59.239150] ------------[ cut here ]------------
[   59.243691] kernel BUG at kernel/dma/swiotlb.c:666!
[   59.248640] Internal error: Oops - BUG: 00000000f2000800 [#1] SMP
[   59.254790] Modules linked in: bridge 8021q garp mrp stp llc binfmt_misc nls_ascii nls_cp437 vfat fat hci_uart btqca btrtl btbcm btintel btsdio bluetooth jitterentropy_rng sha512_generic sha512_arm64 aes_neon_bs brcmfmac aes_neon_blk brcmutil drbg ansi_cprng cfg80211 ecdh_generic rfkill ecc sg xen_pciback xen_netback xen_blkback xen_gntalloc xen_gntdev xen_evtchn loop fuse drm efi_pstore configfs xenfs xen_privcmd efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic dm_mod dax sd_mod t10_pi crc64_rocksoft crc64 crc_t10dif crct10dif_generic uas usb_storage scsi_mod scsi_common broadcom bcm_phy_ptp bcm_phy_lib genet dwc2 mdio_bcm_unimac of_mdio udc_core fixed_phy xhci_plat_hcd roles fwnode_mdio xhci_hcd crct10dif_ce crct10dif_common sdhci_iproc sdhci_pltfm usbcore libphy sdhci usb_common
[   59.326308] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.1.0-17-arm64 #1  Debian 6.1.69-1
[   59.334445] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   59.341469] pc : swiotlb_tbl_map_single+0x420/0x6d0
[   59.346417] lr : 0x0
[   59.348669] sp : ffff80000800b4e0
[   59.352056] x29: ffff80000800b4e0 x28: 0000000000000000 x27: 0000000000000000
[   59.359263] x26: 0000000000000000 x25: 0000000000000001 x24: ffff00004a2ca010
[   59.366461] x23: ffff800009f54688 x22: 0000000042800000 x21: 0000000000000000
[   59.373665] x20: 0001000000000000 x19: 0020000000000000 x18: fffffc0000000000
[   59.380862] x17: 0000000000000119 x16: ffff800009c74560 x15: 78e9d7c1ef2ec7fd
[   59.388065] x14: 0000000000000000 x13: 0000000000000000 x12: ffff000048142c10
[   59.395266] x11: ffff00004a2ca000 x10: 0000000000000002 x9 : ffff8000087ed3b4
[   59.402468] x8 : 0000000000000010 x7 : 0000000000000000 x6 : 0000000000000000
[   59.409671] x5 : ffff000048142f10 x4 : 0000000000000000 x3 : 0000000000000000
[   59.416872] x2 : 0000000000000001 x1 : 0000000000000003 x0 : 0000000000000000
[   59.424075] Call trace:
[   59.426590]  swiotlb_tbl_map_single+0x420/0x6d0
[   59.431189]  xen_swiotlb_map_page+0xe4/0x440
[   59.435528]  dma_map_page_attrs+0x1e8/0x240
[   59.439779]  bcmgenet_xmit+0x194/0x7d0 [genet]
[   59.444292]  dev_hard_start_xmit+0xa8/0x1c0
[   59.448543]  sch_direct_xmit+0x98/0x314
[   59.452448]  __dev_queue_xmit+0x9bc/0xdd4
[   59.456526]  vlan_dev_hard_start_xmit+0xb4/0x17c [8021q]
[   59.461906]  dev_hard_start_xmit+0xa8/0x1c0
[   59.466158]  __dev_queue_xmit+0x254/0xdd4
[   59.470236]  br_dev_queue_push_xmit+0xd8/0x1f0 [bridge]
[   59.475529]  br_forward_finish+0x5c/0xd0 [bridge]
[   59.480301]  __br_forward+0x168/0x1d0 [bridge]
[   59.484814]  br_forward+0x120/0x13c [bridge]
[   59.489152]  br_handle_frame_finish+0x330/0x5c0 [bridge]
[   59.494533]  br_handle_frame+0x2cc/0x3c0 [bridge]
[   59.499304]  __netif_receive_skb_core.constprop.0+0x288/0xe70
[   59.505118]  __netif_receive_skb_one_core+0x44/0x90
[   59.510064]  __netif_receive_skb+0x20/0x70
[   59.514229]  netif_receive_skb+0x54/0x160
[   59.518307]  xenvif_tx_action+0x6b8/0x934 [xen_netback]
[   59.523608]  xenvif_poll+0x3c/0xc0 [xen_netback]
[   59.528286]  __napi_poll+0x40/0x1e0
[   59.531843]  net_rx_action+0x384/0x470
[   59.535661]  __do_softirq+0x120/0x338
[   59.539392]  ____do_softirq+0x18/0x24
[   59.543130]  call_on_irq_stack+0x24/0x50
[   59.547115]  do_softirq_own_stack+0x24/0x3c
[   59.551366]  __irq_exit_rcu+0x104/0x130
[   59.555271]  irq_exit_rcu+0x18/0x24
[   59.558829]  el1_interrupt+0x38/0x54
[   59.562473]  el1h_64_irq_handler+0x18/0x2c
[   59.566638]  el1h_64_irq+0x64/0x68
[   59.570109]  arch_cpu_idle+0x18/0x2c
[   59.573762]  default_idle_call+0x50/0x114
[   59.577831]  do_idle+0x24c/0x2c0
[   59.581129]  cpu_startup_entry+0x3c/0x4c
[   59.585121]  secondary_start_kernel+0x130/0x154
[   59.589719]  __secondary_switched+0xb0/0xb4
[   59.593983] Code: f9400c00 cb0002c0 8a130016 17ffffed (d4210000)
[   59.600135] ---[ end trace 0000000000000000 ]---
[   59.614441] Kernel panic - not syncing: Oops - BUG: Fatal exception in interrupt
[   59.621740] SMP: stopping secondary CPUs
[   59.625756] Kernel Offset: disabled
[   59.629283] CPU features: 0x80000,2002c080,0000421b
[   59.634230] Memory Limit: none
[   59.646915] ---[ end Kernel panic - not syncing: Oops - BUG: Fatal exception in interrupt ]---

I assume that this is the missing console output you were trying to get to. Just to make sure, I let the system wait for 15 minutes, but nothing happened anymore.

Am I right when assuming that I now need to debug this kernel panic? Any hints you can give me already?

Best regards,

Paul