Commit dff10a9
committed
redhat: Add sub-RPM with a EFI unified kernel image for virtual machines
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2142102
Upstream Status: RHEL only
The new 'kernel-unified-virt' sub-RPM is added on x86_64 targets.
This contains an EFI application that provides a combined vmlinux,
initrd and cmdline, as a so called 'unified kernel image'. The
spec for this is defined by the boot loader specification
https://uapi-group.org/specifications/specs/boot_loader_specification/
The key benefit of a unified kernel is that its secure boot
signature covers the initrd and cmdline contents, allowing
a trustworthy measured boot process with attestation, which
is not practical with locally generated initrds/cmdlines.
Since the initrd is pre-generated its contents have to be
very generic, to be usable on a wide variety of deployments.
To make this problem tractable, the sub-RPM targets only
usage in virtual machines. With such a restriction, the
initrd only needs a very small set of block driver modules
present, in order to be usable across KVM, Hyper-V and Xen
hypervisors which will cover essentially all common public
and private clouds.
Similarly the kernel cmdline cannot contain any host specific
data, which means the root filesystem to mount needs to be
able to be automatically detected. A virtual machine image
intending to use this unified kernel package thus needs to
comply with the discoverable partitions specification:
https://uapi-group.org/specifications/specs/discoverable_partitions_specification/
Based-on-patch-by: Daniel P. Berrangé <berrange@redhat.com>
Based-on-patch-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>1 parent 95440c0 commit dff10a9
3 files changed
+139
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| 648 | + | |
648 | 649 | | |
649 | 650 | | |
650 | 651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| |||
723 | 729 | | |
724 | 730 | | |
725 | 731 | | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
726 | 747 | | |
727 | 748 | | |
728 | 749 | | |
| |||
833 | 854 | | |
834 | 855 | | |
835 | 856 | | |
| 857 | + | |
| 858 | + | |
836 | 859 | | |
837 | 860 | | |
838 | 861 | | |
| |||
1346 | 1369 | | |
1347 | 1370 | | |
1348 | 1371 | | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
1349 | 1379 | | |
1350 | 1380 | | |
1351 | 1381 | | |
| |||
1415 | 1445 | | |
1416 | 1446 | | |
1417 | 1447 | | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
1418 | 1456 | | |
1419 | 1457 | | |
1420 | 1458 | | |
| |||
2181 | 2219 | | |
2182 | 2220 | | |
2183 | 2221 | | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
2184 | 2258 | | |
2185 | 2259 | | |
2186 | 2260 | | |
| |||
2883 | 2957 | | |
2884 | 2958 | | |
2885 | 2959 | | |
| 2960 | + | |
| 2961 | + | |
2886 | 2962 | | |
2887 | 2963 | | |
2888 | 2964 | | |
2889 | 2965 | | |
2890 | 2966 | | |
2891 | | - | |
| 2967 | + | |
2892 | 2968 | | |
2893 | 2969 | | |
2894 | 2970 | | |
| |||
2933 | 3009 | | |
2934 | 3010 | | |
2935 | 3011 | | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
2936 | 3026 | | |
2937 | 3027 | | |
2938 | 3028 | | |
| |||
2946 | 3036 | | |
2947 | 3037 | | |
2948 | 3038 | | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
2949 | 3043 | | |
2950 | 3044 | | |
2951 | 3045 | | |
| |||
2970 | 3064 | | |
2971 | 3065 | | |
2972 | 3066 | | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
2973 | 3070 | | |
2974 | 3071 | | |
2975 | 3072 | | |
| |||
3204 | 3301 | | |
3205 | 3302 | | |
3206 | 3303 | | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
3207 | 3309 | | |
3208 | 3310 | | |
3209 | 3311 | | |
| |||
0 commit comments