drm/i915/gvt: keep oa config in shadow ctx
authorMin He <min.he@intel.com>
Fri, 2 Mar 2018 02:00:25 +0000 (10:00 +0800)
committerZhi Wang <zhi.a.wang@intel.com>
Fri, 9 Mar 2018 13:53:18 +0000 (21:53 +0800)
commitfa3dd623e559e8e7004179f9594b090318df0d05
treea77a09c7b4dcc81f1fbba56da95f640fc4e06772
parentb24881e0b0b69155b092c525b7fded258d78a46d
drm/i915/gvt: keep oa config in shadow ctx

When populating shadow ctx from guest, we should handle oa related
registers in hw ctx, so that they will not be overlapped by guest oa
configs. This patch made it possible to capture oa data from host for
both host and guests.

Signed-off-by: Min He <min.he@intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c
drivers/gpu/drm/i915/gvt/scheduler.h