summaryrefslogtreecommitdiffstats
path: root/linux-headers
diff options
context:
space:
mode:
authorPaolo Bonzini2022-07-14 14:10:22 +0200
committerPaolo Bonzini2022-07-18 18:51:32 +0200
commit105bb7cdbe9b60129034410e228535f5ea5648ea (patch)
tree584fcf5294f659e0d582d6764e2ffe5bb1958a43 /linux-headers
parentmonitor: add support for boolean statistics (diff)
downloadqemu-105bb7cdbe9b60129034410e228535f5ea5648ea.tar.gz
qemu-105bb7cdbe9b60129034410e228535f5ea5648ea.tar.xz
qemu-105bb7cdbe9b60129034410e228535f5ea5648ea.zip
kvm: add support for boolean statistics
The next version of Linux will introduce boolean statistics, which can only have 0 or 1 values. Convert them to the new QAPI fields added in the previous commit. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-headers')
-rw-r--r--linux-headers/linux/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index 0d05d02ee4..f089349149 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -2031,6 +2031,7 @@ struct kvm_stats_header {
#define KVM_STATS_UNIT_BYTES (0x1 << KVM_STATS_UNIT_SHIFT)
#define KVM_STATS_UNIT_SECONDS (0x2 << KVM_STATS_UNIT_SHIFT)
#define KVM_STATS_UNIT_CYCLES (0x3 << KVM_STATS_UNIT_SHIFT)
+#define KVM_STATS_UNIT_BOOLEAN (0x4 << KVM_STATS_UNIT_SHIFT)
#define KVM_STATS_UNIT_MAX KVM_STATS_UNIT_CYCLES
#define KVM_STATS_BASE_SHIFT 8