]> Git Repo - qemu.git/blobdiff - kvm-all.c
sheepdog: do not blindly memset all read buffers
[qemu.git] / kvm-all.c
index 4ea7d85fe29dd14b3a77b66d9f2d2b9a575ea91c..1016ca49b19c609a31199a1140af5ac39c8d0908 100644 (file)
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -22,6 +22,8 @@
 
 #include "qemu-common.h"
 #include "qemu-barrier.h"
+#include "qemu-option.h"
+#include "qemu-config.h"
 #include "sysemu.h"
 #include "hw/hw.h"
 #include "hw/msi.h"
@@ -1653,6 +1655,19 @@ int kvm_allows_irq0_override(void)
     return !kvm_irqchip_in_kernel() || kvm_has_gsi_routing();
 }
 
+void *kvm_vmalloc(ram_addr_t size)
+{
+#ifdef TARGET_S390X
+    void *mem;
+
+    mem = kvm_arch_vmalloc(size);
+    if (mem) {
+        return mem;
+    }
+#endif
+    return qemu_vmalloc(size);
+}
+
 void kvm_setup_guest_memory(void *start, size_t size)
 {
     if (!kvm_has_sync_mmu()) {
This page took 0.024076 seconds and 4 git commands to generate.