James Hogan
a7ebb2e410
KVM: MIPS/T&E: active_mm = init_mm in guest context
...
Set init_mm as the active_mm and update mm_cpumask(current->mm) to
reflect that it isn't active when in guest context. This prevents cache
management code from attempting cache flushes on host virtual addresses
while in guest context, for example due to a cache management IPIs or
later when writing of dynamically translated code hits copy on write.
We do this using helpers in static kernel code to avoid having to export
init_mm to modules.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
2017-02-03 15:20:48 +00:00
..
2014-06-04 22:50:41 +02:00
2013-02-01 10:00:22 +01:00
2015-11-11 08:35:45 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2015-09-03 12:08:02 +02:00
2015-09-03 12:08:02 +02:00
2016-02-17 13:47:19 +00:00
2016-05-28 12:35:09 +02:00
2015-11-11 08:36:57 +01:00
2016-05-28 12:35:06 +02:00
2016-05-13 14:02:09 +02:00
2016-09-19 17:21:37 +02:00
2015-04-08 01:09:49 +02:00
2014-03-26 23:09:21 +01:00
2015-06-21 21:52:44 +02:00
2015-03-31 11:59:40 +02:00
2016-10-06 18:02:35 +02:00
2015-04-08 01:09:49 +02:00
2016-10-06 18:02:35 +02:00
2014-08-26 02:18:58 +02:00
2016-05-28 12:35:07 +02:00
2015-04-01 17:22:01 +02:00
2016-11-05 00:02:02 +01:00
2016-05-28 12:35:09 +02:00
2015-03-31 11:59:40 +02:00
2016-10-04 16:13:57 +02:00
2016-10-11 15:06:33 -07:00
2016-05-28 12:35:04 +02:00
2015-04-01 17:21:50 +02:00
2016-09-13 16:45:15 +02:00
2016-01-24 02:53:28 +01:00
2015-09-03 12:08:02 +02:00
2015-02-17 15:37:21 +00:00
2015-03-31 11:59:40 +02:00
2016-05-13 15:39:43 +02:00
2015-09-03 12:08:02 +02:00
2015-04-08 01:09:49 +02:00
2015-07-14 21:47:34 +02:00
2015-03-31 11:59:40 +02:00
2014-11-24 22:47:31 +01:00
2015-03-31 11:59:40 +02:00
2015-11-11 08:38:44 +01:00
2016-10-05 01:31:20 +02:00
2015-09-16 15:47:51 +02:00
2016-10-04 16:13:57 +02:00
2016-04-03 12:32:09 +02:00
2016-05-28 12:35:08 +02:00
2016-05-13 14:02:13 +02:00
2016-04-03 12:32:09 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2015-06-21 21:54:21 +02:00
2015-11-11 08:36:36 +01:00
2016-10-06 18:02:35 +02:00
2014-01-22 20:19:02 +01:00
2015-04-10 15:41:43 +02:00
2014-03-31 18:17:12 +02:00
2015-04-13 16:01:37 +02:00
2014-01-13 23:40:56 +01:00
2016-09-13 17:25:11 +02:00
2016-06-16 10:48:34 +02:00
2016-10-04 16:13:57 +02:00
2015-10-26 09:49:41 +01:00
2016-05-09 12:00:05 +02:00
2016-05-13 14:02:17 +02:00
2015-06-21 21:53:30 +02:00
2016-05-13 14:01:55 +02:00
2016-08-02 14:00:16 +02:00
2015-02-17 15:37:37 +00:00
2013-02-20 18:24:24 +01:00
2016-10-04 16:13:57 +02:00
2016-05-13 14:02:14 +02:00
2015-11-05 11:15:41 +01:00
2015-09-03 12:07:52 +02:00
2016-12-24 11:46:01 -08:00
2014-11-24 07:45:37 +01:00
2015-11-11 08:36:41 +01:00
2014-05-27 11:06:42 +02:00
2015-05-13 10:55:42 +02:00
2016-12-24 11:46:01 -08:00
2015-11-12 11:35:47 +01:00
2015-02-17 15:37:21 +00:00
2014-10-23 19:58:13 +02:00
2016-05-20 17:58:30 -07:00
2016-05-13 15:30:25 +02:00
2016-10-04 16:13:57 +02:00
2016-10-04 16:13:57 +02:00
2015-10-26 09:49:42 +01:00
2012-10-16 22:20:03 +02:00
2016-10-06 18:02:01 +02:00
2016-10-06 18:02:01 +02:00
2016-10-06 18:02:01 +02:00
2013-02-01 10:00:22 +01:00
2016-08-02 09:28:53 +02:00
2013-01-24 13:20:09 +01:00
2015-05-28 15:31:53 +02:00
2016-08-02 09:29:27 +02:00
2012-10-09 09:47:14 +01:00
2014-08-26 02:18:56 +02:00
2016-10-05 18:36:18 -04:00
2014-05-24 00:07:01 +02:00
2013-02-01 10:00:22 +01:00
2014-11-07 15:07:36 +01:00
2016-11-04 01:28:41 +01:00
2016-02-01 23:36:38 +01:00
2014-10-24 02:38:33 +02:00
2015-02-17 15:37:23 +00:00
2015-02-20 13:30:55 +01:00
2013-02-01 10:00:22 +01:00
2016-05-28 12:35:06 +02:00
2016-05-13 14:01:38 +02:00
2014-11-24 07:45:02 +01:00
2015-06-25 17:00:35 -07:00
2016-10-06 17:31:00 +02:00
2014-11-12 21:17:27 +01:00
2013-05-09 17:55:20 +02:00
2016-05-13 14:02:15 +02:00
2014-11-24 07:44:52 +01:00
2016-05-13 14:01:40 +02:00
2016-10-07 18:46:30 -07:00
2016-05-13 14:02:15 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2015-08-03 11:34:15 +02:00
2016-10-25 11:31:51 +02:00
2015-09-03 12:08:05 +02:00
2016-10-11 15:06:32 -07:00
2015-06-21 21:54:10 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2017-02-03 15:20:48 +00:00
2014-05-30 21:01:11 +02:00
2015-09-03 12:07:39 +02:00
2016-05-09 12:00:05 +02:00
2015-02-17 15:37:24 +00:00
2013-02-01 10:00:22 +01:00
2015-09-27 14:15:26 +02:00
2016-10-06 18:04:04 +02:00
2013-02-01 10:00:22 +01:00
2013-05-08 01:19:07 +02:00
2016-05-28 12:35:07 +02:00
2016-10-04 16:13:57 +02:00
2016-05-13 14:01:48 +02:00
2016-04-03 12:32:09 +02:00
2014-05-28 16:20:22 +01:00
2016-11-24 16:44:16 +01:00
2016-08-02 09:28:53 +02:00
2016-08-02 09:28:53 +02:00
2016-10-05 18:36:18 -04:00
2016-07-24 12:45:00 +02:00
2013-02-01 10:00:22 +01:00
2014-06-02 16:34:41 +02:00
2014-11-24 07:45:36 +01:00
2016-08-26 17:39:35 -07:00
2016-10-06 18:00:05 +02:00
2017-02-02 15:06:26 +00:00
2016-05-13 15:30:25 +02:00
2016-05-13 14:02:16 +02:00
2016-05-13 15:30:25 +02:00
2016-10-07 18:46:29 -07:00
2016-10-04 16:13:57 +02:00
2014-05-29 15:08:23 +02:00
2016-11-17 08:17:36 +01:00
2015-06-21 21:54:14 +02:00
2016-10-12 14:34:45 +02:00
2012-08-17 10:57:28 +02:00
2017-02-03 15:19:02 +00:00
2014-08-02 00:06:38 +02:00
2013-02-01 10:00:22 +01:00
2014-01-22 20:19:02 +01:00
2016-08-04 08:50:07 -04:00
2016-06-15 23:58:31 +02:00
2015-01-13 16:04:28 +01:00
2016-04-03 12:32:09 +02:00
2013-02-01 10:00:22 +01:00
2014-06-26 10:48:18 +01:00
2016-08-06 09:13:11 -04:00
2013-02-03 18:33:02 -05:00
2016-05-13 14:01:50 +02:00
2016-02-25 10:56:58 +01:00
2016-10-05 01:31:20 +02:00
2013-02-01 10:00:22 +01:00
2012-10-09 09:47:14 +01:00
2014-07-30 21:46:19 +02:00
2013-02-01 10:00:22 +01:00
2016-06-14 11:55:15 +02:00
2015-02-17 15:37:20 +00:00
2016-02-01 23:36:38 +01:00
2013-07-01 15:10:48 +02:00
2013-02-01 10:00:22 +01:00
2016-11-04 01:28:41 +01:00
2016-08-04 08:50:07 -04:00
2016-12-24 11:46:01 -08:00
2015-09-03 12:08:05 +02:00
2015-09-03 12:07:38 +02:00
2014-05-30 18:21:30 +02:00
2016-11-24 16:44:16 +01:00
2015-09-03 12:07:45 +02:00
2017-02-03 15:19:01 +00:00
2015-05-27 15:22:15 +02:00
2013-02-01 10:00:22 +01:00
2015-06-21 21:52:50 +02:00
2013-02-01 10:00:22 +01:00
2014-11-24 22:47:31 +01:00
2016-10-15 09:26:12 -07:00
2017-02-03 15:19:01 +00:00
2014-06-04 16:54:14 -07:00
2016-10-07 18:46:30 -07:00
2015-11-11 08:36:41 +01:00
2013-09-18 17:13:58 +02:00
2015-08-26 15:23:40 +02:00
2013-02-01 10:00:22 +01:00
2016-05-09 12:00:02 +02:00