Skip to content

Commit

Permalink
KVM: SVM: de-containization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rusty Russell authored and Avi Kivity committed Oct 13, 2007
1 parent 3077c45 commit e756fc6
Showing 1 changed file with 108 additions and 124 deletions.
Loading

0 comments on commit e756fc6

Please sign in to comment.