Skip to content

Fixes to v7 of the vITS save/restore series

Christoffer Dall kvm kvmarm linux-arm-kernel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 12 repliesIn review
  2. v18 patches 17 repliesSuperseded

Changes in v2 from the cover letter

- We got rid of the requirement to initialize the ITS (it doesn't do anything).
- We fixed a race condition with setting the ITS base address which was introduced in v1 of this series.
- We reworded some commit messages based on Eric's comments
- We fixed the address check to work with partically unset base addrs
- We use the vcpu index instead of the vcpu id for allocating redist regions.
- Some renames and code cleanups.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11KVM: arm/arm64: Clarification and relaxation to ITS save/restore ABIDocumentation/virtual/kvm/devices/arm-vgic-its.txt+12 -110 replies
2/11KVM: arm/arm64: vgic: Rename kvm_vgic_vcpu_init to kvm_vgic_vcpu_enablevirt/kvm/arm/vgic/vgic-init.c+2 -60 replies
3/11KVM: Add kvm_vcpu_get_idx to get vcpu index in kvm->vcpusinclude/linux/kvm_host.h+11 -01 reply
4/11KVM: arm/arm64: Refactor vgic_register_redist_iodevsvirt/kvm/arm/vgic/vgic-mmio-v3.c virt/kvm/arm/vgic/vgic-v3.c virt/kvm/arm/vgic/vgic.h+68 -441 reply
5/11KVM: arm/arm64: Make vgic_v3_check_base more broadly usablevirt/kvm/arm/vgic/vgic-v3.c virt/kvm/arm/vgic/vgic.h+16 -41 reply
6/11KVM: arm/arm64: Slightly rework kvm_vgic_addrvirt/kvm/arm/vgic/vgic-kvm-device.c+13 -90 replies
7/11KVM: arm/arm64: Register iodevs when setting redist base and creating VCPUsinclude/kvm/arm_vgic.h virt/kvm/arm/arm.c virt/kvm/arm/vgic/vgic-init.c +4 more+72 -116 replies
8/11KVM: arm/arm64: Get rid of its->initialized fieldinclude/kvm/arm_vgic.h virt/kvm/arm/vgic/vgic-its.c+1 -71 reply
9/11KVM: arm/arm64: Register ITS iodev when setting base addressvirt/kvm/arm/vgic/vgic-its.c virt/kvm/arm/vgic/vgic-v3.c virt/kvm/arm/vgic/vgic.h+10 -431 reply
10/11KVM: arm/arm64: Don't call map_resources when restoring ITS tablesvirt/kvm/arm/vgic/vgic-its.c+1 -90 replies
11/11KVM: arm/arm64: vgic-its: Cleanup after failed ITT restorevirt/kvm/arm/vgic/vgic-its.c+22 -130 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchEric AugerJean-Philippe Brucker
SeriesT-b
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b T-b
8/11R-b
9/11R-b
10/11R-b
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/11] Fixes to v7 of the vITS save/restore series

We spotted a number of isses on the v7 ITS save/restore patch series, but because most of that patch series is in really good shape, and because the work discussed is somewhat orthogonal (the register iodevs in particular), I decided to send out a set of fixes to apply after the main ITS save/restore series, and we can apply the v7 series plus these fixes.

The whole series with the fixes applied on top of queue can be found here:
git://git.kernel.org/pub/scm/linux/kernel/git/cdall/linux.git its-save-restore-queue-fixes-v2

Thanks,
-Christoffer

Changes since v1:
- We got rid of the requirement to initialize the ITS (it doesn't do anything).
- We fixed a race condition with setting the ITS base address which was introduced in v1 of this series.
- We reworded some commit messages based on Eric's comments
- We fixed the address check to work with partically unset base addrs
- We use the vcpu index instead of the vcpu id for allocating redist regions.
- Some renames and code cleanups.

Christoffer Dall (10):
KVM: arm/arm64: Clarification and relaxation to ITS save/restore ABI
KVM: arm/arm64: vgic: Rename kvm_vgic_vcpu_init to
kvm_vgic_vcpu_enable
KVM: Add kvm_vcpu_get_idx to get vcpu index in kvm->vcpus
KVM: arm/arm64: Refactor vgic_register_redist_iodevs
KVM: arm/arm64: Make vgic_v3_check_base more broadly usable
KVM: arm/arm64: Slightly rework kvm_vgic_addr
KVM: arm/arm64: Register iodevs when setting redist base and creating
VCPUs
KVM: arm/arm64: Register ITS iodev when setting base address
KVM: arm/arm64: Don't call map_resources when restoring ITS tables
KVM: arm/arm64: vgic-its: Cleanup after failed ITT restore

Marc Zyngier (1):
KVM: arm/arm64: Get rid of its->initialized field

 Documentation/virtual/kvm/devices/arm-vgic-its.txt |  23 ++--
 include/kvm/arm_vgic.h                             |   2 +-
 include/linux/kvm_host.h                           |  11 ++
 virt/kvm/arm/arm.c                                 |   2 +-
 virt/kvm/arm/vgic/vgic-init.c                      |  25 +++-
 virt/kvm/arm/vgic/vgic-its.c                       |  96 +++++---------
 virt/kvm/arm/vgic/vgic-kvm-device.c                |  29 ++--
 virt/kvm/arm/vgic/vgic-mmio-v3.c                   | 147 +++++++++++++++------
 virt/kvm/arm/vgic/vgic-v3.c                        |  33 +++--
 virt/kvm/arm/vgic/vgic.h                           |   5 +-
 10 files changed, 222 insertions(+), 151 deletions(-)
Signature · 1 line
2.9.0