mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
kvm: convert "-machine kvm_shadow_mem" to an accelerator property
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
46472d8232
commit
23b0898e44
6 changed files with 51 additions and 45 deletions
4
vl.c
4
vl.c
|
@ -2514,6 +2514,10 @@ static int machine_set_property(void *opaque,
|
|||
object_register_sugar_prop(ACCEL_CLASS_NAME("xen"), qom_name, value);
|
||||
return 0;
|
||||
}
|
||||
if (g_str_equal(qom_name, "kvm-shadow-mem")) {
|
||||
object_register_sugar_prop(ACCEL_CLASS_NAME("kvm"), qom_name, value);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return object_parse_property_opt(opaque, name, value, "type", errp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue