tart/Tests/TartTests
G 3678f45d82 Add optional Virtio memory balloon support
Add a per-VM "memoryBalloon" setting (disabled by default) that, when
enabled via "tart set <name> --memory-balloon true", attaches a
VZVirtioTraditionalMemoryBalloonDeviceConfiguration to the VM,
allowing supported guest operating systems to participate in
best-effort memory reclaim.

A balloon target can be requested at run time via
"tart run --balloon-target-memory <MB>". The target is re-applied
periodically, since a target set before the guest's virtio-balloon
driver probes the device is lost when the guest resets the device
while booting (the same applies to guest reboots).

The balloon device is skipped for suspendable VMs (similarly to the
entropy device) to not interfere with the save/restore support.

VM.craftConfiguration() is split into a buildConfiguration() part and
a validation part, so that the device wiring can be unit-tested
without the "com.apple.security.virtualization" entitlement.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 10:51:48 +09:00
..
Util Docker-related fixes (#1221) 2026-04-09 21:00:36 -07:00
DigestTests.swift Support pulling/pushing VMs to OCI-compatible registries (#32) 2022-05-03 14:30:26 -04:00
DirecotryShareTests.swift Allow to override VirtioFS tag for shared directories (#733) 2024-02-19 20:51:25 +00:00
DiskImageFormatTests.swift ASIF is available only starting from macOS 26 (Tahoe) (#1096) 2025-09-14 09:40:06 -04:00
DiskutilTests.swift Refactor "diskutil create" and "diskutil info" into a separate class (#1172) 2026-01-22 13:00:27 +01:00
DockerConfigTests.swift Support wildcards in `credHelpers` (#592) 2023-08-28 11:37:49 -04:00
FileLockTests.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
LayerizerTests.swift Move brew completions to post_install (#1227) 2026-04-11 22:26:52 -04:00
LeaseTest.swift MAC address resolver: skip expired leases (#669) 2023-11-27 10:12:36 -05:00
LeasesTests.swift DHCP MAC-address resolver: handle duplicate leases (#740) 2024-02-23 16:49:06 +04:00
MACAddressResolverTests.swift MAC address resolver: skip expired leases (#669) 2023-11-27 10:12:36 -05:00
MemoryBalloonTests.swift Add optional Virtio memory balloon support 2026-07-03 10:51:48 +09:00
RegistryTests.swift Move brew completions to post_install (#1227) 2026-04-11 22:26:52 -04:00
RemoteNameTests.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
TokenResponseTests.swift Fixed Swift Warning (#787) 2024-04-11 19:53:10 +04:00
URLAbsolutizationTests.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
URLAccessDateTests.swift Introduce "tart prune" command (#164) 2022-08-12 16:43:04 +03:00
VMConfigTests.swift tart set: support optional "pt" and "px" units for "--display" argument (#1155) 2025-10-21 21:35:42 -04:00
WWWAuthenticateTests.swift Support pulling/pushing VMs to OCI-compatible registries (#32) 2022-05-03 14:30:26 -04:00