public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ardb@kernel.org>
To: "Kinney, Michael D" <michael.d.kinney@intel.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	 "mikuback@linux.microsoft.com" <mikuback@linux.microsoft.com>,
	"osteffen@redhat.com" <osteffen@redhat.com>,
	 "Feng, Bob C" <bob.c.feng@intel.com>,
	Gerd Hoffmann <kraxel@redhat.com>,
	 "Yao, Jiewen" <jiewen.yao@intel.com>,
	"Justen, Jordan L" <jordan.l.justen@intel.com>,
	 "Gao, Liming" <gaoliming@byosoft.com.cn>,
	Rebecca Cran <rebecca@bsdio.com>,
	 Sean Brogan <sean.brogan@microsoft.com>,
	"Chen, Christine" <yuwei.chen@intel.com>,
	 Laszlo Ersek <lersek@redhat.com>
Subject: Re: [edk2-devel] [PATCH v1 0/4] Use Qemu 8 in CI and enable SMP in tests
Date: Fri, 4 Aug 2023 15:17:31 +0200	[thread overview]
Message-ID: <CAMj1kXFTJdt8GNKWxD-=dpVYzMDziFP0mUyPmNXsM6Gsx4aKtA@mail.gmail.com> (raw)
In-Reply-To: <CAMj1kXE=ib9kEfLhgZg2NjaV4yZR9x0Cgv5JrSYaMYfsPnORmA@mail.gmail.com>

On Thu, 3 Aug 2023 at 23:25, Ard Biesheuvel <ardb@kernel.org> wrote:
>
> On Thu, 3 Aug 2023 at 21:21, Kinney, Michael D
> <michael.d.kinney@intel.com> wrote:
> >
> > Hi Ard,
> >
> > This is the email with the analysis and the flag
> > setting required for SMP to work with SMM enabled for
> > IA32/X64 QEMU.
> >
> > https://edk2.groups.io/g/devel/message/102364
> >
> >
> > I tried latest version of QEMU earlier in the Summer
> > and did not see any improvements.
> >
>
> Ah thanks, I had forgotten all about that rabbit hole you went down :-)
>
> So let's respin this with -smp 4 --accel=tcg,thread=single. It is
> still an improvement to exercise the MP code even if it doesn't
> strictly execute concurrently. (It will be very hard to
> catch/reproduce true concurrency issues in TCG anyway)
>

Something like this is what I had in mind:

--- 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"

I can just fold that in if nobody minds. I suspect the time limit
increase may not be needed either this way.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107566): https://edk2.groups.io/g/devel/message/107566
Mute This Topic: https://groups.io/mt/100524063/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2023-08-04 13:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-03 11:44 [edk2-devel] [PATCH v1 0/4] Use Qemu 8 in CI and enable SMP in tests Oliver Steffen
2023-08-03 11:44 ` [edk2-devel] [PATCH v1 1/4] OvmfPkg/PlatformCI: Use recent Qemu on Windows Oliver Steffen
2023-08-03 11:44 ` [edk2-devel] [PATCH v1 2/4] OvmfPkg/PlatformCI VS2019: Disable workaround for cpuhp bugfix Oliver Steffen
2023-08-03 11:44 ` [edk2-devel] [PATCH v1 3/4] OvmfPkg/PlatformCI: Boot OVMF in SMP mode Oliver Steffen
2023-08-03 11:44 ` [edk2-devel] [PATCH v1 4/4] CI: Increase time limit of "Run to shell" task to 4 minutes Oliver Steffen
2023-08-03 13:03 ` [edk2-devel] [PATCH v1 0/4] Use Qemu 8 in CI and enable SMP in tests Ard Biesheuvel
2023-08-03 13:51   ` Laszlo Ersek
2023-08-03 14:27     ` Oliver Steffen
2023-08-03 14:37 ` Michael Kubacki
2023-08-03 16:53   ` Ard Biesheuvel
2023-08-03 19:21     ` Michael D Kinney
2023-08-03 21:25       ` Ard Biesheuvel
2023-08-04 13:17         ` Ard Biesheuvel [this message]
2023-08-04 13:21           ` Oliver Steffen
2023-08-07  9:53         ` Laszlo Ersek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMj1kXFTJdt8GNKWxD-=dpVYzMDziFP0mUyPmNXsM6Gsx4aKtA@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox