From b533c732e9b0be9635f3f2d4cb5b2795d60e8b9a Mon Sep 17 00:00:00 2001 From: Hu Shuai Date: Mon, 29 May 2023 13:46:22 +0800 Subject: [PATCH] svirt_dac: Update serial_attrs to enable test for aarch64 The serial->target->type for character device on aarch64 is system-serial, and the usable model for system-serial is pl011. Signed-off-by: Hu Shuai --- libvirt/tests/cfg/svirt/dac/dac_seclabel_per_device.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvirt/tests/cfg/svirt/dac/dac_seclabel_per_device.cfg b/libvirt/tests/cfg/svirt/dac/dac_seclabel_per_device.cfg index c4bd0cceea..5a86e13f3c 100644 --- a/libvirt/tests/cfg/svirt/dac/dac_seclabel_per_device.cfg +++ b/libvirt/tests/cfg/svirt/dac/dac_seclabel_per_device.cfg @@ -15,6 +15,8 @@ serial_path = "/tmp/test1.sock" serial_attrs_sources_attrs = {"mode": "bind", "path": "${serial_path}"} serial_attrs = {'type_name': 'unix', 'target_type': 'pci-serial', 'target_model': 'pci-serial'} + aarch64: + serial_attrs = {'type_name': 'unix', 'target_type': 'system-serial', 'target_model': 'pl011'} variants: - relabel_no: seclabel_attr_relabel = "no"