diff options
| author | Quan Zhou <[email protected]> | 2025-06-13 11:29:57 +0000 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-07-28 16:58:22 +0000 |
| commit | f55ffaf89636877c269ca28399b30d48898c62f3 (patch) | |
| tree | 9ca21e08ae79b04fff4242b4c3d532f59f1a96c3 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | RISC-V: KVM: Fix inclusion of Smnpm in the guest ISA bitmap (diff) | |
| download | kernel-f55ffaf89636877c269ca28399b30d48898c62f3.tar.gz kernel-f55ffaf89636877c269ca28399b30d48898c62f3.zip | |
RISC-V: KVM: Enable ring-based dirty memory tracking
Enable ring-based dirty memory tracking on riscv:
- Enable CONFIG_HAVE_KVM_DIRTY_RING_ACQ_REL as riscv is weakly
ordered.
- Set KVM_DIRTY_LOG_PAGE_OFFSET for the ring buffer's physical page
offset.
- Add a check to kvm_vcpu_kvm_riscv_check_vcpu_requests for checking
whether the dirty ring is soft full.
To handle vCPU requests that cause exits to userspace, modified the
`kvm_riscv_check_vcpu_requests` to return a value (currently only
returns 0 or 1).
Signed-off-by: Quan Zhou <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/20e116efb1f7aff211dd8e3cf8990c5521ed5f34.1749810735.git.zhouquan@iscas.ac.cn
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
