Skip to content
  • Jan Kiszka's avatar
    kvm: Separate TCG from KVM cpu execution · 6792a57b
    Jan Kiszka authored
    
    
    Mixing up TCG bits with KVM already led to problems around eflags
    emulation on x86. Moreover, quite some code that TCG requires on cpu
    enty/exit is useless for KVM. So dispatch between tcg_cpu_exec and
    kvm_cpu_exec as early as possible.
    
    The core logic of cpu_halted from cpu_exec is added to
    kvm_arch_process_irqchip_events. Moving away from cpu_exec makes
    exception_index meaningless for KVM, we can simply pass the exit reason
    directly (only "EXCP_DEBUG vs. rest" is relevant).
    
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    6792a57b