Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pbo-linaro committed Dec 11, 2024
1 parent 00d446a commit 01cd994
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions tests/functional/test_aarch64_virt_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
#
# SPDX-License-Identifier: GPL-2.0-or-later

import time
import os
import logging
import os
import shutil
import time

from qemu_test import BUILD_DIR
from qemu_test import QemuSystemTest, Asset
from qemu_test import exec_command


class Aarch64VirtWindowsMachine(QemuSystemTest):
Expand All @@ -30,20 +30,24 @@ class Aarch64VirtWindowsMachine(QemuSystemTest):
def test_win_virt_tcg(self):
self.set_machine('virt')
self.vm.set_console()
self.require_accelerator("tcg")

img_path = self.ASSET_WINVOS_IMG.fetch()

self.vm.add_args("-accel", "tcg")
self.vm.add_args("-cpu", "max,pauth-impdef=on")
self.vm.add_args("-machine",
"virt,its=on,"
"virtualization=false,"
"gic-version=3")
self.vm.add_args("-smp", "1", "-m", "1024")
self.require_accelerator('tcg')

orig_img_path = self.ASSET_WINVOS_IMG.fetch()
img_path = os.path.join(self.workdir, 'winvos.vhdx')
shutil.copy(orig_img_path, img_path)

self.vm.add_args('-accel', 'tcg')
self.vm.add_args('-cpu', 'max,pauth-impdef=on')
self.vm.add_args('-machine',
'virt,its=on,'
'virtualization=false,'
'gic-version=3')
self.vm.add_args('-smp', '1', '-m', '1024')
self.vm.add_args('-bios', os.path.join(BUILD_DIR, 'pc-bios',
'edk2-aarch64-code.fd'))
self.vm.add_args("-drive", f"file={iso_path},media=cdrom,format=raw")
self.vm.add_args('-device', 'ramfb')
self.vm.add_args('-device', 'nvme,drive=hd0,serial=00000001')
self.vm.add_args('-drive', f'if=none,media=disk,id=hd0,file={img_path}')

self.vm.launch()

Expand Down

0 comments on commit 01cd994

Please sign in to comment.