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]
  • Loading branch information
bpradipt committed May 30, 2020
1 parent b1c2130 commit 1d3e1ea
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,7 +7,7 @@

MACHINETYPE := pseries
KERNELPARAMS :=
MACHINEACCELERATORS :=
MACHINEACCELERATORS := "cap-cfpc=broken,cap-sbbc=broken,cap-ibs=broken,cap-large-decr=off,cap-ccf-assist=off"
CPUFEATURES :=

KERNELTYPE := uncompressed #This architecture must use an uncompressed kernel.
Expand Down
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-ppc64le"

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 1d3e1ea

Please sign in to comment.