x86/hvm: remove the judgment on IDENT_PT for EMT
PATCH 1/1 x86/hvm: remove the judgment on IDENT_PT for EMT
When trying to get the EPT EMT type, the judgment on HVM_PARAM_IDENT_PT is not correct which always returns WB type if the parameter is not set. Remove the related code.
Signed-off-by Dongxiao Xu <[email protected]>
--- xen/arch/x86/hvm/mtrr.c | 3 --- 1 file changed, 3 deletions(-)
xen/arch/x86/hvm/mtrr.c +0 -3
@@ -693,9 +693,6 @@ uint8_t epte_get_entry_emt(struct domain *d, unsigned long gfn, mfn_t mfn, ((d->vcpu == NULL) || ((v = d->vcpu[0]) == NULL)) )return MTRR_TYPE_WRBACK ; -if ( !v->domain->arch.hvm_domain.params[HVM_PARAM_IDENT_PT ] ) -return MTRR_TYPE_WRBACK ; -if ( !mfn_valid (mfn_x (mfn)) )return MTRR_TYPE_UNCACHABLE ;
Signature · 1 line
1.7.9.5