Anup Patel fd7bb4a251 RISC-V: KVM: Implement VMID allocator
We implement a simple VMID allocator for Guests/VMs which:
1. Detects number of VMID bits at boot-time
2. Uses atomic number to track VMID version and increments
   VMID version whenever we run-out of VMIDs
3. Flushes Guest TLBs on all host CPUs whenever we run-out
   of VMIDs
4. Force updates HW Stage2 VMID for each Guest VCPU whenever
   VMID changes using VCPU request KVM_REQ_UPDATE_HGATP

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alexander Graf <graf@amazon.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-10-04 16:01:04 +05:30
..
2019-06-17 10:34:03 -07:00
2021-01-14 15:09:11 -08:00
2019-11-17 15:17:39 -08:00
2020-03-31 11:28:30 -07:00
2021-07-26 09:27:59 +10:00
2020-10-02 14:31:03 -07:00
2021-03-09 20:46:00 -08:00
2021-02-22 18:44:53 -08:00
2020-05-18 11:38:10 -07:00
2021-05-22 22:05:30 -07:00
2021-06-30 20:55:41 -07:00
2021-02-18 23:18:06 -08:00
2021-07-01 11:06:03 -07:00
2021-05-22 10:19:29 -07:00
2021-01-14 15:09:06 -08:00
2020-06-03 20:09:50 -07:00
2021-07-05 20:53:09 -07:00
2021-04-26 08:25:10 -07:00
2021-01-07 19:00:50 -08:00
2021-03-09 18:18:31 -08:00
2021-04-26 08:25:09 -07:00
2021-01-14 15:09:08 -08:00
2021-08-25 22:58:30 -07:00