We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5326303 commit 0edc60fCopy full SHA for 0edc60f
arch/arm64/include/asm/kvm_nested.h
@@ -32,7 +32,7 @@ static inline u64 translate_tcr_el2_to_tcr_el1(u64 tcr)
32
33
static inline u64 translate_cptr_el2_to_cpacr_el1(u64 cptr_el2)
34
{
35
- u64 cpacr_el1 = 0;
+ u64 cpacr_el1 = CPACR_ELx_RES1;
36
37
if (cptr_el2 & CPTR_EL2_TTA)
38
cpacr_el1 |= CPACR_ELx_TTA;
@@ -41,6 +41,8 @@ static inline u64 translate_cptr_el2_to_cpacr_el1(u64 cptr_el2)
41
if (!(cptr_el2 & CPTR_EL2_TZ))
42
cpacr_el1 |= CPACR_ELx_ZEN;
43
44
+ cpacr_el1 |= cptr_el2 & (CPTR_EL2_TCPAC | CPTR_EL2_TAM);
45
+
46
return cpacr_el1;
47
}
48
0 commit comments