summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/PlatformCI
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2023-08-03 13:44:24 +0200
committerArd Biesheuvel <workofard@gmail.com>2023-08-04 16:36:04 +0200
commit2d8c17a9b61ad298986daffe5373026c3b88c741 (patch)
tree099d1086f3c1fb24385add348c8bfe4a62b1de29 /OvmfPkg/PlatformCI
parentbae848ee2504a4558eb17f02d2ffe3dadbaa119f (diff)
downloadedk2-2d8c17a9b61ad298986daffe5373026c3b88c741.tar.gz
edk2-2d8c17a9b61ad298986daffe5373026c3b88c741.tar.bz2
edk2-2d8c17a9b61ad298986daffe5373026c3b88c741.zip
OvmfPkg/PlatformCI: Boot OVMF in SMP mode.
Increase the chance that CI finds bugs in MP changes. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> (cherry picked from commit f92a9dce10281c103b04d6b38283e0ff1d677b91) Reapplying, since the CI (Windows and Linux) use Qemu 8 now, which works with SMP again. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4324 Signed-off-by: Oliver Steffen <osteffen@redhat.com> [ardb: use single-threaded TCG for SMM]
Diffstat (limited to 'OvmfPkg/PlatformCI')
-rw-r--r--OvmfPkg/PlatformCI/PlatformBuildLib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/OvmfPkg/PlatformCI/PlatformBuildLib.py b/OvmfPkg/PlatformCI/PlatformBuildLib.py
index c8e805c566..1ada935d3c 100644
--- a/OvmfPkg/PlatformCI/PlatformBuildLib.py
+++ b/OvmfPkg/PlatformCI/PlatformBuildLib.py
@@ -195,6 +195,7 @@ class PlatformBuilder( UefiBuilder, BuildSettingsManager):
args = "-debugcon stdio" # write messages to stdio
args += " -global isa-debugcon.iobase=0x402" # debug messages out thru virtual io port
args += " -net none" # turn off network
+ args += " -smp 4"
args += f" -drive file=fat:rw:{VirtualDrive},format=raw,media=disk" # Mount disk with startup.nsh
if (self.env.GetValue("QEMU_HEADLESS").upper() == "TRUE"):
@@ -202,6 +203,7 @@ class PlatformBuilder( UefiBuilder, BuildSettingsManager):
if (self.env.GetBuildValue("SMM_REQUIRE") == "1"):
args += " -machine q35,smm=on" #,accel=(tcg|kvm)"
+ args += " --accel tcg,thread=single"
#args += " -m ..."
args += " -global driver=cfi.pflash01,property=secure,value=on"
args += " -drive if=pflash,format=raw,unit=0,file=" + os.path.join(OutputPath_FV, "OVMF_CODE.fd") + ",readonly=on"