summaryrefslogtreecommitdiff
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-08-19 10:48:39 +0200
committerTakashi Iwai <tiwai@suse.de>2024-08-19 10:48:46 +0200
commit41776e40082b06c79c3c069559d6ab6664394113 (patch)
treef7e8543ac6b7d0a7ba73f2bbe715ef9984783378 /include/linux/kvm_host.h
parent1026392d10af7b35361c7ec4e14569d88c0c33e4 (diff)
parent3531df81dca2f42accbc11821c5fa28e4104efd5 (diff)
Merge branch 'topic/seq-filter-cleanup' into for-next
Pull ALSA sequencer cleanup. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 79a6b1a63027..b23c6d48392f 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -715,6 +715,13 @@ static inline bool kvm_arch_has_private_mem(struct kvm *kvm)
}
#endif
+#ifndef kvm_arch_has_readonly_mem
+static inline bool kvm_arch_has_readonly_mem(struct kvm *kvm)
+{
+ return IS_ENABLED(CONFIG_HAVE_KVM_READONLY_MEM);
+}
+#endif
+
struct kvm_memslots {
u64 generation;
atomic_long_t last_used_slot;