qemu: Introduce virQEMUCapsUpdateHostCPUModel

Function will be used by next patch.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Tim Wiederhake 2021-04-20 13:27:51 +02:00 committed by Michal Privoznik
parent 47c3986d8d
commit 903c4d0a53
2 changed files with 13 additions and 0 deletions

View File

@ -3819,6 +3819,15 @@ virQEMUCapsInitHostCPUModel(virQEMUCaps *qemuCaps,
} }
void
virQEMUCapsUpdateHostCPUModel(virQEMUCaps *qemuCaps,
virArch hostArch,
virDomainVirtType type)
{
virQEMUCapsHostCPUDataClear(&virQEMUCapsGetAccel(qemuCaps, type)->hostCPU);
virQEMUCapsInitHostCPUModel(qemuCaps, hostArch, type);
}
qemuMonitorCPUModelInfo * qemuMonitorCPUModelInfo *
virQEMUCapsGetCPUModelInfo(virQEMUCaps *qemuCaps, virQEMUCapsGetCPUModelInfo(virQEMUCaps *qemuCaps,
virDomainVirtType type) virDomainVirtType type)

View File

@ -60,6 +60,10 @@ virQEMUCapsInitHostCPUModel(virQEMUCaps *qemuCaps,
virArch hostArch, virArch hostArch,
virDomainVirtType type); virDomainVirtType type);
void
virQEMUCapsUpdateHostCPUModel(virQEMUCaps *qemuCaps,
virArch hostArch,
virDomainVirtType type);
int int
virQEMUCapsInitCPUModel(virQEMUCaps *qemuCaps, virQEMUCapsInitCPUModel(virQEMUCaps *qemuCaps,
virDomainVirtType type, virDomainVirtType type,