diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2024-11-06 11:07:27 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-10 23:34:44 +0100 |
commit | d2401a6eae8f8fbd8e569c8b0638f0cbc80ec88e (patch) | |
tree | c7d6d07c43dcc84db027af9c421f2e10ac302bd1 /rust/qemu-api-macros/src/utils.rs | |
parent | d7f895cb62f3a709e7b9aeeab19678811deda973 (diff) | |
download | qemu-d2401a6eae8f8fbd8e569c8b0638f0cbc80ec88e.zip qemu-d2401a6eae8f8fbd8e569c8b0638f0cbc80ec88e.tar.gz qemu-d2401a6eae8f8fbd8e569c8b0638f0cbc80ec88e.tar.bz2 |
target/i386/kvm: Clean up error handling in kvm_arch_init()
Currently, there're following incorrect error handling cases in
kvm_arch_init():
* Missed to handle failure of kvm_get_supported_feature_msrs().
* Missed to return when kvm_vm_enable_disable_exits() fails.
* MSR filter related cases called exit() directly instead of returning
to kvm_init(). (The caller of kvm_arch_init() - kvm_init() - needs to
know if kvm_arch_init() fails in order to perform cleanup).
Fix the above cases.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Zide Chen <zide.chen@intel.com>
Link: https://lore.kernel.org/r/20241106030728.553238-11-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api-macros/src/utils.rs')
0 files changed, 0 insertions, 0 deletions