Marc Zyngier
8e01d9a396
KVM: arm64: vgic-v4: Move the GICv4 residency flow to be driven by vcpu_load/put
...
When the VHE code was reworked, a lot of the vgic stuff was moved around,
but the GICv4 residency code did stay untouched, meaning that we come
in and out of residency on each flush/sync, which is obviously suboptimal.
To address this, let's move things around a bit:
- Residency entry (flush) moves to vcpu_load
- Residency exit (sync) moves to vcpu_put
- On blocking (entry to WFI), we "put"
- On unblocking (exit from WFI), we "load"
Because these can nest (load/block/put/load/unblock/put, for example),
we now have per-VPE tracking of the residency state.
Additionally, vgic_v4_put gains a "need doorbell" parameter, which only
gets set to true when blocking because of a WFI. This allows a finer
control of the doorbell, which now also gets disabled as soon as
it gets signaled.
Signed-off-by: Marc Zyngier <maz@kernel.org >
Link: https://lore.kernel.org/r/20191027144234.8395-2-maz@kernel.org
2019-10-28 16:20:58 +00:00
..
2019-09-16 12:06:23 +02:00
2019-09-17 10:27:46 -07:00
2019-10-02 12:19:53 -04:00
2019-09-18 11:14:31 -07:00
2019-09-19 14:14:28 -07:00
2019-09-16 09:56:27 -07:00
2019-10-28 16:20:58 +00:00
2019-09-17 00:40:05 -05:00
2019-09-23 19:37:49 -07:00
2019-09-28 17:47:33 -07:00
2019-09-19 13:27:23 -07:00
2019-09-21 10:59:54 -07:00
2019-09-13 12:47:36 +02:00
2019-09-13 12:47:36 +02:00
2019-09-13 12:47:36 +02:00
2019-09-13 12:47:36 +02:00
2019-09-13 12:47:36 +02:00
2019-09-29 10:24:23 -07:00
2019-09-21 10:26:24 -07:00
2019-09-28 12:39:07 -07:00
2019-09-19 16:24:24 -07:00
2019-10-10 16:14:28 -04:00
2019-09-18 10:33:46 -07:00
2019-09-28 08:14:15 -07:00
2019-10-01 15:45:03 +02:00
2019-09-24 16:31:50 -07:00
2019-09-19 15:31:27 -07:00
2019-09-20 15:45:07 -07:00
2019-09-24 15:54:10 -07:00
2019-10-11 09:26:05 -07:00
2019-09-21 09:47:19 -07:00
2019-09-24 13:37:28 +02:00
2019-09-17 19:15:14 -07:00
2019-09-25 17:51:40 -07:00
2019-09-23 11:21:04 -07:00
2019-09-18 10:33:46 -07:00
2019-09-19 13:27:23 -07:00
2019-10-07 18:25:06 +02:00
2019-09-16 11:44:05 +02:00
2019-09-25 09:55:59 -07:00
2019-09-27 17:00:27 -07:00
2019-09-28 14:05:38 -07:00
2019-09-18 15:58:13 +02:00
2019-09-29 10:33:41 -07:00
2019-09-24 15:54:08 -07:00
2019-10-02 06:36:50 -07:00
2019-09-24 12:36:31 -07:00
2019-09-24 16:48:02 -07:00
2019-09-28 08:14:15 -07:00
2019-09-11 12:39:19 +02:00
2019-09-17 19:15:14 -07:00
2019-09-25 17:51:39 -07:00
2019-09-19 15:32:45 -07:00
2019-09-24 15:54:07 -07:00
2019-09-28 08:14:15 -07:00
2019-09-25 17:51:40 -07:00
2019-09-24 15:54:11 -07:00
2019-09-30 18:52:00 +02:00
2019-10-08 22:05:58 +02:00
2019-09-28 08:14:15 -07:00
2019-10-07 15:47:20 -07:00
2019-09-24 15:54:09 -07:00
2019-09-28 14:05:38 -07:00
2019-09-29 10:33:41 -07:00
2019-10-04 18:11:08 -07:00
2019-09-25 17:51:40 -07:00
2019-09-28 12:39:07 -07:00
2019-09-26 10:10:44 -07:00
2019-09-24 15:54:11 -07:00
2019-09-27 19:37:27 -07:00
2019-09-16 21:32:57 +02:00
2019-09-13 12:35:33 +02:00
2019-09-13 12:35:33 +02:00
2019-09-13 12:47:36 +02:00
2019-09-20 15:15:24 -04:00
2019-09-11 14:46:02 +01:00
2019-09-13 21:15:41 +10:00
2019-09-24 15:54:08 -07:00
2019-09-24 15:54:08 -07:00
2019-09-23 19:16:01 -07:00
2019-09-23 19:16:01 -07:00
2019-10-04 18:11:08 -07:00
2019-10-07 12:52:44 +02:00
2019-09-25 17:51:39 -07:00
2019-09-21 03:25:10 +02:00
2019-09-12 12:09:16 +02:00
2019-09-12 21:05:34 -04:00
2019-09-25 17:51:39 -07:00
2019-09-16 17:25:49 -07:00
2019-09-25 17:42:29 +02:00
2019-09-16 11:43:38 -05:00
2019-09-28 12:39:07 -07:00
2019-09-28 08:14:15 -07:00
2019-09-12 21:05:34 -04:00
2019-09-24 15:54:11 -07:00
2019-10-01 18:42:15 +02:00
2019-10-07 15:47:20 -07:00
2019-09-11 15:27:09 +01:00
2019-10-08 13:27:05 +02:00
2019-09-25 17:51:41 -07:00
2019-09-17 20:03:49 -06:00
2019-09-16 16:26:11 +02:00
2019-09-25 17:51:40 -07:00
2019-09-16 17:25:49 -07:00
2019-10-07 15:24:36 +02:00
2019-10-07 12:56:48 -07:00
2019-09-24 15:54:10 -07:00
2019-09-17 12:35:15 -07:00
2019-09-13 21:15:39 +10:00
2019-09-24 15:54:12 -07:00