mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-26 07:34:04 +03:00
Introduce virConnectCompareHypervisorCPU public API
This new API compares the given CPU description with the CPU the specified hypervisor is able to provide on the host. It is a more useful version of virConnectCompareCPU, which compares the CPU definition with the host CPU without considering any specific hypervisor and its abilities. https://bugzilla.redhat.com/show_bug.cgi?id=1559832 https://bugzilla.redhat.com/show_bug.cgi?id=1559835 Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Collin Walling <walling@linux.ibm.com>
This commit is contained in:
@@ -678,6 +678,15 @@ typedef int
|
||||
const char *cpu,
|
||||
unsigned int flags);
|
||||
|
||||
typedef int
|
||||
(*virDrvConnectCompareHypervisorCPU)(virConnectPtr conn,
|
||||
const char *emulator,
|
||||
const char *arch,
|
||||
const char *machine,
|
||||
const char *virttype,
|
||||
const char *xmlCPU,
|
||||
unsigned int flags);
|
||||
|
||||
typedef char *
|
||||
(*virDrvConnectBaselineCPU)(virConnectPtr conn,
|
||||
const char **xmlCPUs,
|
||||
@@ -1538,6 +1547,7 @@ struct _virHypervisorDriver {
|
||||
virDrvDomainSetVcpu domainSetVcpu;
|
||||
virDrvDomainSetBlockThreshold domainSetBlockThreshold;
|
||||
virDrvDomainSetLifecycleAction domainSetLifecycleAction;
|
||||
virDrvConnectCompareHypervisorCPU connectCompareHypervisorCPU;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user