]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hvf: Add missing break statement
authorChen Zhang <tgfbeta@me.com>
Mon, 22 Apr 2019 03:42:25 +0000 (11:42 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 May 2019 03:17:31 +0000 (05:17 +0200)
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>
target/i386/hvf/hvf.c

index 42f944730337f70f80ab84ae594b31d04dae1565..2751c8125ca25d60460ed9fd0907a1a4a8eafb9c 100644 (file)
@@ -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;