linux/drivers/gpu/drm/i915/gvt
Christoph Hellwig 9bf5b9eb23 kernel: move use_mm/unuse_mm to kthread.c
Patch series "improve use_mm / unuse_mm", v2.

This series improves the use_mm / unuse_mm interface by better documenting
the assumptions, and my taking the set_fs manipulations spread over the
callers into the core API.

This patch (of 3):

Use the proper API instead.

Link: http://lkml.kernel.org/r/20200404094101.672954-1-hch@lst.de

These helpers are only for use with kernel threads, and I will tie them
more into the kthread infrastructure going forward.  Also move the
prototypes to kthread.h - mmu_context.h was a little weird to start with
as it otherwise contains very low-level MM bits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Tested-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Felipe Balbi <balbi@kernel.org>
Cc: Jason Wang <jasowang@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: http://lkml.kernel.org/r/20200404094101.672954-1-hch@lst.de
Link: http://lkml.kernel.org/r/20200416053158.586887-1-hch@lst.de
Link: http://lkml.kernel.org/r/20200404094101.672954-5-hch@lst.de
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-10 19:14:18 -07:00
..
aperture_gm.c drm/i915: Move GGTT fence registers under gt/ 2020-03-16 20:28:26 +00:00
cfg_space.c drm/i915/gvt: Wean gvt off using dev_priv 2020-03-06 10:08:10 +08:00
cmd_parser.c Merge tag 'gvt-next-2020-05-12' of https://github.com/intel/gvt-linux into drm-intel-next-queued 2020-05-14 18:02:23 +03:00
cmd_parser.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
debug.h
debugfs.c drm/i915/gvt: Wean gvt off using dev_priv 2020-03-06 10:08:10 +08:00
display.c drm/i915/gvt: Init DPLL/DDI vreg for virtual display instead of inheritance. 2020-05-09 10:24:17 +08:00
display.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
dmabuf.c UAPI Changes: 2020-03-19 10:40:27 +10:00
dmabuf.h
edid.c drm/i915/gvt: Wean gvt off using dev_priv 2020-03-06 10:08:10 +08:00
edid.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
execlist.c drm/i915/gvt: move workload destroy out of execlist complete 2020-05-08 12:34:12 +08:00
execlist.h drm/i915/gvt: Wean gvt off dev_priv->engine[] 2020-03-06 09:56:15 +08:00
fb_decoder.c drm/i915/gvt: Wean gvt off using dev_priv 2020-03-06 10:08:10 +08:00
fb_decoder.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
firmware.c Merge tag 'gvt-next-2020-03-10' of https://github.com/intel/gvt-linux into drm-intel-next-queued 2020-03-10 15:46:29 -07:00
gtt.c Merge tag 'gvt-next-2020-05-12' of https://github.com/intel/gvt-linux into drm-intel-next-queued 2020-05-14 18:02:23 +03:00
gtt.h drm/i915/gvt: Support PPGTT table load command 2020-05-08 12:36:38 +08:00
gvt.c Merge tag 'gvt-next-2020-04-22' of https://github.com/intel/gvt-linux into drm-intel-next-queued 2020-04-30 10:53:21 +03:00
gvt.h drm/i915/gvt: skip populate shadow context if guest context not changed 2020-04-17 17:31:22 +08:00
handlers.c Merge tag 'gvt-next-2020-05-12' of https://github.com/intel/gvt-linux into drm-intel-next-queued 2020-05-14 18:02:23 +03:00
hypercall.h i915/gvt: remove unused xen bits 2020-04-14 16:40:42 +08:00
interrupt.c drm/i915/gvt: Wean gvt off using dev_priv 2020-03-06 10:08:10 +08:00
interrupt.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
kvmgt.c kernel: move use_mm/unuse_mm to kthread.c 2020-06-10 19:14:18 -07:00
Makefile
mmio_context.c drm/i915/gvt: Wean gvt off using dev_priv 2020-03-06 10:08:10 +08:00
mmio_context.h drm/i915/gvt: Wean gvt off dev_priv->engine[] 2020-03-06 09:56:15 +08:00
mmio.c drm/i915/gvt: Wean gvt off using dev_priv 2020-03-06 10:08:10 +08:00
mmio.h drm/i915/gvt: Wean gvt off dev_priv->engine[] 2020-03-06 09:56:15 +08:00
mpt.h drm/i915/gvt: Pin vgpu dma address before using 2019-12-13 11:24:01 +08:00
opregion.c drm/i915/gvt: Fix emulated vbt size issue 2020-03-06 09:35:30 +08:00
page_track.c
page_track.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
reg.h drm/i915/gvt: save RING_HEAD into vreg when vgpu switched out 2019-06-03 13:18:36 +08:00
sched_policy.c drm/i915/gvt: Wean gvt off using dev_priv 2020-03-06 10:08:10 +08:00
sched_policy.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
scheduler.c drm pull for 5.8-rc1 2020-06-02 15:04:15 -07:00
scheduler.h drm/i915/gvt: Support PPGTT table load command 2020-05-08 12:36:38 +08:00
trace_points.c drm/i915/gvt: remove duplicate include of trace.h 2019-07-30 14:26:30 +08:00
trace.h
vgpu.c drm/i915/gvt: Use ARRAY_SIZE for vgpu_types 2020-05-19 17:18:50 +08:00