mirror of
https://github.com/containers/podman.git
synced 2025-11-02 06:37:09 +08:00
On darwin arm64, we need to set the location of the ovmf vars. It should be put into the imageDir (also known as as dataDir). But because qemu determines the image path late in Init(), the image path is set something like a stream marker. Fixes #20361 [NO NEW TESTS NEEDED] Signed-off-by: Brent Baude <bbaude@redhat.com>
23 lines
694 B
Go
23 lines
694 B
Go
package qemu
|
|
|
|
var (
|
|
QemuCommand = "qemu-system-x86_64w"
|
|
)
|
|
|
|
func (v *MachineVM) addArchOptions(_ *setNewMachineCMDOpts) []string {
|
|
// "max" level is used, because "host" is not supported with "whpx" acceleration
|
|
// "vmx=off" disabled nested virtualization (not needed for podman)
|
|
// QEMU issue to track nested virtualization: https://gitlab.com/qemu-project/qemu/-/issues/628
|
|
// "monitor=off" needed to support hosts, which have mwait calls disabled in BIOS/UEFI
|
|
opts := []string{"-machine", "q35,accel=whpx:tcg", "-cpu", "max,vmx=off,monitor=off"}
|
|
return opts
|
|
}
|
|
|
|
func (v *MachineVM) prepare() error {
|
|
return nil
|
|
}
|
|
|
|
func (v *MachineVM) archRemovalFiles() []string {
|
|
return []string{}
|
|
}
|