]> err.no Git - linux-2.6/commit
KVM: SVM: de-containization
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Jul 2007 10:07:08 +0000 (20:07 +1000)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:21 +0000 (10:18 +0200)
commite756fc626d7d8a220864dd6bc6634d9d933650b0
tree03ec44448f28c9cf42f0c0e6c514c876102275a6
parent3077c4513c46f66537c1205acc464e49c9847dc0
KVM: SVM: de-containization

container_of is wonderful, but not casting at all is better.  This
patch changes svm.c's internal functions to pass "struct vcpu_svm"
instead of "struct kvm_vcpu" and using container_of.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/svm.c