<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ParavirtualizedGraphics",
  "identifier" : "/documentation/ParavirtualizedGraphics/PGCopyOptionROMURL()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Paravirtualized Graphics"
    ],
    "preciseIdentifier" : "c:@F@PGCopyOptionROMURL"
  },
  "title" : "PGCopyOptionROMURL()"
}
-->

# PGCopyOptionROMURL()

Copies the URL of the ROM image to use on the guest graphics device.

```
func PGCopyOptionROMURL() -> URL
```

## Return Value

The URL of the ROM file to load.

## Discussion

The URL points to a local file of a flat ROM image. After loading the file, pad the data size to a power of two and fill the extra bytes with zeroes. Map the resulting data into the guest, setting the PCI ROM base address register to point to the data.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)