summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAndrea Bolognani <abologna@redhat.com>2016-03-08 18:24:18 +0100
committerAndrea Bolognani <abologna@redhat.com>2016-04-20 12:46:48 +0200
commit12209ba5bd047de47fb12789b4d964e16061c4a1 (patch)
tree6fce58c7bd945632f3a632e145f3f65946dfc9e7 /src/util
parent29980231db81396d9fddd8a7d90daeb817bff5c8 (diff)
downloadlibvirt-12209ba5bd047de47fb12789b4d964e16061c4a1.tar.gz
qemu: Probe GIC capabilities
QEMU introduced the query-gic-capabilities QMP command with commit 4468d4e0f383: use the command, if available, to probe available GIC capabilities. The information obtained is stored in a virQEMUCaps instance, and will be later used to fill in a virDomainCaps instance.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/virgic.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util/virgic.h b/src/util/virgic.h
index 470ce95c14..1c9efd60f9 100644
--- a/src/util/virgic.h
+++ b/src/util/virgic.h
@@ -38,4 +38,17 @@ VIR_ENUM_DECL(virGICVersion);
/* Consider GIC v2 the default */
# define VIR_GIC_VERSION_DEFAULT VIR_GIC_VERSION_2
+typedef enum {
+ VIR_GIC_IMPLEMENTATION_NONE = 0,
+ VIR_GIC_IMPLEMENTATION_KERNEL = (1 << 1),
+ VIR_GIC_IMPLEMENTATION_EMULATED = (1 << 2)
+} virGICImplementation;
+
+typedef struct _virGICCapability virGICCapability;
+typedef virGICCapability *virGICCapabilityPtr;
+struct _virGICCapability {
+ virGICVersion version;
+ virGICImplementation implementation;
+};
+
#endif /* __VIR_GIC_H__ */