mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-19 18:01:01 +00:00
Merge pull request #1791 from nitkon/fixtest
vc: Fix TestQemuPPC64leMemoryTopology after qemu version bump
This commit is contained in:
commit
d4c88b2d78
@ -121,7 +121,7 @@ func (q *qemuPPC64le) cpuModel() string {
|
||||
|
||||
func (q *qemuPPC64le) memoryTopology(memoryMb, hostMemoryMb uint64, slots uint8) govmmQemu.Memory {
|
||||
|
||||
if qemuMajorVersion >= 2 && qemuMinorVersion >= 10 {
|
||||
if (qemuMajorVersion > 2) || (qemuMajorVersion == 2 && qemuMinorVersion >= 10) {
|
||||
q.Logger().Debug("Aligning maxmem to multiples of 256MB. Assumption: Kernel Version >= 4.11")
|
||||
hostMemoryMb -= (hostMemoryMb % 256)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user