lkml.org 
[lkml]   [2018]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH v3 11/24] drm/i915/gvt: Update _PAGE_DIRTY to _PAGE_DIRTY_BITS
    Date
    Update _PAGE_DIRTY to _PAGE_DIRTY_BITS in split_2MB_gtt_entry().

    In order to support Control Flow Enforcement (CET), _PAGE_DIRTY
    is now _PAGE_DIRTY_HW or _PAGE_DIRTY_SW.

    Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com>
    ---
    drivers/gpu/drm/i915/gvt/gtt.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c
    index 00aad8164dec..2d6ba1462dd8 100644
    --- a/drivers/gpu/drm/i915/gvt/gtt.c
    +++ b/drivers/gpu/drm/i915/gvt/gtt.c
    @@ -1170,7 +1170,7 @@ static int split_2MB_gtt_entry(struct intel_vgpu *vgpu,
    }

    /* Clear dirty field. */
    - se->val64 &= ~_PAGE_DIRTY;
    + se->val64 &= ~_PAGE_DIRTY_BITS;

    ops->clear_pse(se);
    ops->clear_ips(se);
    --
    2.17.1
    \
     
     \ /
      Last update: 2018-08-30 20:07    [W:4.992 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site