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:
Michael Tokarev 2020-02-22 16:19:11 +03:00 committed by Cong Liu
parent de7fb444d6
commit 41cc5cf216
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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;
}