{ "abstract" : "The operation was unsuccessful because the function call had an invalid argument.", "availability" : [ { "beta" : false, "deprecated" : false, "name" : "macOS", "unavailable" : false } ], "codeExamples" : [ ], "contentHash" : "13cce6af1cbdb38f681c6f488e81738325002e83c0e4be92d137c63e65d6793a", "crawlDepth" : 5, "crawledAt" : "2026-05-03T10:04:27Z", "declaration" : { "code" : "var HV_BAD_ARGUMENT: Int { get }", "language" : "swift" }, "id" : "4B5BF0E2-9236-D1AE-CD85-C975A139ADB7", "kind" : "unknown", "language" : "swift", "module" : "Hypervisor", "platforms" : [ "macOS" ], "rawMarkdown" : "---\nsource: https:\/\/developer.apple.com\/documentation\/hypervisor\/hv_bad_argument\ncrawled: 2026-05-03T10:04:27Z\n---\n\n# HV_BAD_ARGUMENT\n\n**Global Variable**\n\nThe operation was unsuccessful because the function call had an invalid argument.\n\n## Declaration\n\n```swift\nvar HV_BAD_ARGUMENT: Int { get }\n```\n\n## Return Values\n\n- **HV_SUCCESS**: The operation completed successfully.\n- **HV_ERROR**: The operation was unsuccessful.\n- **HV_BUSY**: The operation was unsuccessful because the owning resource was busy.\n- **HV_NO_RESOURCES**: The operation was unsuccessful because the host had no resources available to complete the request.\n- **HV_NO_DEVICE**: The operation was unsuccessful because no VM or vCPU was available.\n- **HV_UNSUPPORTED**: The operation requested isn’t supported by the hypervisor.\n\n", "sections" : [ { "content" : "", "items" : [ { "description" : "The operation completed successfully.", "name" : "HV_SUCCESS", "url" : "https:\/\/developer.apple.com\/documentation\/Hypervisor\/HV_SUCCESS" }, { "description" : "The operation was unsuccessful.", "name" : "HV_ERROR", "url" : "https:\/\/developer.apple.com\/documentation\/Hypervisor\/HV_ERROR" }, { "description" : "The operation was unsuccessful because the owning resource was busy.", "name" : "HV_BUSY", "url" : "https:\/\/developer.apple.com\/documentation\/Hypervisor\/HV_BUSY" }, { "description" : "The operation was unsuccessful because the host had no resources available to complete the request.", "name" : "HV_NO_RESOURCES", "url" : "https:\/\/developer.apple.com\/documentation\/Hypervisor\/HV_NO_RESOURCES" }, { "description" : "The operation was unsuccessful because no VM or vCPU was available.", "name" : "HV_NO_DEVICE", "url" : "https:\/\/developer.apple.com\/documentation\/Hypervisor\/HV_NO_DEVICE" }, { "description" : "The operation requested isn’t supported by the hypervisor.", "name" : "HV_UNSUPPORTED", "url" : "https:\/\/developer.apple.com\/documentation\/Hypervisor\/HV_UNSUPPORTED" } ], "title" : "Return Values" } ], "source" : "appleJSON", "title" : "HV_BAD_ARGUMENT", "url" : "https:\/\/developer.apple.com\/documentation\/hypervisor\/hv_bad_argument" }