Re: [kvm-unit-tests PATCH] powerpc: Fix endless loop that occurs without a device tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30.05.2017 17:19, Paolo Bonzini wrote:
> 
> 
> On 30/05/2017 17:07, Thomas Huth wrote:
>> , NULL, -1, -1);
>> +	int token, ret;
>> +
>> +	token = rtas_token("power-off");
>> +	if (token < 0) {
>> +		puts("RTAS power-off not available\n");
>> +		return;
>> +	}
> 
> Should this do some kind of infinite loop (Linux arch/x86 has play_dead
> which does cli;hlt, not sure if there's something similar for sPAPR)?

The exit() function in lib/powerpc/io.c already calls halt() after
trying to run rtas_power_off() ... I think that should be enough here.

 Thomas

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux