mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
domain: introduce constants for virVcpuInfo->cpu state values
Signed-off-by: Matt Coleman <matt@datto.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d8e5b45600
commit
265e3244c2
@ -1910,12 +1910,17 @@ typedef enum {
|
||||
# endif
|
||||
} virVcpuState;
|
||||
|
||||
typedef enum {
|
||||
VIR_VCPU_INFO_CPU_OFFLINE = -1, /* the vCPU is offline */
|
||||
VIR_VCPU_INFO_CPU_UNAVAILABLE = -2, /* the hypervisor does not expose real CPU information */
|
||||
} virVcpuHostCpuState;
|
||||
|
||||
typedef struct _virVcpuInfo virVcpuInfo;
|
||||
struct _virVcpuInfo {
|
||||
unsigned int number; /* virtual CPU number */
|
||||
int state; /* value from virVcpuState */
|
||||
unsigned long long cpuTime; /* CPU time used, in nanoseconds */
|
||||
int cpu; /* real CPU number, or -1 if offline */
|
||||
int cpu; /* real CPU number, or one of the values from virVcpuHostCpuState */
|
||||
};
|
||||
typedef virVcpuInfo *virVcpuInfoPtr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user