Skip to contentSkip to conversation

171932: regressions - FAIL

xen-unstable-smoke test osstest service owner 1 participant 1 message Jul 30, 2022

lore
Share & tools
lore

osstest service owner

author Reviewed-by Stefano Stabellini Reviewed-by Luca Fancellu Acked-by Daniel P. Smith Acked-by Andrew Cooper Acked-by Andrew Cooper Acked-by Andrew Cooper Reviewed-by Andrew Cooper Reviewed-by Penny Zheng Reviewed-by Stefano Stabellini Reviewed-by Stefano Stabellini Reviewed-by Stefano Stabellini Reviewed-by Anthony PERARD Reviewed-by Anthony PERARD Acked-by George Dunlap Tested-by Jiamei Xie
#0 lore raw

flight 171932 xen-unstable-smoke real [real]
http://logs.test-lab.xenproject.org/osstest/logs/171932/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
build-amd64-libvirt 6 libvirt-build fail REGR. vs. 171884

Tests which did not succeed, but are not blocking:

 test-amd64-amd64-libvirt      1 build-check(1)               blocked  n/a
 test-arm64-arm64-xl-xsm      15 migrate-support-check        fail   never pass
 test-arm64-arm64-xl-xsm      16 saverestore-support-check    fail   never pass
 test-armhf-armhf-xl          15 migrate-support-check        fail   never pass
 test-armhf-armhf-xl          16 saverestore-support-check    fail   never pass

version targeted for testing:
xen 062790aca6b1faea62c9ed2737c3791efb0d0f4c
baseline version:
xen f732240fd3bac25116151db5ddeb7203b62e85ce

Last test of basis   171884  2022-07-27 12:03:31 Z    2 days
Failing since        171899  2022-07-28 19:01:47 Z    1 days    8 attempts
Testing same since   171917  2022-07-29 10:03:07 Z    0 days    4 attempts

------------------------------------------------------------
People who touched revisions under test:
Andrew Cooper <[email protected]> Daniel P. Smith <[email protected]> George Dunlap <[email protected]> Jan Beulich <[email protected]>
Jiamei Xie <[email protected]>
Julien Grall <[email protected]> Oleksandr Tyshchenko <[email protected]> Stefano Stabellini <[email protected]> Xenia Ragiadakou <[email protected]>

jobs:

 build-arm64-xsm                                              pass    
 build-amd64                                                  pass    
 build-armhf                                                  pass    
 build-amd64-libvirt                                          fail    
 test-armhf-armhf-xl                                          pass    
 test-arm64-arm64-xl-xsm                                      pass    
 test-amd64-amd64-xl-qemuu-debianhvm-amd64                    pass    
 test-amd64-amd64-libvirt                                     blocked 

------------------------------------------------------------
sg-report-flight on osstest.test-lab.xenproject.org
logs: /home/logs/logs
images: /home/logs/images

Logs, config files, etc. are available at
http://logs.test-lab.xenproject.org/osstest/logs

Explanation of these reports, and of osstest in general, is at
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README.email;hb=master
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README;hb=master

Test harness code can be found at
http://xenbits.xen.org/gitweb?p=osstest.git;a=summary

Not pushing.

------------------------------------------------------------
commit 062790aca6b1faea62c9ed2737c3791efb0d0f4c

Author: Xenia Ragiadakou <[email protected]>
Date:   Fri Jul 29 08:51:31 2022 +0200

arm/atomic: fix MISRA C 2012 Rule 20.7 violation

The macro parameter 'p' is used as an expression and needs to be enclosed in parentheses.

commit 124f138b37d595294b3100349e26ffb3f1df7b13

Author: Xenia Ragiadakou <[email protected]>
Date:   Fri Jul 29 08:50:58 2022 +0200

xsm/dummy: fix MISRA C 2012 Directive 4.10 violation

Protect header file from being included more than once by adding ifndef guard.

commit 9ff3231f955cee4d62c7be6a03d061c037d7ca69

Author: Jan Beulich <[email protected]>
Date:   Fri Jul 29 08:50:25 2022 +0200

x86/shadow: drop CONFIG_HVM conditionals from sh_update_cr3()

Now that we're not building multi.c anymore for 2 and 3 guest levels when !HVM, there's no point in having these conditionals anymore. (As somewhat a special case, the last of the removed conditionals really builds on shadow_mode_external() always returning false when !HVM.) This way the code becomes a tiny bit more readable.

commit 5b04fe78646a8222626996113c9d1e598cb84831

Author: Jan Beulich <[email protected]>
Date:   Fri Jul 29 08:49:48 2022 +0200

x86/shadow: don't open-code shadow_remove_all_shadows()

Let's use the existing inline wrapper instead of repeating respective commentary at every site.

commit 8a3b89e4307da260675483bb86fc06cc62ed7c08

Author: Jan Beulich <[email protected]>
Date:   Fri Jul 29 08:49:06 2022 +0200

x86/shadow: exclude HVM-only code from sh_remove_shadows() when !HVM

In my (debug) build this amounts to well over 500 bytes of dead code.

commit 3629759626ac7201a670a8a2d4d4a536e7443575

Author: Jan Beulich <[email protected]>
Date:   Fri Jul 29 08:48:26 2022 +0200

x86/shadow: properly handle get_page() failing

We should not blindly (in a release build) insert the new entry in the hash if a reference to the guest page cannot be obtained, or else an excess reference would be put when removing the hash entry again. Crash the domain in that case instead. The sole caller doesn't further care about the state of the guest page: All it does is return the corresponding shadow page (which was obtained successfully before) to its caller.

To compensate we further need to adjust hash removal: Since the shadow page already has had its backlink set, domain cleanup code would try to destroy the shadow, and hence still cause a put_page() without corresponding get_page(). Leverage that the failed get_page() leads to no hash insertion, making shadow_hash_delete() no longer assume it will find the requested entry. Instead return back whether the entry was found. This way delete_shadow_status() can avoid calling put_page() in the problem scenario.

For the other caller of shadow_hash_delete() simply reinstate the otherwise dropped assertion at the call site.

While touching the conditionals in {set,delete}_shadow_status() anyway, also switch around their two pre-existing parts, to have the cheap one first (frequently allowing to avoid evaluation of the expensive - due to evaluate_nospec() - one altogether).

commit 108e6f282d2c2b8442ac9e1487e6fd7865cd6ede

Author: Xenia Ragiadakou <[email protected]>
Date:   Thu Jul 28 10:58:56 2022 +0300

automation: arm64: Create a test job for testing static allocation on qemu

Enable CONFIG_STATIC_MEMORY in the existing arm64 build.

Create a new test job, called qemu-smoke-arm64-gcc-staticmem.

Adjust qemu-smoke-arm64.sh script to accomodate the static memory test as a new test variant. The test variant is determined based on the first argument passed to the script. For testing static memory, the argument is 'static-mem'.

The test configures DOM1 with a static memory region and adds a check in the init script.
The check consists in comparing the contents of the /proc/device-tree memory entry with the static memory range with which DOM1 was configured. If the memory layout is correct, a message gets printed by DOM1.

At the end of the qemu run, the script searches for the specific message in the logs and fails if not found.

commit 37339ba9ef46cf55e077ca50235279f058b01779

Author: Xenia Ragiadakou <[email protected]>
Date:   Thu Jul 28 10:58:55 2022 +0300

automation: Remove XEN_CONFIG_EXPERT leftovers

The EXPERT config option cannot anymore be selected via the environmental variable XEN_CONFIG_EXPERT. Remove stale references to XEN_CONFIG_EXPERT from the automation code.

commit ca45d3cb4586372909f350e54482246f994e1bc7

Author: Oleksandr Tyshchenko <[email protected]>
Date:   Fri Jul 15 22:20:26 2022 +0300
    libxl/arm: Create specific IOMMU node to be referred by virtio-mmio device
    
    Reuse generic IOMMU device tree bindings to communicate Xen specific
    information for the virtio devices for which the restricted memory
    access using Xen grant mappings need to be enabled.
    
    Insert "iommus" property pointed to the IOMMU node with "xen,grant-dma"
    compatible to all virtio devices which backends are going to run in
    non-hardware domains (which are non-trusted by default).
    
    Based on device-tree binding from Linux:
    Documentation/devicetree/bindings/iommu/xen,grant-dma.yaml
    
    The example of generated nodes:
    
    xen_iommu {
        compatible = "xen,grant-dma";
        #iommu-cells = <0x01>;
        phandle = <0xfde9>;
    };
    
    virtio@2000000 {
        compatible = "virtio,mmio";
        reg = <0x00 0x2000000 0x00 0x200>;
        interrupts = <0x00 0x01 0xf01>;
        interrupt-parent = <0xfde8>;
        dma-coherent;
        iommus = <0xfde9 0x01>;
    };
    
    virtio@2000200 {
        compatible = "virtio,mmio";
        reg = <0x00 0x2000200 0x00 0x200>;
        interrupts = <0x00 0x02 0xf01>;
        interrupt-parent = <0xfde8>;
        dma-coherent;
        iommus = <0xfde9 0x01>;
    };
    
    Signed-off-by: Oleksandr Tyshchenko <[email protected]>
    Reviewed-by: Stefano Stabellini <[email protected]>
    Reviewed-by: Anthony PERARD <[email protected]>

commit 2128143c114c52c7536e37c32935fdd77f23edc1

Author: Julien Grall <[email protected]>
Date:   Fri Jul 15 22:20:25 2022 +0300

libxl: Introduce basic virtio-mmio support on Arm

This patch introduces helpers to allocate Virtio MMIO params (IRQ and memory region) and create specific device node in the Guest device-tree with allocated params. In order to deal with multiple Virtio devices, reserve corresponding ranges. For now, we reserve 1MB for memory regions and 10 SPIs.

As these helpers should be used for every Virtio device attached to the Guest, call them for Virtio disk(s).

Please note, with statically allocated Virtio IRQs there is a risk of a clash with a physical IRQs of passthrough devices. For the first version, it's fine, but we should consider allocating the Virtio IRQs automatically. Thankfully, we know in advance which IRQs will be used for passthrough to be able to choose non-clashed ones.

commit 66dd1c62b2a3c707bd5c55750d10a8223fbd577f

Author: Oleksandr Tyshchenko <[email protected]>
Date:   Fri Jul 15 22:20:24 2022 +0300

libxl: Add support for Virtio disk configuration

This patch adds basic support for configuring and assisting virtio-mmio based virtio-disk backend (emulator) which is intended to run out of Qemu and could be run in any domain.
Although the Virtio block device is quite different from traditional Xen PV block device (vbd) from the toolstack's point of view:
- as the frontend is virtio-blk which is not a Xenbus driver, nothing written to Xenstore are fetched by the frontend currently ("vdev" is not passed to the frontend). But this might need to be revised in future, so frontend data might be written to Xenstore in order to support hotplugging virtio devices or passing the backend domain id on arch where the device-tree is not available.
- the ring-ref/event-channel are not used for the backend<->frontend communication, the proposed IPC for Virtio is IOREQ/DM
it is still a "block device" and ought to be integrated in existing "disk" handling. So, re-use (and adapt) "disk" parsing/configuration logic to deal with Virtio devices as well.

For the immediate purpose and an ability to extend that support for other use-cases in future (Qemu, virtio-pci, etc) perform the following actions:
- Add new disk backend type (LIBXL_DISK_BACKEND_STANDALONE) and reflect that in the configuration
- Introduce new disk "specification" and "transport" fields to struct libxl_device_disk. Both are written to the Xenstore. The transport field is only used for the specification "virtio" and it assumes only "mmio" value for now.
- Introduce new "specification" option with "xen" communication protocol being default value.
- Add new device kind (LIBXL__DEVICE_KIND_VIRTIO_DISK) as current one (LIBXL__DEVICE_KIND_VBD) doesn't fit into Virtio disk model

An example of domain configuration for Virtio disk:
disk = [ 'phy:/dev/mmcblk0p3, xvda1, backendtype=standalone, specification=virtio']

Nothing has changed for default Xen disk configuration.

Please note, this patch is not enough for virtio-disk to work on Xen (Arm), as for every Virtio device (including disk) we need to allocate Virtio MMIO params (IRQ and memory region) and pass them to the backend, also update Guest device-tree. The subsequent patch will add these missing bits. For the current patch, the default "irq" and "base" are just written to the Xenstore. This is not an ideal splitting, but this way we avoid breaking the bisectability.

(qemu changes not included)