mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
conf: Replace writes to def->vcpus with accessor
This commit is contained in:
1 parent
d1dda68777
commit
957d597330
19 files changed
+83
-33
No files matched your search
@@ -877,7 +877,10 @@ hypervDomainGetXMLDesc(virDomainPtr domain, unsigned int flags)
|
||||
processorSettingData->data->VirtualQuantity) < 0)
|
||||
goto cleanup;
|
||||
|
||||
def->vcpus = processorSettingData->data->VirtualQuantity;
|
||||
if (virDomainDefSetVcpus(def,
|
||||
processorSettingData->data->VirtualQuantity) < 0)
|
||||
goto cleanup;
|
||||
|
||||
def->os.type = VIR_DOMAIN_OSTYPE_HVM;
|
||||
|
||||
/* FIXME: devices section is totally missing */
|
||||
|
||||
Reference in new issue
Block a user