KVM: Fix kvm_arch_vcpu_ioctl_set_sregs so that set_cr0 works properly
authorPaul Knowles <paul@transitive.com>
Wed, 6 Feb 2008 11:02:35 +0000 (11:02 +0000)
committerAvi Kivity <avi@qumranet.com>
Mon, 3 Mar 2008 09:22:14 +0000 (11:22 +0200)
commitd730616384211436cfc84e6c2c1aa45351706a96
tree1689885a6d9cc712f1728b45f7c72d73f0727e6e
parent6b390b6392309b98fd116b57c2926c44975cde26
KVM: Fix kvm_arch_vcpu_ioctl_set_sregs so that set_cr0 works properly

Whilst working on getting a VM to initialize in to IA32e mode I found
this issue. set_cr0 relies on comparing the old cr0 to the new one to
work correctly.  Move the assignment below so the compare can work.

Signed-off-by: Paul Knowles <paul@transitive.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86.c