KVM: Use alignment properties of vcpu to simplify FPU ops
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Jul 2007 11:13:43 +0000 (21:13 +1000)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:21 +0000 (10:18 +0200)
commitb114b0804df7131cb6764b948c1c530c834fa3c0
tree4e5ced9ed1cdb673d27b26b166cd0bd7c845d5b9
parentc16f862d0257349607b7a9be7b4a4b7ed419a3ab
KVM: Use alignment properties of vcpu to simplify FPU ops

Now we use a kmem cache for allocating vcpus, we can get the 16-byte
alignment required by fxsave & fxrstor instructions, and avoid
manually aligning the buffer.

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