qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [PATCH v5] ppc: spapr-rtas - implement os-term rtas call


From: Nikunj A Dadhania
Subject: Re: [Qemu-ppc] [PATCH v5] ppc: spapr-rtas - implement os-term rtas call
Date: Mon, 30 Jun 2014 14:55:52 +0530
User-agent: Notmuch/0.17+27~gae47d61 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-redhat-linux-gnu)

Alexander Graf <address@hidden> writes:

>> Am 30.06.2014 um 10:35 schrieb Nikunj A Dadhania <address@hidden>:
>> 
>> +static void rtas_ibm_os_term(PowerPCCPU *cpu,
>> +                            sPAPREnvironment *spapr,
>> +                            uint32_t token, uint32_t nargs,
>> +                            target_ulong args,
>> +                            uint32_t nret, target_ulong rets)
>> +{
>> +    target_ulong ret = 0;
>> +
>> +    qapi_event_send_guest_panicked(GUEST_PANIC_ACTION_PAUSE, &error_abort);
>
> The guest doesn't pause. 

I see the event reaching libvirt and a dump taken and the guest
restarts.

> Since the guest will call os-term in a loop, this will also flood the
> event listener with lots and lots of panic messages.

        do {
                status = rtas_call(rtas_token("ibm,os-term"), 1, 1, NULL,
                                   __pa(rtas_os_term_buf));
        } while (rtas_busy_delay(status));

So when status from the rtas call is success, the loop should exit.

Am I missing something?

Regards
Nikunj




reply via email to

[Prev in Thread] Current Thread [Next in Thread]