Re: [Qemu-devel] [PATCH v5 01/10] machine: export register_compat_prop()

2017-06-25 Thread Peter Xu
On Fri, Jun 23, 2017 at 06:24:32PM -0300, Eduardo Habkost wrote: > On Fri, Jun 23, 2017 at 12:46:37PM +0800, Peter Xu wrote: > > We have HW_COMPAT_*, however that's only bound to machines, not other > > things (like accelerators). Behind it, it was register_compat_prop() > > that played the

Re: [Qemu-devel] [PATCH v5 01/10] machine: export register_compat_prop()

2017-06-23 Thread Eduardo Habkost
On Fri, Jun 23, 2017 at 12:46:37PM +0800, Peter Xu wrote: > We have HW_COMPAT_*, however that's only bound to machines, not other > things (like accelerators). Behind it, it was register_compat_prop() > that played the trick. Let's export the function for further use > outside HW_COMPAT_* magic.

[Qemu-devel] [PATCH v5 01/10] machine: export register_compat_prop()

2017-06-22 Thread Peter Xu
We have HW_COMPAT_*, however that's only bound to machines, not other things (like accelerators). Behind it, it was register_compat_prop() that played the trick. Let's export the function for further use outside HW_COMPAT_* magic. Meanwhile, move it to qdev-properties.c where seems more proper