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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux