mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
cpu: Use virCPUData.arch in cpuDecode
virCPUDef.arch is not required to be filled in for guest CPU definitions. It doesn't make sense to artificially mandate it to be set when cpuDecode is called especially when virCPUData.arch passed to cpuDecode already contains the architecture. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
4cd9545d89
commit
82ddd0b155
@ -240,7 +240,7 @@ cpuDecode(virCPUDefPtr cpu,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ((driver = cpuGetSubDriver(cpu->arch)) == NULL)
|
||||
if ((driver = cpuGetSubDriver(data->arch)) == NULL)
|
||||
return -1;
|
||||
|
||||
if (driver->decode == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user