Re: [Qemu-devel] [PATCH v7 5/6] s390x/cpu: Add error handling to cpu creation

2016-03-04 Thread Igor Mammedov
On Thu, 3 Mar 2016 12:52:17 -0500 Matthew Rosato wrote: > >> +S390CPU *s390_new_cpu(MachineState *machine, int64_t id, Error **errp) > >> +{ > >> +S390CPU *cpu = NULL; > >> +Error *local_err = NULL; > > > > Think the naming schema is "err" now. > > > >> + > >> +if (id >= max_cpu

Re: [Qemu-devel] [PATCH v7 5/6] s390x/cpu: Add error handling to cpu creation

2016-03-03 Thread Matthew Rosato
>> +S390CPU *s390_new_cpu(MachineState *machine, int64_t id, Error **errp) >> +{ >> +S390CPU *cpu = NULL; >> +Error *local_err = NULL; > > Think the naming schema is "err" now. > >> + >> +if (id >= max_cpus) { >> +error_setg(errp, "Unable to add CPU: %" PRIi64 >> +

Re: [Qemu-devel] [PATCH v7 5/6] s390x/cpu: Add error handling to cpu creation

2016-03-02 Thread David Hildenbrand
> >> +static void s390_cpu_get_id(Object *obj, Visitor *v, const char *name, > >> +void *opaque, Error **errp) > >> +{ > >> +S390CPU *cpu = S390_CPU(obj); > >> +int64_t value = cpu->id; > >> + > >> +visit_type_int(v, name, &value, errp); > >> +} > >> + > >> +

Re: [Qemu-devel] [PATCH v7 5/6] s390x/cpu: Add error handling to cpu creation

2016-03-02 Thread Matthew Rosato
On 03/02/2016 02:59 AM, David Hildenbrand wrote: >> Check for and propogate errors during s390 cpu creation. >> >> Signed-off-by: Matthew Rosato >> --- >> hw/s390x/s390-virtio-ccw.c | 30 + >> hw/s390x/s390-virtio.c | 2 +- >> hw/s390x/s390-virtio.h | 1 + >> target-

Re: [Qemu-devel] [PATCH v7 5/6] s390x/cpu: Add error handling to cpu creation

2016-03-02 Thread Matthew Rosato
>> +static void s390_cpu_get_id(Object *obj, Visitor *v, const char *name, >> +void *opaque, Error **errp) >> +{ >> +S390CPU *cpu = S390_CPU(obj); >> +int64_t value = cpu->id; >> + >> +visit_type_int(v, name, &value, errp); >> +} >> + >> +static void s390_cpu

Re: [Qemu-devel] [PATCH v7 5/6] s390x/cpu: Add error handling to cpu creation

2016-03-02 Thread David Hildenbrand
> Check for and propogate errors during s390 cpu creation. > > Signed-off-by: Matthew Rosato > --- > hw/s390x/s390-virtio-ccw.c | 30 + > hw/s390x/s390-virtio.c | 2 +- > hw/s390x/s390-virtio.h | 1 + > target-s390x/cpu-qom.h | 3 +++ > target-s390x/cpu.c

Re: [Qemu-devel] [PATCH v7 5/6] s390x/cpu: Add error handling to cpu creation

2016-03-01 Thread David Hildenbrand
> Check for and propogate errors during s390 cpu creation. > > Signed-off-by: Matthew Rosato > --- > hw/s390x/s390-virtio-ccw.c | 30 + > hw/s390x/s390-virtio.c | 2 +- > hw/s390x/s390-virtio.h | 1 + > target-s390x/cpu-qom.h | 3 +++ > target-s390x/cpu.c

[Qemu-devel] [PATCH v7 5/6] s390x/cpu: Add error handling to cpu creation

2016-03-01 Thread Matthew Rosato
Check for and propogate errors during s390 cpu creation. Signed-off-by: Matthew Rosato --- hw/s390x/s390-virtio-ccw.c | 30 + hw/s390x/s390-virtio.c | 2 +- hw/s390x/s390-virtio.h | 1 + target-s390x/cpu-qom.h | 3 +++ target-s390x/cpu.c | 65 ++