From: Paolo Bonzini Date: Tue, 30 May 2017 15:19:47 +0000 Subject: Re: [kvm-unit-tests PATCH] powerpc: Fix endless loop that occurs without a device tree Message-Id: <95e3bc86-10a7-8c4e-94d7-dee63c67be2d@redhat.com> List-Id: References: <1496156844-29196-1-git-send-email-thuth@redhat.com> In-Reply-To: <1496156844-29196-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Thomas Huth , kvm@vger.kernel.org Cc: rkrcmar@redhat.com, lvivier@redhat.com, kvm-ppc@vger.kernel.org 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)? Thanks, Paolo