angler-fishThe Vulnerability History Project

KVM: cleanup io_device code

      We modernize the io_device code so that we use container_of() instead of
dev->private, and move the vtable to a separate ops structure
(theoretically allows better caching for multiple instances of the same
ops structure)

Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
    
commit d76685c4a074041ed168e0b04dd604c3df5dcaa5
+28 -12
+14 -6
+15 -7
+1 -1
+15 -10
+15 -7
+20 -9
+1 -1
expand_less