diff options
author | Krish Sadhukhan <krish.sadhukhan@oracle.com> | 2021-02-03 02:28:40 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-04 11:27:35 +0100 |
commit | 04548ed0206ca895c8edd6a078c20a218423890b (patch) | |
tree | 7e128682251086b26b0c34b7cdfa037b3e20e828 /arch/x86/kvm/svm/svm.c | |
parent | KVM: SVM: use .prepare_guest_switch() to handle CPU register save/setup (diff) | |
download | linux-04548ed0206ca895c8edd6a078c20a218423890b.tar.xz linux-04548ed0206ca895c8edd6a078c20a218423890b.zip |
KVM: SVM: Replace hard-coded value with #define
Replace the hard-coded value for bit# 1 in EFLAGS, with the available
#define.
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Message-Id: <20210203012842.101447-2-krish.sadhukhan@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 645bad5e8e81..30681633193e 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -1207,7 +1207,7 @@ static void init_vmcb(struct vcpu_svm *svm) svm_set_efer(&svm->vcpu, 0); save->dr6 = 0xffff0ff0; - kvm_set_rflags(&svm->vcpu, 2); + kvm_set_rflags(&svm->vcpu, X86_EFLAGS_FIXED); save->rip = 0x0000fff0; svm->vcpu.arch.regs[VCPU_REGS_RIP] = save->rip; |