Displaying 14 results from an estimated 14 matches for "compare_best_kernel".
Did you mean:
compare_best_kernels
2014 Dec 04
2
[PATCH v2] v2v: When picking a default kernel, favour non-debug kernels over debug kernels (RHBZ#1170073).
...s = modules;
ki_supports_virtio = supports_virtio;
ki_is_xen_kernel = is_xen_kernel;
+ ki_is_debug = is_debug;
}
)
@@ -745,7 +752,12 @@ let rec convert ~verbose ~keep_serial_console (g : G.guestfs) inspect source =
let compare_best_kernels k1 k2 =
let i = compare k1.ki_supports_virtio k2.ki_supports_virtio in
if i <> 0 then i
- else compare_app2_versions k1.ki_app k2.ki_app
+ else (
+ let i = compare_app2_versions k1.ki_app k2.ki_app in
+ if i <> 0 then i
+ (* Fa...
2017 Apr 06
1
Re: [PATCH v4 3/9] v2v: linux: Replace 'ki_supports_virtio' field.
...ens to be unavailable, this now
> tries to enable the common virtio kernel modules (just the ones needed
> for virtio-blk and virtio-net to work). The fallback is only used if
> none of the common virtio modules can be found.
> ---
> [...]
> let best_kernel =
> let compare_best_kernels k1 k2 =
> - let i = compare k1.ki_supports_virtio k2.ki_supports_virtio in
> + let i = compare k1.ki_supports_virtio_net k2.ki_supports_virtio_net in
Should this consider both virtio-net+virtio-blk to determine that a
kernel "supports virtio"?
> -let string_of_ke...
2014 Dec 04
0
Re: [PATCH v2] v2v: When picking a default kernel, favour non-debug kernels over debug kernels (RHBZ#1170073).
...ports_virtio = supports_virtio;
> ki_is_xen_kernel = is_xen_kernel;
> + ki_is_debug = is_debug;
> }
> )
>
> @@ -745,7 +752,12 @@ let rec convert ~verbose ~keep_serial_console (g : G.guestfs) inspect source =
> let compare_best_kernels k1 k2 =
> let i = compare k1.ki_supports_virtio k2.ki_supports_virtio in
> if i <> 0 then i
> - else compare_app2_versions k1.ki_app k2.ki_app
> + else (
> + let i = compare_app2_versions k1.ki_app k2.ki_app in
> + if i <...
2017 Apr 06
12
[PATCH v4 0/9] v2v: Add drivers for virtio-rng, balloon, pvpanic.
v1: https://www.redhat.com/archives/libguestfs/2017-April/msg00031.html
v2: https://www.redhat.com/archives/libguestfs/2017-April/msg00040.html
v3: https://www.redhat.com/archives/libguestfs/2017-April/msg00051.html
v3 -> v4:
- Properly fix Xen PV-only kernel detection, and test it.
Rich.
2014 Dec 04
1
[PATCH] v2v: When picking a default kernel, favour non-debug kernels over debug kernels (RHBZ#1170073).
...s = modules;
ki_supports_virtio = supports_virtio;
ki_is_xen_kernel = is_xen_kernel;
+ ki_is_debug = is_debug;
}
)
@@ -745,7 +752,12 @@ let rec convert ~verbose ~keep_serial_console (g : G.guestfs) inspect source =
let compare_best_kernels k1 k2 =
let i = compare k1.ki_supports_virtio k2.ki_supports_virtio in
if i <> 0 then i
- else compare_app2_versions k1.ki_app k2.ki_app
+ else (
+ let i = compare_app2_versions k1.ki_app k2.ki_app in
+ if i <> 0 then i
+ (* Fa...
2017 Apr 06
0
[PATCH v3 2/8] v2v: linux: Fix Xen PV-only detection.
...bootloader_kernels in
- let kernels = List.filter (fun { ki_is_xen_kernel = is_xen_kernel } -> not is_xen_kernel) kernels in
+ let kernels = List.filter (fun { ki_is_xen_pv_only_kernel = is_xen_pv_only_kernel } -> not is_xen_pv_only_kernel) kernels in
let kernels = List.sort compare_best_kernels kernels in
let kernels = List.rev kernels (* so best is first *) in
List.hd kernels in
diff --git a/v2v/linux_kernels.ml b/v2v/linux_kernels.ml
index 2efd070a6..459dc06bd 100644
--- a/v2v/linux_kernels.ml
+++ b/v2v/linux_kernels.ml
@@ -39,7 +39,7 @@ type kernel_info = {
ki_modpath...
2014 Dec 04
2
[PATCH v3 0/2] v2v: When picking a default kernel, favour non-debug
Since v2:
- Use string_suffix kernel_name "-debug" || string_suffix kernel_name "-dbg"
- This requires addition of the string_suffix function and some tests
2017 Apr 06
0
[PATCH v4 2/9] v2v: linux: Fix Xen PV-only detection.
...bootloader_kernels in
- let kernels = List.filter (fun { ki_is_xen_kernel = is_xen_kernel } -> not is_xen_kernel) kernels in
+ let kernels = List.filter (fun { ki_is_xen_pv_only_kernel = is_xen_pv_only_kernel } -> not is_xen_pv_only_kernel) kernels in
let kernels = List.sort compare_best_kernels kernels in
let kernels = List.rev kernels (* so best is first *) in
List.hd kernels in
diff --git a/v2v/linux_kernels.ml b/v2v/linux_kernels.ml
index 2efd070a6..312d6d1c0 100644
--- a/v2v/linux_kernels.ml
+++ b/v2v/linux_kernels.ml
@@ -39,7 +39,7 @@ type kernel_info = {
ki_modpath...
2017 Apr 06
0
[PATCH v4 3/9] v2v: linux: Replace 'ki_supports_virtio' field.
..., to see what to do.") prog;
(* Enable the best non-Xen kernel, where "best" means the one with
- * the highest version which supports virtio.
+ * the highest version, preferring non-debug kernels which support
+ * virtio.
*)
let best_kernel =
let compare_best_kernels k1 k2 =
- let i = compare k1.ki_supports_virtio k2.ki_supports_virtio in
+ let i = compare k1.ki_supports_virtio_net k2.ki_supports_virtio_net in
if i <> 0 then i
else (
let i = compare_app2_versions k1.ki_app k2.ki_app in
@@ -446,9 +447,9 @@ let re...
2017 Apr 06
9
[PATCH v3 0/8] v2v: Add drivers for virtio-rng, balloon, pvpanic.
v1: https://www.redhat.com/archives/libguestfs/2017-April/msg00031.html
v2: https://www.redhat.com/archives/libguestfs/2017-April/msg00040.html
v2 -> v3:
- Fix Xen PV-only kernel detection.
Rich.
2016 Sep 09
0
[PATCH] v2v: linux: Move kernel detection to a separate module.
...=
else compare k2.ki_is_debug k1.ki_is_debug
)
in
- let kernels = grub_kernels in
+ let kernels = bootloader_kernels in
let kernels = List.filter (fun { ki_is_xen_kernel = is_xen_kernel } -> not is_xen_kernel) kernels in
let kernels = List.sort compare_best_kernels kernels in
let kernels = List.rev kernels (* so best is first *) in
List.hd kernels in
- if best_kernel <> List.hd grub_kernels then
+ if best_kernel <> List.hd bootloader_kernels then
bootloader#set_default_kernel best_kernel.ki_vmlinuz;
(* Does the b...
2016 Sep 09
2
[PATCH] v2v: linux: Move kernel detection to a separate module.
This is a sort of follow-up to the Linux_bootloaders patch.
It turns out all the kernel detection code is nicely self-
contained and can therefore be moved to its own module.
Rich.
2017 Apr 05
7
[PATCH 0/6] v2v: Add drivers for virtio-rng, balloon, pvpanic.
Yaniv pointed out in https://bugzilla.redhat.com/show_bug.cgi?id=1438794
that virt-v2v both doesn't install the virtio-rng driver for Windows,
and doesn't give the guest a virtio-rng PCI device either.
There are two problems here:
Firstly the Windows virtio-rng driver isn't included in the exploded
tree (/usr/share/virtio-win) so it doesn't get copied into the guest.
The solution
2017 Apr 05
9
[PATCH v2 0/8] v2v: Add drivers for virtio-rng, balloon, pvpanic.
v1 was posted here:
https://www.redhat.com/archives/libguestfs/2017-April/msg00031.html
v1 -> v2:
- Add support for -o glance.
- Add support for -o qemu.
- Fix the -o libvirt support for balloon as pointed out by Dan.
- Fix a test failure caused by changing libvirt XML output.
Rich.