mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 12:07:31 +00:00 
			
		
		
		
	ppc: Ignore the CPU_INTERRUPT_EXITTB interrupt with KVM
This only makes sense with an emulated CPU. Don't set the bit in CPUState::interrupt_request when using KVM to avoid confusions. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <157548863423.3650476.16424649423510075159.stgit@bahia.lan> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
		
							parent
							
								
									c1ad0b892c
								
							
						
					
					
						commit
						6d38666a89
					
				| @ -22,6 +22,7 @@ | ||||
| 
 | ||||
| #include "qemu/main-loop.h" | ||||
| #include "exec/exec-all.h" | ||||
| #include "sysemu/kvm.h" | ||||
| 
 | ||||
| /* Swap temporary saved registers with GPRs */ | ||||
| static inline void hreg_swap_gpr_tgpr(CPUPPCState *env) | ||||
| @ -102,6 +103,10 @@ static inline void hreg_compute_hflags(CPUPPCState *env) | ||||
| 
 | ||||
| static inline void cpu_interrupt_exittb(CPUState *cs) | ||||
| { | ||||
|     if (!kvm_enabled()) { | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     if (!qemu_mutex_iothread_locked()) { | ||||
|         qemu_mutex_lock_iothread(); | ||||
|         cpu_interrupt(cs, CPU_INTERRUPT_EXITTB); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Greg Kurz
						Greg Kurz