On Tue, Nov 10, 2020 at 09:39:37PM +0100, Paolo Bonzini wrote: > On 10/11/20 18:55, Eduardo Habkost wrote: > > > I think we should not try yo implement interfaces conditionally (i.e. have > > > TYPE_X86_ACCEL implemented only on qemu-system-{i386,x86_64} and not > > > qemu-system-arm), even if technically the accel/ objects are per-target > > > (specific_ss) rather than common. > > If the accel objects are already per target, it seems appropriate > > to have a QOM type hierarchy that reflects that. > > > > `qemu-system-x86_64 -accel kvm` would create a kvm-x86_64-accel > > object, but `qemu-system-arm -accel kvm` would create a > > kvm-arm-accel. > > ... and fall back to kvm-accel? So accel_find would be the only place to > change.
Sounds good. This way we don't need to convert all accelerators or all targets at the same time. -- Eduardo