xcp.dom0

xcp.dom0.default_memory(host_mem_kib)[source]

Return the default for the amount of dom0 memory for the specified amount of host memory for the current platform version

xcp.dom0.default_memory_for_version(host_mem_kib, platform_version)[source]

Return the default for the amount of dom0 memory for the specified amount of host memory for the given platform version.

xcp.dom0.default_memory_v2(host_mem_kib)[source]

Return the default for the amount of dom0 memory for the specified amount of host memory for platform versions < 2.9.0.

xcp.dom0.default_memory_v3(host_mem_kib)[source]

Return the default for the amount of dom0 memory for the specified amount of host memory for platform versions >= 2.9.0.

xcp.dom0.default_vcpus(host_pcpus, dom0_mem_mb=None)[source]

Return the default number of dom0 vcpus for the specified number of host pcpus and the amount of dom0 memory.

xcp.dom0.parse_mem(arg)[source]

Parse Xen’s dom0_mem command line option.

Return tuple of (amount, min, max) memory in bytes from a string in the following format:

dom0_mem=[min:<min_amt>,][max:<max_amt>,][<amt>]

See also Xen’s docs/txt/misc/xen-command-line.txt.