commit | 8b9cf98cc7ea7354d6d4cbc4ffdb18a26a1129d3 | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Mon Jul 30 16:31:43 2007 +1000 |
committer | Avi Kivity <avi@qumranet.com> | Sat Oct 13 10:18:21 2007 +0200 |
tree | e9bb48a799538c24c2ccd6b5023446d18076c881 | |
parent | 9bd01506ee551689b90ba5822c28ef55207146af [diff] |
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>