Revision bb4ea393 target-i386/kvm.c

b/target-i386/kvm.c
1618 1618
          (env->eflags & IF_MASK)) &&
1619 1619
        !(env->interrupt_request & CPU_INTERRUPT_NMI)) {
1620 1620
        env->halted = 1;
1621
        return 0;
1621
        return EXCP_HLT;
1622 1622
    }
1623 1623

  
1624
    return 1;
1624
    return 0;
1625 1625
}
1626 1626

  
1627 1627
static bool host_supports_vmx(void)
......
1637 1637
int kvm_arch_handle_exit(CPUState *env, struct kvm_run *run)
1638 1638
{
1639 1639
    uint64_t code;
1640
    int ret = 0;
1640
    int ret;
1641 1641

  
1642 1642
    switch (run->exit_reason) {
1643 1643
    case KVM_EXIT_HLT:
......
1645 1645
        ret = kvm_handle_halt(env);
1646 1646
        break;
1647 1647
    case KVM_EXIT_SET_TPR:
1648
        ret = 1;
1648
        ret = 0;
1649 1649
        break;
1650 1650
    case KVM_EXIT_FAIL_ENTRY:
1651 1651
        code = run->fail_entry.hardware_entry_failure_reason;

Also available in: Unified diff