]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7b1b6478b2f3c7d636c2a1be0e14e09c5cb0135
treee9bb48a799538c24c2ccd6b5023446d18076c881
parent5b523f3185d0b05fd8d39a9aeb2228655bdd6f61
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