mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-12 12:25:18 +02:00
ANDROID: KVM: arm64: Trap external trace for protected VMs
pKVM does not support external trace for protected VMs. Trap external trace, and add the ExtTrcBuff to make it possible to check for the feature. Bug: 278749606 Change-Id: I927ee8c661abe38c894b8fe233a76623fcc2a2d7 Signed-off-by: Fuad Tabba <tabba@google.com>
This commit is contained in:
parent
79358f32ef
commit
b04695532d
|
@ -201,6 +201,10 @@ static void pvm_init_traps_aa64dfr0(struct kvm_vcpu *vcpu)
|
||||||
cptr_set |= CPTR_EL2_TTA;
|
cptr_set |= CPTR_EL2_TTA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Trap External Trace */
|
||||||
|
if (!FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_EL1_ExtTrcBuff), feature_ids))
|
||||||
|
mdcr_clear |= MDCR_EL2_E2TB_MASK << MDCR_EL2_E2TB_SHIFT;
|
||||||
|
|
||||||
vcpu->arch.mdcr_el2 |= mdcr_set;
|
vcpu->arch.mdcr_el2 |= mdcr_set;
|
||||||
vcpu->arch.mdcr_el2 &= ~mdcr_clear;
|
vcpu->arch.mdcr_el2 &= ~mdcr_clear;
|
||||||
vcpu->arch.cptr_el2 |= cptr_set;
|
vcpu->arch.cptr_el2 |= cptr_set;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user