Re: [Qemu-devel] [PATCH 1/5] spapr: Introduce DRC subclasses

2017-06-04 Thread David Gibson
On Sat, Jun 03, 2017 at 05:05:26PM -0500, Michael Roth wrote: > Quoting David Gibson (2017-06-02 02:29:48) > > Currently we only have a single QOM type for all DRCs, but lots of > > places where we switch behaviour based on the DRC's PAPR defined type. > > This is a poor use of our existing type sy

Re: [Qemu-devel] [PATCH 1/5] spapr: Introduce DRC subclasses

2017-06-03 Thread Michael Roth
Quoting David Gibson (2017-06-02 02:29:48) > Currently we only have a single QOM type for all DRCs, but lots of > places where we switch behaviour based on the DRC's PAPR defined type. > This is a poor use of our existing type system. > > So, instead create QOM subclasses for each PAPR defined DRC

[Qemu-devel] [PATCH 1/5] spapr: Introduce DRC subclasses

2017-06-02 Thread David Gibson
Currently we only have a single QOM type for all DRCs, but lots of places where we switch behaviour based on the DRC's PAPR defined type. This is a poor use of our existing type system. So, instead create QOM subclasses for each PAPR defined DRC type. We also introduce intermediate subclasses for