commit | b44ea385d8cb187e04ec8d901d4c320c8b07c40b | [log] [tgz] |
---|---|---|
author | Joerg Roedel <joerg.roedel@amd.com> | Wed Feb 24 18:59:17 2010 +0100 |
committer | Avi Kivity <avi@redhat.com> | Sun Apr 25 13:53:20 2010 +0300 |
tree | dcfa3bc8526ec7eef962d86f4a9ac966aaec6a1f | |
parent | 82494028dff648c29e3a40915f1fceca51b4490a [diff] |
KVM: x86: Don't set arch.cr0 in kvm_set_cr0 The vcpu->arch.cr0 variable is already set in the architecture specific set_cr0 callbacks. There is no need to set it in the common code. This allows the architecture code to keep the old arch.cr0 value if it wants. This is required for nested svm to decide if a selective_cr0 exit needs to be injected. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>