Skip to contentSkip to conversation

MAINTAINERS: KVM tweaks and additions

PATCH Applied Sean Christopherson 6 participants 12 messages Jul 31 – Aug 7

Subsystems (2)
lore
Share & tools
lore

Sean Christopherson

author maintainer
#0 lore raw

v2 cover MAINTAINERS: KVM tweaks and additions

A few tangentially related KVM MAINTAINERS updates, details in each patch (though the shortlog is probably enough info in most cases).

v2: Collect David's acks, drop RFC tag.

v1 (RFC): https://lore.kernel.org/all/[email protected]

Sean Christopherson (5):
MAINTAINERS: Add kvm-x86 tree to KVM x86 entries
KVM: guest_memfd: Move gmem function declarations to dedicated
guest_memfd.h
MAINTAINERS: Add an entry for KVM's guest_memfd
MAINTAINERS: Add David H. as a KVM guest_memfd reviewer
MAINTAINERS: Add myself (Sean) as a reviewer in the main KVM entry

 MAINTAINERS            | 14 ++++++++++++++
 virt/kvm/guest_memfd.c |  1 +
 virt/kvm/guest_memfd.h | 34 ++++++++++++++++++++++++++++++++++
 virt/kvm/kvm_main.c    |  1 +
 virt/kvm/kvm_mm.h      | 27 ---------------------------
 5 files changed, 50 insertions(+), 27 deletions(-)
 create mode 100644 virt/kvm/guest_memfd.h

base-commit: a204badd8432f93b7e862e7dac6db0fe3d65f370

Signature · 1 line
2.55.0.508.g3f0d502094-goog
author maintainer
#1 lore raw

PATCH v2 1/5 MAINTAINERS: Add kvm-x86 tree to KVM x86 entries

Add the kvm-x86 tree to all KVM x86 entries so that humans, bots, and everything in between can more easily find KVM x86 (and some broader KVM) patches that are targeted for the next kernel release, but haven't yet made their way to the main KVM tree. While the KVM x86 patch flow is documented in Documentation/process/maintainer-kvm-x86.rst, that's very much one-off documentation; random passersbys likely don't know it exists, and it's not suitable for any workflow that's at all automated.

---
 MAINTAINERS | 3 +++
 1 file changed, 3 insertions(+)
MAINTAINERS +3 -0
index 5a8edbf2625f..64980c262893 100644
@@ -14163,6 +14163,7 @@ L:	[email protected]
 S:	Supported
 P:	Documentation/process/maintainer-kvm-x86.rst
 T:	git git://git.kernel.org/pub/scm/virt/kvm/kvm.git
+T:	git https://github.com/kvm-x86/linux.git
 F:	Documentation/process/maintainer-kvm-x86.rst
 F:	arch/x86/include/asm/kvm*
 F:	arch/x86/include/asm/svm.h
@@ -14435,6 +14436,7 @@ M:	Paolo Bonzini <[email protected]>
 L:	[email protected]
 S:	Supported
 T:	git git://git.kernel.org/pub/scm/virt/kvm/kvm.git
+T:	git https://github.com/kvm-x86/linux.git
 F:	arch/x86/kvm/hyperv.*
 F:	arch/x86/kvm/kvm_onhyperv.*
 F:	arch/x86/kvm/svm/hyperv.*
@@ -14449,6 +14451,7 @@ M:	Paolo Bonzini <[email protected]>
 L:	[email protected]
 S:	Supported
 T:	git git://git.kernel.org/pub/scm/virt/kvm/kvm.git
+T:	git https://github.com/kvm-x86/linux.git
 F:	arch/x86/kvm/xen.*
 
 L3MDEV
Signature · 1 line
2.55.0.508.g3f0d502094-goog
author maintainer
#2 lore raw

PATCH v2 2/5 KVM: guest_memfd: Move gmem function declarations to dedicated guest_memfd.h

In reply to Sean Christopherson

Extract the gmem function declarations out of kvm_mm.h and into a dedicated header, guest_memfd.h. This will allow creating a MAINTAINERS entry for guest_memfd without having to rely on content pattern matching.

---
 virt/kvm/guest_memfd.c |  1 +
 virt/kvm/guest_memfd.h | 34 ++++++++++++++++++++++++++++++++++
 virt/kvm/kvm_main.c    |  1 +
 virt/kvm/kvm_mm.h      | 27 ---------------------------
 4 files changed, 36 insertions(+), 27 deletions(-)
 create mode 100644 virt/kvm/guest_memfd.h
virt/kvm/guest_memfd.c +1 -0
index 86690683b2fe..de2585539b25 100644
@@ -9,6 +9,7 @@
 #include <linux/pagemap.h>
 
 #include "kvm_mm.h"
+#include "guest_memfd.h"
 
 static struct vfsmount *kvm_gmem_mnt;
 
virt/kvm/guest_memfd.h new file +34 -0
new file mode 100644
index 000000000000..0f9c6f840838
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef __KVM_GUEST_MEMFD_H__
+#define __KVM_GUEST_MEMFD_H__
+
+#include <linux/kvm_types.h>
+
+#ifdef CONFIG_KVM_GUEST_MEMFD
+int kvm_gmem_init(struct module *module);
+void kvm_gmem_exit(void);
+int kvm_gmem_create(struct kvm *kvm, struct kvm_create_guest_memfd *args);
+int kvm_gmem_bind(struct kvm *kvm, struct kvm_memory_slot *slot,
+		  unsigned int fd, uoff_t offset);
+void kvm_gmem_unbind(struct kvm_memory_slot *slot);
+#else
+static inline int kvm_gmem_init(struct module *module)
+{
+	return 0;
+}
+static inline void kvm_gmem_exit(void) {};
+static inline int kvm_gmem_bind(struct kvm *kvm,
+					 struct kvm_memory_slot *slot,
+					 unsigned int fd, uoff_t offset)
+{
+	WARN_ON_ONCE(1);
+	return -EIO;
+}
+
+static inline void kvm_gmem_unbind(struct kvm_memory_slot *slot)
+{
+	WARN_ON_ONCE(1);
+}
+#endif /* CONFIG_KVM_GUEST_MEMFD */
+
+#endif /* __KVM_GUEST_MEMFD_H__ */
virt/kvm/kvm_main.c +1 -0
index e44c20c04961..a2f67623e60a 100644
@@ -56,6 +56,7 @@
 
 #include "coalesced_mmio.h"
 #include "async_pf.h"
+#include "guest_memfd.h"
 #include "kvm_mm.h"
 #include "vfio.h"
 
virt/kvm/kvm_mm.h +0 -27
index 7510ca915dd1..c65cfdb14f1c 100644
@@ -70,31 +70,4 @@ static inline void gfn_to_pfn_cache_invalidate_start(struct kvm *kvm,
 }
 #endif /* HAVE_KVM_PFNCACHE */
 
-#ifdef CONFIG_KVM_GUEST_MEMFD
-int kvm_gmem_init(struct module *module);
-void kvm_gmem_exit(void);
-int kvm_gmem_create(struct kvm *kvm, struct kvm_create_guest_memfd *args);
-int kvm_gmem_bind(struct kvm *kvm, struct kvm_memory_slot *slot,
-		  unsigned int fd, uoff_t offset);
-void kvm_gmem_unbind(struct kvm_memory_slot *slot);
-#else
-static inline int kvm_gmem_init(struct module *module)
-{
-	return 0;
-}
-static inline void kvm_gmem_exit(void) {};
-static inline int kvm_gmem_bind(struct kvm *kvm,
-					 struct kvm_memory_slot *slot,
-					 unsigned int fd, uoff_t offset)
-{
-	WARN_ON_ONCE(1);
-	return -EIO;
-}
-
-static inline void kvm_gmem_unbind(struct kvm_memory_slot *slot)
-{
-	WARN_ON_ONCE(1);
-}
-#endif /* CONFIG_KVM_GUEST_MEMFD */
-
 #endif /* __KVM_MM_H__ */
Signature · 1 line
2.55.0.508.g3f0d502094-goog
author maintainer
#3 lore raw

PATCH v2 3/5 MAINTAINERS: Add an entry for KVM's guest_memfd

In reply to Sean Christopherson

To better reflect how guest_memfd has been maintained for the last few years, and to prepare for significant upcoming growth and expansion, add a dedicated MAINTAINERS entry for KVM's guest_memfd, with Paolo and myself (Sean) as co-maintainers.

List both the KVM and KVM x86 git trees as authoritative repositories, as any given guest_memfd change has a equal odds of hitting KVM x86 or not.

---
 MAINTAINERS | 9 +++++++++
 1 file changed, 9 insertions(+)
MAINTAINERS +9 -0
index 64980c262893..0e2f441314a1 100644
@@ -14412,6 +14412,15 @@ S:	Maintained
 F:	Documentation/devicetree/bindings/leds/backlight/kinetic,ktz8866.yaml
 F:	drivers/video/backlight/ktz8866.c
 
+KVM GUEST_MEMFD
+M:	Sean Christopherson <[email protected]>
+M:	Paolo Bonzini <[email protected]>
+L:	[email protected]
+S:	Supported
+T:	git git://git.kernel.org/pub/scm/virt/kvm/kvm.git
+T:	git https://github.com/kvm-x86/linux.git
+F:	virt/kvm/guest_memfd.*
+
 KVM PARAVIRT (KVM/paravirt)
 M:	Paolo Bonzini <[email protected]>
 R:	Vitaly Kuznetsov <[email protected]>
Signature · 1 line
2.55.0.508.g3f0d502094-goog
author maintainer
#4 lore raw

PATCH v2 4/5 MAINTAINERS: Add David H. as a KVM guest_memfd reviewer

In reply to Sean Christopherson

Officially "reward" David with guest_memfd responsibilities and authority, as he's been instrumental in pushing guest_memfd forward, and his ongoing input and feedback, especially from an mm/ perspective, is and will be critical to keeping us virtualization folks from going too far off the rails.

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 0e2f441314a1..6c79bb25522f 100644
@@ -14415,6 +14415,7 @@ F:	drivers/video/backlight/ktz8866.c
 KVM GUEST_MEMFD
 M:	Sean Christopherson <[email protected]>
 M:	Paolo Bonzini <[email protected]>
+R:	David Hildenbrand <[email protected]>
 L:	[email protected]
 S:	Supported
 T:	git git://git.kernel.org/pub/scm/virt/kvm/kvm.git
Signature · 1 line
2.55.0.508.g3f0d502094-goog
author maintainer
#5 lore raw

PATCH v2 5/5 MAINTAINERS: Add myself (Sean) as a reviewer in the main KVM entry

In reply to Sean Christopherson

Add myself as a reviewer for overall KVM, as I have been helping shepherd a decent chunk of the virt/kvm commits into the kernel over the last few years, and I expect to continue doing so. Of the 270 non-merge commits that have been made to virt/kvm since v6.6, I have committed 127 (~47%) and Paolo has committed 117 (~43.3%), with all but 5 of the remaining 26 coming from non-KVM folks, e.g. from treewide changes.

Note, this intended to purely be an efficiency and quality of life improvement, for both contributors and myself. There is no implied right of succession or anything of the sort.

Cc Marc Zyngier <[email protected]>
Cc Oliver Upton <[email protected]>
Cc Tianrui Zhao <[email protected]>
Cc Bibo Mao <[email protected]>
Cc Huacai Chen <[email protected]>
Cc Anup Patel <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Janosch Frank <[email protected]>
Cc Claudio Imbrenda <[email protected]>
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 6c79bb25522f..556ccf640516 100644
@@ -14047,6 +14047,7 @@ F:	kernel/umh.c
 
 KERNEL VIRTUAL MACHINE (KVM)
 M:	Paolo Bonzini <[email protected]>
+R:	Sean Christopherson <[email protected]>
 L:	[email protected]
 S:	Supported
 W:	http://www.linux-kvm.org
Signature · 1 line
2.55.0.508.g3f0d502094-goog
maintainer Acked-by on v2 5/5
#6 lore raw

Re: [PATCH v2 5/5] MAINTAINERS: Add myself (Sean) as a reviewer in the main KVM entry

Quoted 11 lines · Sean Christopherson

Add myself as a reviewer for overall KVM, as I have been helping shepherd a decent chunk of the virt/kvm commits into the kernel over the last few years, and I expect to continue doing so. Of the 270 non-merge commits that have been made to virt/kvm since v6.6, I have committed 127 (~47%) and Paolo has committed 117 (~43.3%), with all but 5 of the remaining 26 coming from non-KVM folks, e.g. from treewide changes.

Note, this intended to purely be an efficiency and quality of life improvement, for both contributors and myself. There is no implied right of succession or anything of the sort.

Paolo

Acked-by on v2 5/5
#7 lore raw

Re: [PATCH v2 5/5] MAINTAINERS: Add myself (Sean) as a reviewer in the main KVM entry

In reply to Sean Christopherson

Am 31.07.26 um 19:38 schrieb Sean Christopherson:

Quoted 11 lines

Add myself as a reviewer for overall KVM, as I have been helping shepherd a decent chunk of the virt/kvm commits into the kernel over the last few years, and I expect to continue doing so. Of the 270 non-merge commits that have been made to virt/kvm since v6.6, I have committed 127 (~47%) and Paolo has committed 117 (~43.3%), with all but 5 of the remaining 26 coming from non-KVM folks, e.g. from treewide changes.

Note, this intended to purely be an efficiency and quality of life improvement, for both contributors and myself. There is no implied right of succession or anything of the sort.

Quoted 10 lines
Cc Marc Zyngier <[email protected]>
Cc Oliver Upton <[email protected]>
Cc Tianrui Zhao <[email protected]>
Cc Bibo Mao <[email protected]>
Cc Huacai Chen <[email protected]>
Cc Anup Patel <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Janosch Frank <[email protected]>
Cc Claudio Imbrenda <[email protected]>
Quoted 16 lines
---
  MAINTAINERS | 1 +
  1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 6c79bb25522f..556ccf640516 100644
@@ -14047,6 +14047,7 @@ F:	kernel/umh.c
 
  KERNEL VIRTUAL MACHINE (KVM)
  M:	Paolo Bonzini <[email protected]>
+R:	Sean Christopherson <[email protected]>
  L:	[email protected]
  S:	Supported
  W:	http://www.linux-kvm.org
Acked-by on v2 5/5
#8 lore raw

Re: [PATCH v2 5/5] MAINTAINERS: Add myself (Sean) as a reviewer in the main KVM entry

In reply to Sean Christopherson
Quoted 11 lines · Sean Christopherson

Add myself as a reviewer for overall KVM, as I have been helping shepherd a decent chunk of the virt/kvm commits into the kernel over the last few years, and I expect to continue doing so. Of the 270 non-merge commits that have been made to virt/kvm since v6.6, I have committed 127 (~47%) and Paolo has committed 117 (~43.3%), with all but 5 of the remaining 26 coming from non-KVM folks, e.g. from treewide changes.

Note, this intended to purely be an efficiency and quality of life improvement, for both contributors and myself. There is no implied right of succession or anything of the sort.

Quoted 10 lines
Cc Marc Zyngier <[email protected]>
Cc Oliver Upton <[email protected]>
Cc Tianrui Zhao <[email protected]>
Cc Bibo Mao <[email protected]>
Cc Huacai Chen <[email protected]>
Cc Anup Patel <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Janosch Frank <[email protected]>
Cc Claudio Imbrenda <[email protected]>
Quoted 17 lines
---
  MAINTAINERS | 1 +
  1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 6c79bb25522f..556ccf640516 100644
@@ -14047,6 +14047,7 @@ F:	kernel/umh.c
 
  KERNEL VIRTUAL MACHINE (KVM)
  M:	Paolo Bonzini <[email protected]>
+R:	Sean Christopherson <[email protected]>
  L:	[email protected]
  S:	Supported
  W:	http://www.linux-kvm.org
Acked-by on v2 5/5
#9 lore raw

Re: [PATCH v2 5/5] MAINTAINERS: Add myself (Sean) as a reviewer in the main KVM entry

In reply to Sean Christopherson
Quoted 12 lines · Sean Christopherson

Add myself as a reviewer for overall KVM, as I have been helping shepherd a decent chunk of the virt/kvm commits into the kernel over the last few years, and I expect to continue doing so. Of the 270 non-merge commits that have been made to virt/kvm since v6.6, I have committed 127 (~47%) and Paolo has committed 117 (~43.3%), with all but 5 of the remaining 26 coming from non-KVM folks, e.g. from treewide changes.

Note, this intended to purely be an efficiency and quality of life improvement, for both contributors and myself. There is no implied right of succession or anything of the sort.

Quoted 10 lines
Cc Marc Zyngier <[email protected]>
Cc Oliver Upton <[email protected]>
Cc Tianrui Zhao <[email protected]>
Cc Bibo Mao <[email protected]>
Cc Huacai Chen <[email protected]>
Cc Anup Patel <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Janosch Frank <[email protected]>
Cc Claudio Imbrenda <[email protected]>

For KVM RISC-V:

Regards,
Anup

Acked-by on v2 5/5
#10 lore raw

Re: [PATCH v2 5/5] MAINTAINERS: Add myself (Sean) as a reviewer in the main KVM entry

In reply to Sean Christopherson
Quoted 21 lines · Sean Christopherson

Add myself as a reviewer for overall KVM, as I have been helping shepherd a decent chunk of the virt/kvm commits into the kernel over the last few years, and I expect to continue doing so. Of the 270 non-merge commits that have been made to virt/kvm since v6.6, I have committed 127 (~47%) and Paolo has committed 117 (~43.3%), with all but 5 of the remaining 26 coming from non-KVM folks, e.g. from treewide changes.

Note, this intended to purely be an efficiency and quality of life improvement, for both contributors and myself. There is no implied right of succession or anything of the sort.

Cc Marc Zyngier <[email protected]>
Cc Oliver Upton <[email protected]>
Cc Tianrui Zhao <[email protected]>
Cc Bibo Mao <[email protected]>
Cc Huacai Chen <[email protected]>
Cc Anup Patel <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Janosch Frank <[email protected]>
Cc Claudio Imbrenda <[email protected]>
Quoted 1 line

---

author maintainer Applied
#11 lore raw
In reply to Sean Christopherson
Quoted 8 lines · Sean Christopherson

A few tangentially related KVM MAINTAINERS updates, details in each patch (though the shortlog is probably enough info in most cases).

v2: Collect David's acks, drop RFC tag.

v1 (RFC): https://lore.kernel.org/all/[email protected]

[...]

Applied to kvm-x86 maintainers.

[1/5] MAINTAINERS: Add kvm-x86 tree to KVM x86 entries

      https://github.com/kvm-x86/linux/commit/4c6547282f08
[2/5] KVM: guest_memfd: Move gmem function declarations to dedicated guest_memfd.h
      https://github.com/kvm-x86/linux/commit/f8479adb280a
[3/5] MAINTAINERS: Add an entry for KVM's guest_memfd
      https://github.com/kvm-x86/linux/commit/fad1da20e62a
[4/5] MAINTAINERS: Add David H. as a KVM guest_memfd reviewer
      https://github.com/kvm-x86/linux/commit/fc176fd65582
[5/5] MAINTAINERS: Add myself (Sean) as a reviewer in the main KVM entry
      https://github.com/kvm-x86/linux/commit/82bd660be36f

--
https://github.com/kvm-x86/linux/tree/next