projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d8604b
)
KVM: arm64: Use defined value for SCTLR_ELx_EE
author
Fuad Tabba
<tabba@google.com>
Wed, 8 Dec 2021 19:28:10 +0000
(19:28 +0000)
committer
Marc Zyngier
<maz@kernel.org>
Mon, 20 Dec 2021 13:55:48 +0000
(13:55 +0000)
Replace the hardcoded value with the existing definition.
No functional change intended.
Signed-off-by: Fuad Tabba <tabba@google.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link:
https://lore.kernel.org/r/20211208192810.657360-1-tabba@google.com
arch/arm64/include/asm/kvm_emulate.h
patch
|
blob
|
history
diff --git
a/arch/arm64/include/asm/kvm_emulate.h
b/arch/arm64/include/asm/kvm_emulate.h
index f4871e47b2d0b121e2bfed24d706758d31d6f310..cd5fd9b92b043d880dda4cea443c43216a478797 100644
(file)
--- a/
arch/arm64/include/asm/kvm_emulate.h
+++ b/
arch/arm64/include/asm/kvm_emulate.h
@@
-386,7
+386,7
@@
static inline void kvm_vcpu_set_be(struct kvm_vcpu *vcpu)
*vcpu_cpsr(vcpu) |= PSR_AA32_E_BIT;
} else {
u64 sctlr = vcpu_read_sys_reg(vcpu, SCTLR_EL1);
- sctlr |=
(1 << 25)
;
+ sctlr |=
SCTLR_ELx_EE
;
vcpu_write_sys_reg(vcpu, sctlr, SCTLR_EL1);
}
}