KVM: VMX: pass vcpu_vmx internally
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Jul 2007 06:31:43 +0000 (16:31 +1000)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:21 +0000 (10:18 +0200)
commit8b9cf98cc7ea7354d6d4cbc4ffdb18a26a1129d3
treee9bb48a799538c24c2ccd6b5023446d18076c881
parent9bd01506ee551689b90ba5822c28ef55207146af
KVM: VMX: pass vcpu_vmx internally

container_of is wonderful, but not casting at all is better.  This
patch changes vmx.c's internal functions to pass "struct vcpu_vmx"
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/vmx.c