@@ -434,8 +434,8 @@ type QemuBuilder struct {
434434
435435 // If set, use QEMU full emulation for the target architecture
436436 architecture string
437- // Memory defaults to 1024 on most architectures, others it may be 2048
438- Memory int
437+ // MemoryMiB defaults to 1024 on most architectures, others it may be 2048
438+ MemoryMiB int
439439 // Processors < 0 means to use host count, unset means 1, values > 1 are directly used
440440 Processors int
441441 UUID string
@@ -1242,7 +1242,7 @@ func (builder *QemuBuilder) finalize() {
12421242 if builder .finalized {
12431243 return
12441244 }
1245- if builder .Memory == 0 {
1245+ if builder .MemoryMiB == 0 {
12461246 // FIXME; Required memory should really be a property of the tests, and
12471247 // let's try to drop these arch-specific overrides. ARM was bumped via
12481248 // commit 09391907c0b25726374004669fa6c2b161e3892f
@@ -1260,7 +1260,7 @@ func (builder *QemuBuilder) finalize() {
12601260 case "aarch64" , "s390x" , "ppc64le" :
12611261 memory = 2048
12621262 }
1263- builder .Memory = memory
1263+ builder .MemoryMiB = memory
12641264 }
12651265 builder .finalized = true
12661266}
@@ -1591,7 +1591,7 @@ func (builder *QemuBuilder) Exec() (*QemuInstance, error) {
15911591 if err != nil {
15921592 return nil , err
15931593 }
1594- argv = append (argv , "-m" , fmt .Sprintf ("%d" , builder .Memory ))
1594+ argv = append (argv , "-m" , fmt .Sprintf ("%d" , builder .MemoryMiB ))
15951595
15961596 if builder .Processors < 0 {
15971597 nproc , err := system .GetProcessors ()
0 commit comments