pve-qemu-qoup/debian/patches/pve/0042-PVE-fixup-vma-tool.patch
Stefan Reiter a9b8206ded Apply fixups for 4.1
* Fix VMA tool build
* Change PVE code to new blockjob API
* Acquire missing lock for block_job_add_bdrv

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2019-11-21 07:59:05 +01:00

34 lines
946 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
Date: Mon, 26 Aug 2019 18:40:10 +0200
Subject: [PATCH] PVE: fixup: vma tool
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
---
vma.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vma.c b/vma.c
index 3289fd722f..a82752448a 100644
--- a/vma.c
+++ b/vma.c
@@ -16,6 +16,7 @@
#include "vma.h"
#include "qemu-common.h"
+#include "qemu/module.h"
#include "qemu/error-report.h"
#include "qemu/main-loop.h"
#include "qemu/cutils.h"
@@ -800,7 +801,9 @@ int main(int argc, char **argv)
const char *cmdname;
Error *main_loop_err = NULL;
- error_set_progname(argv[0]);
+ error_init(argv[0]);
+ module_call_init(MODULE_INIT_TRACE);
+ qemu_init_exec_dir(argv[0]);
if (qemu_init_main_loop(&main_loop_err)) {
g_error("%s", error_get_pretty(main_loop_err));