From: Paul Knowles Date: Wed, 6 Feb 2008 11:02:35 +0000 (+0000) Subject: KVM: Fix kvm_arch_vcpu_ioctl_set_sregs so that set_cr0 works properly X-Git-Tag: v2.6.25-rc4~97^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d730616384211436cfc84e6c2c1aa45351706a96;p=pandora-kernel.git 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 Signed-off-by: Avi Kivity --- Reading git-diff-tree failed