[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v1 06/11] ppc/xics: Make the ICSState a list
From: |
Nikunj A Dadhania |
Subject: |
Re: [Qemu-ppc] [PATCH v1 06/11] ppc/xics: Make the ICSState a list |
Date: |
Mon, 27 Jun 2016 10:29:41 +0530 |
User-agent: |
Notmuch/0.21 (https://notmuchmail.org) Emacs/25.0.94.1 (x86_64-redhat-linux-gnu) |
David Gibson <address@hidden> writes:
>> static void xics_kvm_class_init(ObjectClass *oc, void *data)
>> diff --git a/hw/intc/xics_spapr.c b/hw/intc/xics_spapr.c
>> index eda15a6..b03dd0d 100644
>> --- a/hw/intc/xics_spapr.c
>> +++ b/hw/intc/xics_spapr.c
>> @@ -113,10 +113,10 @@ static void rtas_set_xive(PowerPCCPU *cpu,
>> sPAPRMachineState *spapr,
>> uint32_t nargs, target_ulong args,
>> uint32_t nret, target_ulong rets)
>> {
>> - ICSState *ics = spapr->xics->ics;
>> + ICSState *ics = QLIST_FIRST(&spapr->xics->ics);
>> uint32_t nr, server, priority;
>>
>> - if ((nargs != 3) || (nret != 1)) {
>> + if ((nargs != 3) || (nret != 1) || !ics) {
>> rtas_st(rets, 0, RTAS_OUT_PARAM_ERROR);
>> return;
>
> !ice should surely be an assert, or at least a HW_ERROR, not a PARAM_ERROR.
Sure, will make those changes
Regards
Nikunj
- Re: [Qemu-ppc] [PATCH v1 03/11] ppc/xics: Implement H_IPOLL using an accessor, (continued)
[Qemu-ppc] [PATCH v1 07/11] ppc/xics: An ICS with offset 0 is assumed to be uninitialized, Nikunj A Dadhania, 2016/06/23
[Qemu-ppc] [PATCH v1 08/11] ppc/xics: Use a helper to add a new ICS, Nikunj A Dadhania, 2016/06/23
[Qemu-ppc] [PATCH v1 11/11] ppc/xics: Add xics to the monitor "info pic" command, Nikunj A Dadhania, 2016/06/23
[Qemu-ppc] [PATCH v1 10/11] ppc/xics: Add "native" XICS subclass, Nikunj A Dadhania, 2016/06/23