s390: simplify kvm cpu init
There is no special code right now and the reset ioctl is done later on in the the reset handler anyway. Lets simplify the cpu init. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
		
							parent
							
								
									0bc472a9d6
								
							
						
					
					
						commit
						1c9d2a1d3c
					
				@ -103,13 +103,8 @@ unsigned long kvm_arch_vcpu_id(CPUState *cpu)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
int kvm_arch_init_vcpu(CPUState *cpu)
 | 
					int kvm_arch_init_vcpu(CPUState *cpu)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    int ret = 0;
 | 
					    /* nothing todo yet */
 | 
				
			||||||
 | 
					    return 0;
 | 
				
			||||||
    if (kvm_vcpu_ioctl(cpu, KVM_S390_INITIAL_RESET, NULL) < 0) {
 | 
					 | 
				
			||||||
        perror("cannot init reset vcpu");
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return ret;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void kvm_arch_reset_vcpu(CPUState *cpu)
 | 
					void kvm_arch_reset_vcpu(CPUState *cpu)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user