KVM: cleanup io_device code
authorGregory Haskins <ghaskins@novell.com>
Mon, 1 Jun 2009 16:54:50 +0000 (12:54 -0400)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:45 +0000 (08:32 +0300)
commitd76685c4a074041ed168e0b04dd604c3df5dcaa5
tree828fb3a57b7829530904318a0ad9d006e21408ad
parent787a660a4f03325a0e00493ac39017e53fd345fa
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>
arch/x86/kvm/i8254.c
arch/x86/kvm/i8259.c
arch/x86/kvm/lapic.c
arch/x86/kvm/x86.c
virt/kvm/coalesced_mmio.c
virt/kvm/ioapic.c
virt/kvm/iodev.h
virt/kvm/kvm_main.c