mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemu: Validate guest CPU features before starting a domain
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
6ef9c202f2
commit
3f0193f7e5
@ -4659,6 +4659,10 @@ qemuProcessStartValidate(virQEMUDriverPtr driver,
|
||||
if (qemuProcessStartValidateShmem(vm) < 0)
|
||||
return -1;
|
||||
|
||||
if (vm->def->cpu &&
|
||||
virCPUValidateFeatures(vm->def->os.arch, vm->def->cpu) < 0)
|
||||
return -1;
|
||||
|
||||
VIR_DEBUG("Checking for any possible (non-fatal) issues");
|
||||
|
||||
qemuProcessStartWarnShmem(vm);
|
||||
|
Loading…
Reference in New Issue
Block a user