From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH 1/2] KVM: device: add simple registration mechanism for kvm_device_ops Date: Fri, 27 Jun 2014 16:17:57 +0200 Message-ID: <53AD7D15.2010209@redhat.com> References: <1403803817-22140-1-git-send-email-will.deacon@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Gleb Natapov , Marc Zyngier , Christoffer Dall , Cornelia Huck , Alexander Graf , Alex Williamson To: Will Deacon , kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu Return-path: Received: from mx1.redhat.com ([209.132.183.28]:19197 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752779AbaF0OSV (ORCPT ); Fri, 27 Jun 2014 10:18:21 -0400 In-Reply-To: <1403803817-22140-1-git-send-email-will.deacon@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: Il 26/06/2014 19:30, Will Deacon ha scritto: > kvm_ioctl_create_device currently has knowledge of all the device types > and their associated ops. This is fairly inflexible when adding support > for new in-kernel device emulations, so move what we currently have out > into a table, which can support dynamic registration of ops by new > drivers for virtual hardware. > > I didn't try to port all current drivers over, as it's not always clear > which initialisation hook the ops should be registered from. Conny, Alex (Graf & Williamson), can you help Will here? The idea looks sane, but I'd rather merge it with all devices converted. Paolo