]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: x86: Don't set arch.cr0 in kvm_set_cr0
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 24 Feb 2010 17:59:17 +0000 (18:59 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 10:53:20 +0000 (13:53 +0300)
commitb44ea385d8cb187e04ec8d901d4c320c8b07c40b
treedcfa3bc8526ec7eef962d86f4a9ac966aaec6a1f
parent82494028dff648c29e3a40915f1fceca51b4490a
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>
arch/x86/kvm/x86.c