Skip to content

Commit

Permalink
Merge pull request autotest#5673 from QianJianhua1/acpi
Browse files Browse the repository at this point in the history
cpu: fix ACPI requires UEFI on aarch64
  • Loading branch information
dzhengfy authored Jun 19, 2024
2 parents bb5ba5b + 077f8ba commit d3253bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libvirt/tests/src/cpu/vcpu_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import re
import shutil
import stat
import platform

from avocado.utils import process

Expand Down Expand Up @@ -134,7 +135,16 @@ def setup_with_unprivileged_user(vm, params, test):
unprivileged_boot_disk_path = os.path.join(unprivileged_boot_disk_path, os.path.basename(first_disk_source))
disk_attrs = {'source': {'attrs': {'file': unprivileged_boot_disk_path}}}
libvirt_vmxml.modify_vm_device(vmxml, 'disk', disk_attrs)
os_attrs = {
"loader": vmxml.os.loader,
"loader_readonly": vmxml.os.loader_readonly,
"loader_type": vmxml.os.loader_type
}
vmxml.os = libvirt_bios.remove_bootconfig_items_from_vmos(vmxml.os)
if vmxml.xmltreefile.find('features'):
arch = platform.machine().lower()
if vmxml.features.has_feature('acpi') and 'aarch64' in arch:
vmxml.set_os_attrs(**os_attrs)
test.log.debug('VM XML after updating:\n%s', vmxml)

test.log.debug("Step: Prepare boot disk image in unprivileged user's home directory")
Expand Down

0 comments on commit d3253bf

Please sign in to comment.