[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] VT-d: don't needlessly suppress page table sharing


  • To: Jan Beulich <JBeulich@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Thu, 25 Sep 2014 21:29:25 +0000
  • Accept-language: en-US
  • Cc: "Zhang, Yang Z" <yang.z.zhang@xxxxxxxxx>
  • Delivery-date: Thu, 25 Sep 2014 21:29:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: AQHP2AUDrhDhq5KMiEqHZqVgY96P2JwSXwMQ
  • Thread-topic: [PATCH] VT-d: don't needlessly suppress page table sharing

> From: Jan Beulich [mailto:JBeulich@xxxxxxxx]
> Sent: Wednesday, September 24, 2014 7:37 AM
> 
> Despite the mid term goal being to do away with the sharing there's no
> point in suppressing it in cases where it can be used now.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Acked-by: Kevin Tian <kevin.tian@xxxxxxxxx>

> 
> --- a/xen/drivers/passthrough/vtd/iommu.c
> +++ b/xen/drivers/passthrough/vtd/iommu.c
> @@ -1805,7 +1805,7 @@ void iommu_pte_flush(struct domain *d, u
>      }
>  }
> 
> -static int vtd_ept_page_compatible(struct iommu *iommu)
> +static int __init vtd_ept_page_compatible(struct iommu *iommu)
>  {
>      u64 ept_cap, vtd_cap = iommu->cap;
> 
> @@ -1814,8 +1814,8 @@ static int vtd_ept_page_compatible(struc
>      if ( rdmsr_safe(MSR_IA32_VMX_EPT_VPID_CAP, ept_cap) != 0 )
>          return 0;
> 
> -    return ( ept_has_2mb(ept_cap) == cap_sps_2mb(vtd_cap)
> -             && ept_has_1gb(ept_cap) == cap_sps_1gb(vtd_cap) );
> +    return (ept_has_2mb(ept_cap) && opt_hap_2mb) ==
> cap_sps_2mb(vtd_cap) &&
> +           (ept_has_1gb(ept_cap) && opt_hap_1gb) ==
> cap_sps_1gb(vtd_cap);
>  }
> 
>  /*
> 
> 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.