[PATCH 05/14] drm/i915/gvt: Add software PTE flag to mark special 64K splited entry
Du, Changbin
changbin.du at intel.com
Fri Mar 23 08:03:34 UTC 2018
On Fri, Mar 23, 2018 at 11:20:42AM +0800, Zhenyu Wang wrote:
> On 2018.03.15 15:05:04 +0800, changbin.du at intel.com wrote:
> > From: Changbin Du <changbin.du at intel.com>
> >
> > This add a software PTE flag on the Ignored bit of PTE. It will be used
> > to identify splited 64K shadow entries.
> >
> > Signed-off-by: Changbin Du <changbin.du at intel.com>
> > ---
> > drivers/gpu/drm/i915/gvt/gtt.c | 21 +++++++++++++++++++++
> > drivers/gpu/drm/i915/gvt/gtt.h | 3 +++
> > 2 files changed, 24 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c
> > index 2bc7afd..05b724e 100644
> > --- a/drivers/gpu/drm/i915/gvt/gtt.c
> > +++ b/drivers/gpu/drm/i915/gvt/gtt.c
> > @@ -348,6 +348,9 @@ static inline int gtt_set_entry64(void *pt,
> > #define ADDR_64K_MASK GENMASK_ULL(GTT_HAW - 1, 16)
> > #define ADDR_4K_MASK GENMASK_ULL(GTT_HAW - 1, 12)
> >
> > +#define GTT_SPTE_FLAG_MASK GENMASK(52, 62)
>
> GENMASK low to high?
>
Yes, thanks for pointing out!
More information about the intel-gvt-dev
mailing list