Skip to content

Commit

Permalink
Merge pull request autotest#5203 from hs0210/usb_controller
Browse files Browse the repository at this point in the history
chardev_pcie: Create USB controller manually for aarch64
  • Loading branch information
Yingshun authored Oct 31, 2023
2 parents 5bc199d + 315ba50 commit 670742a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libvirt/tests/src/virtio/virtio_page_per_vq.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
import platform

from virttest import libvirt_version
from virttest import utils_net
from virttest import virsh
Expand Down Expand Up @@ -28,6 +30,12 @@ def prepare_test(vmxml):
:params vmxml: the vm xml
"""
vmxml.remove_all_device_by_type(device_type)
# For now, arm can not create USB controller automatically.
if device_type == "controller" and platform.machine() == 'aarch64':
usb_controller = Controller("controller")
usb_controller.type = "usb"
usb_controller.model = 'qemu-xhci'
vmxml.add_device(usb_controller)
vmxml.sync()
# Need to use shared memory for filesystem device
if device_type == "filesystem":
Expand Down

0 comments on commit 670742a

Please sign in to comment.