Thread (97 messages) 97 messages, 14 authors, 2022-11-03

Re: [PATCH v8 5/8] KVM: Register/unregister the guest private memory regions

From: Chao Peng <hidden>
Date: 2022-09-26 15:31:07
Also in: kvm, linux-doc, linux-fsdevel, linux-mm, lkml, qemu-devel

On Mon, Sep 26, 2022 at 11:36:34AM +0100, Fuad Tabba wrote:
...
quoted
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 2125b50f6345..d65690cae80b 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -260,6 +260,15 @@ bool kvm_test_age_gfn(struct kvm *kvm, struct kvm_gfn_range *range);
 bool kvm_set_spte_gfn(struct kvm *kvm, struct kvm_gfn_range *range);
 #endif

+#ifdef __KVM_HAVE_ZAP_GFN_RANGE
+void kvm_zap_gfn_range(struct kvm *kvm, gfn_t gfn_start, gfn_t gfn_end);
+#else
+static inline void kvm_zap_gfn_range(struct kvm *kvm, gfn_t gfn_start
+                                                     gfn_t gfn_end)
Missing a comma after gfn_start.
Good catch, thanks!
Chao
Cheers,
/fuad
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help