Skip to contentSkip to conversation

x86/hvm: remove the judgment on IDENT_PT for EMT

PATCH New Dongxiao Xu 1 participant 1 message Dec 3, 2013

lore
Share & tools
lore
#0 lore raw

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.

---
 xen/arch/x86/hvm/mtrr.c |    3 ---
 1 file changed, 3 deletions(-)
xen/arch/x86/hvm/mtrr.c +0 -3
index 4ff1e55..a796bd4 100644
@@ -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