rom

Allocate ROM to the VM

Synopsis:

rom [start_address,]length

Description:

The rom component allocates ROM to the VM, at the guest-physical address specified by start_address for the number of bytes specified by length.

This option is the same as the ram option, except that the guest isn't allowed to write to this memory. Typically, you would use the load option to place some initialized data into the region specified by rom before the guest starts.

If you don't specify this option, by default the qvm process allocates the RAM immediately following the highest RAM/ROM address already allocated in the system.

When you specify the length argument, you can use either hexadecimal notation (e.g., 0xa0000 for 640 KB), or human-readable abbreviations (e.g., 1M for 1 MB).

Note:

You must allocate ROM before components that refer to the guest memory (see Exceptions in the Configuration chapter).

ROM that appears to the guest as contiguous is unlikely to be contiguous in host-physical memory (see Memory in the Understanding QNX Virtual Environments chapter).

Example:

The following allocates 256 KB of ROM to the VM, starting at address 0xc0000:

rom 0xc0000,0x40000

The start address for the memory allocation is the address inside the VM: the guest-physical address (intermediate physical address).