aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api-macros/src
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2024-11-06 11:07:26 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2025-01-10 23:34:44 +0100
commitd7f895cb62f3a709e7b9aeeab19678811deda973 (patch)
treee626269bd58b1f5bc2b201c9c4af301efa463587 /rust/qemu-api-macros/src
parentfb81c9cfdd9fc37687a36f41ca07ab0e8a6d9899 (diff)
downloadqemu-d7f895cb62f3a709e7b9aeeab19678811deda973.zip
qemu-d7f895cb62f3a709e7b9aeeab19678811deda973.tar.gz
qemu-d7f895cb62f3a709e7b9aeeab19678811deda973.tar.bz2
target/i386/kvm: Return -1 when kvm_msr_energy_thread_init() fails
It is common practice to return a negative value (like -1) to indicate an error, and other functions in kvm_arch_init() follow this style. To avoid confusion (sometimes returned -1 indicates failure, and sometimes -1, in a same function), return -1 when kvm_msr_energy_thread_init() fails. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20241106030728.553238-10-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api-macros/src')
0 files changed, 0 insertions, 0 deletions