From: Will Deacon Date: Tue, 2 Sep 2014 09:27:33 +0000 (+0100) Subject: KVM: device: add simple registration mechanism for kvm_device_ops X-Git-Tag: fixes-for-v3.18-merge-window~23^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d60eacb07053142bfb9b41582074a89a790a9d46;p=pandora-kernel.git KVM: device: add simple registration mechanism for kvm_device_ops 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. Cc: Alex Williamson Cc: Alex Graf Cc: Gleb Natapov Cc: Paolo Bonzini Cc: Marc Zyngier Acked-by: Cornelia Huck Reviewed-by: Christoffer Dall Signed-off-by: Will Deacon Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed