]> xenbits.xensource.com Git - ovmf.git/commitdiff
OvmfPkg/CI: Boot OVMF in SMP mode.
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 27 Mar 2023 15:01:38 +0000 (17:01 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 29 Mar 2023 15:50:53 +0000 (15:50 +0000)
Increase the chance that CI finds bugs in MP changes.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
OvmfPkg/PlatformCI/PlatformBuildLib.py

index 58dc1189a2cc084300ec399db23477ed9ae367c2..1ff85fdc24bb9ddf8ece4dcb87642095b3f75c0f 100644 (file)
@@ -196,6 +196,7 @@ class PlatformBuilder( UefiBuilder, BuildSettingsManager):
         args  = "-debugcon stdio"                                           # write messages to stdio\r
         args += " -global isa-debugcon.iobase=0x402"                        # debug messages out thru virtual io port\r
         args += " -net none"                                                # turn off network\r
+        args += " -smp 4"\r
         args += f" -drive file=fat:rw:{VirtualDrive},format=raw,media=disk" # Mount disk with startup.nsh\r
 \r
         if (self.env.GetValue("QEMU_HEADLESS").upper() == "TRUE"):\r
@@ -204,7 +205,6 @@ class PlatformBuilder( UefiBuilder, BuildSettingsManager):
         if (self.env.GetBuildValue("SMM_REQUIRE") == "1"):\r
             args += " -machine q35,smm=on" #,accel=(tcg|kvm)"\r
             #args += " -m ..."\r
-            #args += " -smp ..."\r
             args += " -global driver=cfi.pflash01,property=secure,value=on"\r
             args += " -drive if=pflash,format=raw,unit=0,file=" + os.path.join(OutputPath_FV, "OVMF_CODE.fd") + ",readonly=on"\r
             args += " -drive if=pflash,format=raw,unit=1,file=" + os.path.join(OutputPath_FV, "OVMF_VARS.fd")\r