Skip to content

Commit

Permalink
hvf: Add missing break statement
Browse files Browse the repository at this point in the history
In target/i386/hvf/hvf.c, a break statement was probably missing in
`hvf_vcpu_exec()`, in handling EXIT_REASON_HLT.

These lines seemed to be equivalent to `kvm_handle_halt()`.

Signed-off-by: Chen Zhang <tgfbeta@me.com>
Message-Id: <087F1D9C-109D-41D1-BE2C-CE5D840C981B@me.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
zhangchn authored and bonzini committed May 17, 2019
1 parent 2e56fbc commit 3b9c59d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target/i386/hvf/hvf.c
Expand Up @@ -708,6 +708,7 @@ int hvf_vcpu_exec(CPUState *cpu)
!(idtvec_info & VMCS_IDT_VEC_VALID)) {
cpu->halted = 1;
ret = EXCP_HLT;
break;
}
ret = EXCP_INTERRUPT;
break;
Expand Down

0 comments on commit 3b9c59d

Please sign in to comment.