kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] KVM: MMU: Use 'INVALID_GPA' and 'INVALID_GFN' properly
@ 2022-12-16  8:59 Yu Zhang
  2022-12-16  8:59 ` [PATCH v4 1/2] KVM: MMU: Introduce 'INVALID_GFN' and use it for GFN values Yu Zhang
  2022-12-16  8:59 ` [PATCH v4 2/2] KVM: MMU: Make the definition of 'INVALID_GPA' common Yu Zhang
  0 siblings, 2 replies; 14+ messages in thread
From: Yu Zhang @ 2022-12-16  8:59 UTC (permalink / raw)
  To: kvm
  Cc: pbonzini, seanjc, maz, james.morse, alexandru.elisei,
	suzuki.poulose, oliver.upton, catalin.marinas, will, dwmw2, paul

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/20221209023622.274715-1-yu.c.zhang@linux.intel.com/

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(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-12-22 19:50 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-16  8:59 [PATCH v4 0/2] KVM: MMU: Use 'INVALID_GPA' and 'INVALID_GFN' properly Yu Zhang
2022-12-16  8:59 ` [PATCH v4 1/2] KVM: MMU: Introduce 'INVALID_GFN' and use it for GFN values Yu Zhang
2022-12-16 12:20   ` Michal Luczaj
2022-12-16 16:16     ` Sean Christopherson
2022-12-16 17:29       ` Michal Luczaj
2022-12-16 16:34   ` Sean Christopherson
2022-12-20  8:16     ` Yu Zhang
2022-12-20 19:59     ` David Woodhouse
2022-12-22 18:53       ` Sean Christopherson
2022-12-22 19:28         ` David Woodhouse
2022-12-22 19:50           ` Sean Christopherson
2022-12-16  8:59 ` [PATCH v4 2/2] KVM: MMU: Make the definition of 'INVALID_GPA' common Yu Zhang
2022-12-16 16:36   ` Sean Christopherson
2022-12-17  6:41   ` Huang, Kai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).