Skip to content

KVM: MMU: Use 'INVALID_GPA' and 'INVALID_GFN' properly

Yu Zhang kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest2 patches 11 repliesIn review

Changes in v4 from the cover letter

- Put the addition of 'INVALID_GFN' into a seperate patch. V3:
- Added 'INVALID_GFN' and use it.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: MMU: Introduce 'INVALID_GFN' and use it for GFN valuesarch/x86/kvm/xen.c include/linux/kvm_types.h tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c+5 -49 replies
2/2KVM: MMU: Make the definition of 'INVALID_GPA' commonarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/hypercalls.c arch/arm64/kvm/pvtime.c +3 more+13 -152 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPaul DurrantSean Christopherson
1/2
2/2R-b R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/2] KVM: MMU: Use 'INVALID_GPA' and 'INVALID_GFN' properly

Pacth 1 adds a new definition, 'INVALID_GFN', so that GFN values can use it, instead of the 'GPA_INVALID'.

Pacth 2 makes the definition of 'INVALID_GPA' shared by different archs.

Both are tested by rebuilding KVM for x86 and for ARM64.

---
V4:
- Put the addition of 'INVALID_GFN' into a seperate patch. V3:
- Added 'INVALID_GFN' and use it.
v2:
- Renamed 'GPA_INVALID' to 'INVALID_GPA' and modify _those_ users. v1:
https://lore.kernel.org/lkml/[email protected]/

Yu Zhang (2):
KVM: MMU: Introduce 'INVALID_GFN' and use it for GFN values
KVM: MMU: Make the definition of 'INVALID_GPA' common

 arch/arm64/include/asm/kvm_host.h                  |  4 ++--
 arch/arm64/kvm/hypercalls.c                        |  2 +-
 arch/arm64/kvm/pvtime.c                            |  8 ++++----
 arch/x86/include/asm/kvm_host.h                    |  2 --
 arch/x86/kvm/xen.c                                 | 14 +++++++-------
 include/linux/kvm_types.h                          |  3 ++-
 .../testing/selftests/kvm/x86_64/xen_shinfo_test.c |  4 ++--
 7 files changed, 18 insertions(+), 19 deletions(-)
Signature · 1 line
2.25.1