diff options
author | Krish Sadhukhan <[email protected]> | 2021-02-02 20:28:40 -0500 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-02-04 05:27:35 -0500 |
commit | 04548ed0206ca895c8edd6a078c20a218423890b (patch) | |
tree | 7e128682251086b26b0c34b7cdfa037b3e20e828 | |
parent | a7fc06dd2f14f88e611a968f7efa6532cdd5529a (diff) |
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
-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; |