mirror of https://gitee.com/openkylin/qemu.git
set default machine type to be microvm if CONFIG_MICROVM is defined
Debian-Specific: yes Gbp-Pq: Name microvm-default-machine-type.patch Signed-off-by: Cong Liu <liucong2@kylinos.cn>
This commit is contained in:
parent
de7fb444d6
commit
41cc5cf216
|
@ -649,6 +649,9 @@ static void microvm_class_init(ObjectClass *oc, void *data)
|
|||
|
||||
mc->family = "microvm_i386";
|
||||
mc->desc = "microvm (i386)";
|
||||
#ifdef CONFIG_MICROVM_DEFAULT
|
||||
mc->is_default = true;
|
||||
#endif
|
||||
mc->units_per_default_bus = 1;
|
||||
mc->no_floppy = 1;
|
||||
mc->max_cpus = 288;
|
||||
|
|
|
@ -438,6 +438,11 @@ static void pc_i440fx_7_1_machine_options(MachineClass *m)
|
|||
pc_i440fx_machine_options(m);
|
||||
m->alias = "pc";
|
||||
m->is_default = true;
|
||||
#ifdef CONFIG_MICROVM_DEFAULT
|
||||
m->is_default = false;
|
||||
#else
|
||||
m->is_default = true;
|
||||
#endif
|
||||
pcmc->default_cpu_version = 1;
|
||||
pcmc->legacy_no_rng_seed = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue