Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
qemu: Remove hard-coding of Qemu machine options for ppc64le
Browse files Browse the repository at this point in the history
Hard-coded Qemu machine options create challenges when running Kata
with latest Qemu (v5.0) or with latest processor version.
This patch makes it configurable by leveraging the existing machine_accelerators
option in configuration.toml.

This patch fixes #2657 for ppc64le

Signed-off-by: [email protected]
(cherry picked from commit 1d3e1ea)
  • Loading branch information
bpradipt committed Jun 8, 2020
1 parent cecd7f7 commit 3eee00e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/ppc64le-options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

MACHINETYPE := pseries
KERNELPARAMS :=
MACHINEACCELERATORS :=
MACHINEACCELERATORS := "cap-cfpc=broken,cap-sbbc=broken,cap-ibs=broken,cap-large-decr=off,cap-ccf-assist=off"
KERNELTYPE := uncompressed #This architecture must use an uncompressed kernel.
QEMUCMD := qemu-system-ppc64
2 changes: 1 addition & 1 deletion virtcontainers/qemu_ppc64le.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const defaultQemuPath = "/usr/bin/qemu-system-ppc64"

const defaultQemuMachineType = QemuPseries

const defaultQemuMachineOptions = "accel=kvm,usb=off,cap-cfpc=broken,cap-sbbc=broken,cap-ibs=broken,cap-large-decr=off"
const defaultQemuMachineOptions = "accel=kvm,usb=off"

const defaultMemMaxPPC64le = 32256 // Restrict MemMax to 32Gb on PPC64le

Expand Down

0 comments on commit 3eee00e

Please sign in to comment.