diff options
author | Glauber Costa <glommer@redhat.com> | 2008-09-17 23:16:59 -0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-10-15 14:25:10 +0200 |
commit | 7d8fece678c1abc2ca3e1ceda2277c3538a9161c (patch) | |
tree | 4a41eaf5fd8f8d04fcc483197c67a448981fc0c8 /Documentation/spi | |
parent | af2152f5457448bd90cb019c108e0a85e716fdbe (diff) |
KVM: Don't destroy vcpu in case vcpu_setup fails
One of vcpu_setup responsibilities is to do mmu initialization.
However, in case we fail in kvm_arch_vcpu_reset, before we get the
chance to init mmu. OTOH, vcpu_destroy will attempt to destroy mmu,
triggering a bug. Keeping track of whether or not mmu is initialized
would unnecessarily complicate things. Rather, we just make return,
making sure any needed uninitialization is done before we return, in
case we fail.
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'Documentation/spi')
0 files changed, 0 insertions, 0 deletions