]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: stats: Fix value for KVM_STATS_UNIT_MAX for boolean stats
authorOliver Upton <oupton@google.com>
Tue, 19 Jul 2022 12:52:29 +0000 (12:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Jul 2022 12:54:11 +0000 (08:54 -0400)
commit3419432e6bb8ba95b4fd3ded10842b9078155637
treedc44d589445396f5856b6da5397ffe0283c9b970
parentfaac309f446bdbf1b2b71cd9c5ef49584c13c5e6
KVM: stats: Fix value for KVM_STATS_UNIT_MAX for boolean stats

commit 509c397cb4ea ("kvm: stats: tell userspace which values are
boolean") added a new stat unit (boolean) but failed to raise
KVM_STATS_UNIT_MAX.

Fix by pointing UNIT_MAX at the new max value of UNIT_BOOLEAN.

Fixes: 509c397cb4ea ("kvm: stats: tell userspace which values are boolean")
Reported-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Signed-off-by: Oliver Upton <oupton@google.com>
Message-Id: <20220719125229.2934273-1-oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/api.rst
include/uapi/linux/kvm.h