diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2022-07-14 14:10:22 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-07-18 18:51:32 +0200 |
| commit | 105bb7cdbe9b60129034410e228535f5ea5648ea (patch) | |
| tree | 584fcf5294f659e0d582d6764e2ffe5bb1958a43 /linux-headers | |
| parent | 1ca1a7ec3637bc19818eab8085cbbe273217ad68 (diff) | |
| download | focaccia-qemu-105bb7cdbe9b60129034410e228535f5ea5648ea.tar.gz focaccia-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.h | 1 |
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 |