Merge pull request #1791 from nitkon/fixtest

vc: Fix TestQemuPPC64leMemoryTopology after qemu version bump
This commit is contained in:
Eric Ernst 2019-06-13 11:40:36 -07:00 committed by GitHub
commit d4c88b2d78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {