Eduardo Habkost b8f5cfd682 pc: Move q35 compat props to PC_COMPAT_*
For each compat property on PC_Q35_COMPAT_*, there are only two
possibilities:

 * If the device is never instantiated when using a machine other than
   pc-q35, then the compat property can be safely added to
   PC_COMPAT_*;
 * If the device can be instantiated when using a machine other than
   pc-q35, that means the other machines also need the compat property
   to be set.

That means we don't need separate PC_Q35_COMPAT_* macros at all, today.

The hpet.hpet-intcap case is interesting: piix and q35 do have something
that emulates different defaults, but the machine-specific default is
applied _after_ compat_props are applied, by simply checking if the
property is zero (which is the real default on the hpet code).

The hpet.hpet-intcap=0x4 compat property can (should?) be applied to
piix too, because 0x4 was the default on both piix and q35 before the
hpet-intcap property was introduced.

Now, if one day we change the default HPET intcap on one of the PC
machine-types again, we may want to introduce PC_{Q35,I440FX}_COMPAT
macros. But while we don't need that, we can keep the code simple.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Cc: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2014-06-29 18:59:06 +03:00
..
2014-06-19 18:44:22 +03:00
2014-02-14 16:22:31 +01:00
2013-06-07 14:55:33 +02:00
2013-12-17 20:12:51 +00:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2014-02-26 17:20:00 +00:00
2014-02-14 16:22:31 +01:00
2013-07-29 21:06:27 +02:00
2014-06-19 18:44:22 +03:00
2014-06-27 13:48:23 +02:00
2014-02-27 10:01:40 +00:00
2014-03-05 03:06:46 +01:00
2014-02-10 10:23:35 +02:00
2013-06-27 15:38:35 -05:00
2014-03-11 13:25:48 +02:00
2014-06-05 21:52:37 +01:00
2014-05-28 17:36:21 +02:00
2013-05-01 20:55:21 +04:00
2014-06-02 16:29:00 +02:00