Esempio n. 1
0
def get_cpus(architecture, version=None):
    if version is None:
        version = _get_version()
    if version is None:
        raise TypeError("Invalid qemu version")
    cpus = _qemu.load_spec(version)['cpus']
    return cpus[architecture]
Esempio n. 2
0
def get_machines(architecture, version=None):
    if version is None:
        version = _get_version()
    if version is None:
        raise TypeError("Invalid qemu version")
    machines = _qemu.load_spec(version)['machines']
    return machines[architecture]
Esempio n. 3
0
def get_executables(version=None):
    if version is None:
        version = _get_version()
    if version is None:
        raise TypeError("Invalid qemu version")
    return _qemu.load_spec(version)['binaries']