Skip to content
Commit d7306163 authored by Paul Knowles's avatar Paul Knowles Committed by Avi Kivity
Browse files

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: default avatarPaul Knowles <paul@transitive.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 6b390b63
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment