vl: Report accelerator not supported for target more nicely
When you ask for an accelerator not supported for your target, you get a bogus "accelerator does not exist" message: $ qemu-system-arm -machine none,accel=kvm KVM not supported for this target "kvm" accelerator does not exist. No accelerator found! Suppress it. Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
		
							parent
							
								
									2d03b49c3f
								
							
						
					
					
						commit
						b321afbefd
					
				
							
								
								
									
										2
									
								
								vl.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								vl.c
									
									
									
									
									
								
							@ -2740,7 +2740,7 @@ static int configure_accelerator(QEMUMachine *machine)
 | 
				
			|||||||
                if (!accel_list[i].available()) {
 | 
					                if (!accel_list[i].available()) {
 | 
				
			||||||
                    printf("%s not supported for this target\n",
 | 
					                    printf("%s not supported for this target\n",
 | 
				
			||||||
                           accel_list[i].name);
 | 
					                           accel_list[i].name);
 | 
				
			||||||
                    continue;
 | 
					                    break;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                *(accel_list[i].allowed) = true;
 | 
					                *(accel_list[i].allowed) = true;
 | 
				
			||||||
                ret = accel_list[i].init(machine);
 | 
					                ret = accel_list[i].init(machine);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user