Nicholas Piggin
94a04bc25a
KVM: PPC: Book3S HV: POWER9 does not require secondary thread management
...
POWER9 CPUs have independent MMU contexts per thread, so KVM does not
need to quiesce secondary threads, so the hwthread_req/hwthread_state
protocol does not have to be used. So patch it away on POWER9, and patch
away the branch from the Linux idle wakeup to kvm_start_guest that is
never used.
Add a warning and error out of kvmppc_grab_hwthread in case it is ever
called on POWER9.
This avoids a hwsync in the idle wakeup path on POWER9.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Paul Mackerras <paulus@ozlabs.org>
[mpe: Use WARN(...) instead of WARN_ON()/pr_err(...)]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-08-29 14:48:59 +10:00
..
2017-07-21 13:54:37 -07:00
2017-06-05 19:59:03 +10:00
2017-01-14 09:54:12 +01:00
2015-07-23 19:52:03 +10:00
2016-06-24 15:17:57 +10:00
2017-03-21 22:09:26 +11:00
2017-07-12 21:49:55 +10:00
2017-06-15 16:34:39 +10:00
2017-06-02 19:23:56 +10:00
2012-10-09 09:47:26 +01:00
2013-08-14 14:57:40 +10:00
2017-07-20 12:31:04 +02:00
2017-02-06 19:46:04 +11:00
2016-08-01 11:15:03 +10:00
2017-03-04 23:07:17 +11:00
2016-11-25 14:07:50 +11:00
2017-07-03 23:08:50 +10:00
2017-05-27 15:38:06 -04:00
2014-04-23 10:05:16 +10:00
2014-10-08 20:15:37 +11:00
2017-05-02 22:35:00 -05:00
2014-06-11 17:03:28 +10:00
2015-12-22 17:12:56 -06:00
2017-05-09 23:42:55 +10:00
2016-07-21 20:33:57 +10:00
2017-04-23 20:32:12 +10:00
2017-06-01 19:56:28 +10:00
2016-08-22 11:09:33 +10:00
2017-02-01 09:14:07 +01:00
2015-03-23 14:29:40 +11:00
2017-06-19 19:46:27 +10:00
2014-05-23 08:28:02 +09:00
2016-08-01 11:15:03 +10:00
2017-04-11 07:46:03 +10:00
2017-04-11 07:46:03 +10:00
2017-07-02 20:40:24 +10:00
2017-01-24 12:23:35 -05:00
2017-04-20 11:36:41 +10:00
2017-06-28 06:54:55 -07:00
2013-04-18 13:03:53 +10:00
2017-05-09 23:42:55 +10:00
2015-05-28 15:31:53 +02:00
2014-06-11 17:04:33 +10:00
2016-06-21 15:30:56 +10:00
2012-02-14 14:06:50 -07:00
2017-07-10 16:32:36 -07:00
2014-04-09 12:53:28 +10:00
2014-01-09 10:14:57 +01:00
2015-10-27 18:14:40 -05:00
2017-06-20 22:22:02 +10:00
2012-03-28 18:30:02 +01:00
2017-03-28 18:23:54 -04:00
2017-06-28 13:08:09 +10:00
2017-04-23 20:32:23 +10:00
2017-02-09 21:45:48 +11:00
2016-07-09 02:02:48 -05:00
2011-11-08 14:51:46 +11:00
2014-06-25 18:49:40 -05:00
2012-11-15 13:00:58 +11:00
2017-02-27 18:43:46 -08:00
2015-01-12 05:04:13 -08:00
2015-02-03 18:47:18 +01:00
2016-03-04 23:50:27 -06:00
2016-06-14 13:58:27 +10:00
2016-11-14 11:11:51 +11:00
2014-11-03 12:12:32 +11:00
2017-06-20 22:22:00 +10:00
2015-11-09 15:11:24 -08:00
2016-09-09 16:18:07 +10:00
2017-01-18 11:58:50 +11:00
2017-06-13 12:53:35 -04:00
2013-10-11 16:48:53 +11:00
2014-05-20 10:54:06 +10:00
2017-06-19 19:46:27 +10:00
2016-03-01 19:27:20 +11:00
2012-02-14 14:06:50 -07:00
2013-06-12 12:37:26 +01:00
2015-12-17 16:42:12 +08:00
2016-12-20 09:48:44 -08:00
2011-05-06 13:19:01 +10:00
2013-01-03 15:57:04 -08:00
2017-04-21 21:08:47 +10:00
2017-06-28 06:54:33 -07:00
2015-02-23 14:52:04 +11:00
2014-09-25 23:14:43 +10:00
2014-07-28 14:11:23 +10:00
2017-01-31 13:54:17 +11:00
2016-08-05 09:00:54 -04:00
2016-08-07 23:50:09 -04:00
2011-12-20 10:20:19 -05:00
2016-12-20 09:48:44 -08:00
2012-02-21 11:40:36 +01:00
2012-07-24 15:27:29 +08:00
2017-06-16 19:49:43 +10:00
2016-11-24 09:24:23 +11:00
2013-10-17 14:45:05 +02:00
2017-04-01 21:12:27 +11:00
2017-08-29 14:48:59 +10:00
2017-07-01 18:59:01 +10:00
2014-03-19 19:57:15 -05:00
2015-08-22 11:16:19 +02:00
2017-07-03 10:41:59 +02:00
2014-01-09 10:14:57 +01:00
2017-06-19 14:34:20 +10:00
2016-09-22 11:50:19 -04:00
2016-06-14 13:58:27 +10:00
2016-12-19 11:15:25 +01:00
2011-07-26 16:49:47 -07:00
2013-12-09 11:40:25 +11:00
2012-04-24 15:34:16 -07:00
2017-06-19 19:46:26 +10:00
2011-06-10 14:55:36 +02:00
2017-06-06 21:17:15 +10:00
2015-06-24 17:49:41 -07:00
2016-08-05 09:00:54 -04:00
2017-05-05 11:36:44 -07:00
2016-12-09 22:49:07 -06:00
2017-03-31 23:09:47 +11:00
2017-03-31 23:10:00 +11:00
2016-10-07 18:46:28 -07:00
2017-05-15 19:31:38 +10:00
2015-10-22 16:06:08 +02:00
2016-07-14 21:12:06 +10:00
2015-03-31 22:23:17 -05:00
2015-10-22 15:19:40 +02:00
2016-09-20 20:57:12 +10:00
2013-07-01 18:38:41 -05:00
2015-03-23 19:51:17 -05:00
2015-10-05 21:32:50 +11:00
2017-07-12 16:26:02 -07:00
2015-03-23 14:05:49 +11:00
2017-07-10 21:12:27 +10:00
2017-04-12 22:31:37 +10:00
2014-07-28 14:10:25 +10:00
2017-06-20 22:22:00 +10:00
2016-03-11 17:20:11 -06:00
2017-03-31 23:09:56 +11:00
2017-05-19 13:04:35 +10:00
2016-09-20 20:57:12 +10:00
2017-01-31 13:54:17 +11:00
2017-04-18 13:02:26 -05:00
2013-08-07 18:38:03 -05:00
2017-04-19 20:00:22 +10:00
2014-10-15 11:23:20 +11:00
2017-06-05 19:03:10 +10:00
2017-01-18 11:58:50 +11:00
2017-01-18 11:58:50 +11:00
2017-08-17 23:13:46 +10:00
2017-02-09 21:45:48 +11:00
2016-06-14 13:58:26 +10:00
2017-02-15 20:02:43 +11:00
2017-04-04 13:27:26 +10:00
2013-01-10 15:08:37 +11:00
2016-07-14 21:12:06 +10:00
2017-05-30 14:59:51 +10:00
2017-07-07 13:55:45 -07:00
2016-11-22 11:57:08 +11:00
2013-06-20 16:55:09 +10:00
2017-07-07 13:55:45 -07:00
2017-03-06 21:44:09 +11:00
2017-01-24 12:23:35 -05:00
2016-06-14 13:58:26 +10:00
2016-06-14 13:58:26 +10:00
2017-08-17 23:13:46 +10:00
2016-06-14 13:58:27 +10:00
2017-01-26 17:49:34 -06:00
2014-06-11 16:35:38 +10:00
2016-03-01 19:27:20 +11:00
2013-08-07 18:38:04 -05:00
2017-07-11 12:53:53 +10:00
2014-09-25 23:14:43 +10:00
2017-02-17 17:57:30 +11:00
2012-03-28 18:30:02 +01:00
2013-11-06 14:13:49 +11:00
2015-04-17 09:04:10 -04:00
2017-04-23 20:32:25 +10:00
2016-07-21 18:56:31 +10:00
2013-10-11 17:26:49 +11:00
2016-10-04 16:43:07 +11:00
2017-07-12 16:26:02 -07:00
2016-07-21 18:56:38 +10:00
2017-02-15 19:58:39 +11:00
2016-11-22 12:48:06 +01:00
2015-08-18 19:29:49 +10:00
2012-10-09 09:47:26 +01:00
2014-10-08 20:14:54 +11:00
2014-09-25 23:14:51 +10:00
2016-06-14 13:58:25 +10:00
2015-03-24 13:33:52 +11:00
2017-01-24 12:23:35 -05:00
2016-08-10 16:34:20 +10:00
2016-07-21 18:51:42 +10:00
2015-07-29 11:56:13 +10:00
2017-04-12 22:32:43 +10:00
2017-03-16 20:45:53 +11:00
2016-07-17 16:42:47 +10:00
2012-10-09 09:47:26 +01:00
2017-05-05 11:36:44 -07:00
2016-08-01 11:15:03 +10:00
2013-11-22 16:56:48 -06:00
2016-12-12 18:55:07 -08:00
2016-08-01 11:15:13 +10:00
2016-10-04 20:33:16 +11:00
2017-07-03 18:08:06 -07:00
2015-08-06 16:36:23 +10:00
2017-06-23 21:14:49 +10:00
2015-09-16 15:47:51 +02:00
2016-06-14 13:58:26 +10:00
2016-06-14 13:58:27 +10:00
2017-07-15 11:17:52 -07:00
2014-09-25 23:14:43 +10:00
2013-12-30 14:02:29 +11:00
2016-03-01 19:27:20 +11:00
2017-03-16 20:45:53 +11:00
2013-11-20 16:31:01 +01:00
2015-11-26 22:11:17 +11:00
2014-02-17 11:19:37 +11:00
2015-03-23 14:29:40 +11:00
2015-05-05 13:35:39 -06:00
2016-11-14 11:11:51 +11:00
2017-04-13 23:34:33 +10:00
2016-11-29 09:14:50 +00:00
2017-04-10 21:41:34 +10:00
2017-06-15 23:29:39 +10:00
2017-04-10 21:41:34 +10:00
2016-08-01 11:15:03 +10:00