Displaying 20 results from an estimated 21 matches for "has_kvm".
Did you mean:
has_key
2018 Sep 13
1
[PATCH] lib: direct: Query qemu binary for availability of KVM (RHBZ#1605071).
...guestfs_h *g, const struct qemu_data *, const char *option);
extern int guestfs_int_qemu_supports_device (guestfs_h *g, const struct qemu_data *, const char *device_name);
extern int guestfs_int_qemu_mandatory_locking (guestfs_h *g, const struct qemu_data *data);
+extern bool guestfs_int_platform_has_kvm (guestfs_h *g, const struct qemu_data *data);
extern char *guestfs_int_drive_source_qemu_param (guestfs_h *g, const struct drive_source *src);
extern bool guestfs_int_discard_possible (guestfs_h *g, struct drive *drv, const struct version *qemu_version);
extern char *guestfs_int_qemu_escape_para...
2016 May 16
0
[PATCH] launch: direct: Add DAX root filesystem support.
...end (const char *name, const struct backend_ops *);
diff --git a/src/launch-direct.c b/src/launch-direct.c
index 01b7e07..a005bda 100644
--- a/src/launch-direct.c
+++ b/src/launch-direct.c
@@ -234,6 +234,7 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
struct hv_param *hp;
bool has_kvm;
int force_tcg;
+ bool dax;
const char *cpu_model;
/* At present you must add drives before starting the appliance. In
@@ -371,15 +372,29 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
warning (g, "qemu debugging is enabled, connect gdb to tcp::1234 to begin&qu...
2016 May 26
1
[PATCH] aarch64: launch: Only pass gic-version=host when KVM is likely to be enabled.
...char *arg)
MACHINE_TYPE ","
#endif
#ifdef __aarch64__
- "gic-version=host,"
+ "%s" /* gic-version */
#endif
"accel=%s",
+#ifdef __aarch64__
+ has_kvm && !force_tcg ? "gic-version=host," : "",
+#endif
!force_tcg ? "kvm:tcg" : "tcg");
cpu_model = guestfs_int_get_cpu_model (has_kvm && !force_tcg);
--
2.7.4
2016 May 18
1
[PATCH v3] launch: direct: Add DAX root filesystem support.
v2 -> v3:
- Rebase on top of the other patches.
Rich.
2016 May 17
1
[PATCH v2] launch: direct: Add DAX root filesystem support.
NOTE: not for upstream, yet.
v1 -> v2:
- Remove the dependency on enabling ACPI, since ACPI is now
enabled all the time.
Rich.
2018 Sep 03
3
[PATCH] ppc64le: Use -machine cap-htm=off unconditionally
Unfortunately I was not able to test this because I don't
currently have access to a P9 machine.
Rich.
2015 Oct 02
1
[PATCH 1/2] launch: direct: Use a single -machine [type, ]accel=... option.
...MACHINE_TYPE
+ MACHINE_TYPE ","
+#endif
+ "accel=kvm:tcg");
+ else
+ ADD_CMDLINE (
+#ifdef MACHINE_TYPE
+ MACHINE_TYPE ","
+#endif
+ "accel=tcg");
+
cpu_model = guestfs_int_get_cpu_model (has_kvm && !force_tcg);
if (cpu_model) {
ADD_CMDLINE ("-cpu");
ADD_CMDLINE (cpu_model);
}
- /* The qemu -machine option (added 2010-12) is a bit more sane
- * since it falls back through various different acceleration
- * modes, so try that first (thanks Markus Armb...
2018 Sep 03
1
Re: [PATCH] ppc64le: Use -machine cap-htm=off unconditionally (RHBZ#1614948).
...rtions(+)
>
> diff --git a/lib/launch-direct.c b/lib/launch-direct.c
> index 47e8f37de..94dd995c6 100644
> --- a/lib/launch-direct.c
> +++ b/lib/launch-direct.c
> @@ -523,6 +523,9 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
> #ifdef __aarch64__
> if (has_kvm && !force_tcg)
> append_list ("gic-version=host");
> +#endif
> +#ifdef __powerpc64__
> + append_list ("cap-htm=off");
> #endif
Which version of qemu was this introduced in?
> diff --git a/lib/launch-libvirt.c b/lib/launch-libvirt.c
> ind...
2017 Jan 17
2
[PATCH 0/2] lib: appliance: qemu 2.9.0 supports TCG with -cpu host on x86 (RHBZ#1277744).
NB: This requires a qemu patch by Eduardo which is currently awaiting
review:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg422959.html
So not to be applied yet unless that qemu change goes upstream.
Rich.
2018 Sep 03
0
[PATCH] ppc64le: Use -machine cap-htm=off unconditionally (RHBZ#1614948).
...10 ++++++++++
2 files changed, 13 insertions(+)
diff --git a/lib/launch-direct.c b/lib/launch-direct.c
index 47e8f37de..94dd995c6 100644
--- a/lib/launch-direct.c
+++ b/lib/launch-direct.c
@@ -523,6 +523,9 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
#ifdef __aarch64__
if (has_kvm && !force_tcg)
append_list ("gic-version=host");
+#endif
+#ifdef __powerpc64__
+ append_list ("cap-htm=off");
#endif
append_list_format ("accel=%s", !force_tcg ? "kvm:tcg" : "tcg");
} end_list ();
diff --git a/lib/launch-l...
2018 Sep 03
1
[PATCH v2] ppc64le: Use -machine cap-htm=off unconditionally
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-September/thread.html#00000
v2:
- Make conditional on qemu >= 2.11.2 and libvirt >= 4.6.0.
- Fix the libvirt XML to match what went upstream.
Still untested.
Rich.
2018 Sep 03
0
[PATCH v3] ppc64le: Use -machine cap-htm=off unconditionally (RHBZ#1614948).
...10 ++++++++++
2 files changed, 14 insertions(+)
diff --git a/lib/launch-direct.c b/lib/launch-direct.c
index 47e8f37de..e99c33347 100644
--- a/lib/launch-direct.c
+++ b/lib/launch-direct.c
@@ -523,6 +523,10 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
#ifdef __aarch64__
if (has_kvm && !force_tcg)
append_list ("gic-version=host");
+#endif
+#ifdef __powerpc64__
+ if (guestfs_int_version_ge (&data->qemu_version, 2, 11, 2))
+ append_list ("cap-htm=off");
#endif
append_list_format ("accel=%s", !force_tcg ? "kvm...
2018 Sep 03
2
[PATCH v3] ppc64le: Use -machine cap-htm=off unconditionally
Of course I mean state=off (not <htm state=on>) ...
Rich.
2015 Jun 25
2
[PATCH] launch: rework handling of --enable-valgrind-daemon
...guestfs_int_set_backend (guestfs_h *g, const char *method);
diff --git a/src/launch-direct.c b/src/launch-direct.c
index ea67ec9..f6e90da 100644
--- a/src/launch-direct.c
+++ b/src/launch-direct.c
@@ -630,6 +630,10 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
flags = 0;
if (!has_kvm || force_tcg)
flags |= APPLIANCE_COMMAND_LINE_IS_TCG;
+#ifdef VALGRIND_DAEMON
+ if (guestfs_int_get_backend_setting_bool (g, "valgrind_daemon") > 0)
+ flags |= APPLIANCE_COMMAND_LINE_VALGRIND_DAEMON;
+#endif
ADD_CMDLINE_STRING_NODUP (guestfs_int_appliance_command_line (g, a...
2017 Apr 27
4
[PATCH 0/4] common: Add a simple mini-library for handling qemu command and config files.
Currently we have an OCaml library for generating the qemu command
line (used only by ‘virt-v2v -o qemu’). However we also generate a
qemu command line in ‘lib/launch-direct.c’, and we might in future
need to generate a ‘-readconfig’-compatible configuration file if we
want to go beyond 10,000 drives for scalability testing.
Therefore this patch series reimplements the qemu command line code as
2017 Apr 19
2
[PATCH] lib: direct: Remove support for virtio-blk as the default.
...(guestfs_h *g);
static void print_qemu_command_line (guestfs_h *g, char **argv);
static char *
@@ -234,7 +234,6 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
CLEANUP_FREE void *buf = NULL;
struct drive *drv;
size_t i;
- int virtio_scsi;
struct hv_param *hp;
bool has_kvm;
int force_tcg;
@@ -336,14 +335,10 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
ADD_CMDLINE (g->hv);
/* CVE-2011-4127 mitigation: Disable SCSI ioctls on virtio-blk
- * devices. The -global option must exist, but you can pass any
- * strings to it so we don't...
2017 Apr 19
1
[PATCH] appliance: Pass root=UUID=... to supermin.
By passing root=UUID=... to supermin, we make the appliance boot
process less sensitive to the non-deterministic process of scanning
SCSI disks (of which much more to come).
This patch should be tested alongside the supermin patch posted here:
https://www.redhat.com/archives/libguestfs/2017-April/msg00174.html
which in turn requires this supermin patch series:
2020 Mar 05
5
[PATCH v2 0/4] daemon: Translate device names if Linux device is unstable (RHBZ#1804207).
v1 was here:
https://www.redhat.com/archives/libguestfs/2020-February/msg00220.html
This patch series is a little bit better. It's still a bit of a hack.
The _real_ fix for this is outlined in the TODO file (see patch 1) but
that requires a lot more work than we could do before 1.42 is
released, unless we delay 1.42 for a lot longer. I'm hoping with this
to have something which works
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers.
These aren't valid for global names in C++.
(http://stackoverflow.com/a/228797)
These large but completely mechanical patches change the illegal
identifiers to legal ones.
Rich.
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
..._string_nodup (g, &cmdline, (str))
-#define ADD_CMDLINE_PRINTF(fs,...) \
+#define ADD_CMDLINE_PRINTF(fs,...) \
guestfs_int_add_sprintf (g, &cmdline, (fs), ##__VA_ARGS__)
ADD_CMDLINE (g->hv);
@@ -615,7 +615,7 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
if (!has_kvm || force_tcg)
flags |= APPLIANCE_COMMAND_LINE_IS_TCG;
ADD_CMDLINE_STRING_NODUP (guestfs_int_appliance_command_line (g, appliance_dev,
- flags));
+ flags));
/* Note: custom command line parameters must come last so that...