Merge ~sergiodj/ubuntu/+source/qemu:remove-hpb-noble into ubuntu/+source/qemu:ubuntu/devel

Proposed by Sergio Durigan Junior
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merged at revision: 3bae342dc803288af3ca1b51dd5463e9b0bfe791
Proposed branch: ~sergiodj/ubuntu/+source/qemu:remove-hpb-noble
Merge into: ubuntu/+source/qemu:ubuntu/devel
Diff against target: 161 lines (+38/-39)
2 files modified
debian/changelog (+7/-0)
debian/patches/ubuntu/define-ubuntu-machine-types.patch (+31/-39)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Bryce Harrington (community) Approve
Canonical Server Reporter Pending
Review via email: mp+456807@code.launchpad.net

Description of the change

This MP removes the -hpb (host-physical-bits) machine types for Noble, now that OpenStack doesn't need them anymore.

For more context on why we have been adding these specific machine types, see bug #1776189.

For context on why it is now OK to remove the Noble -hpb machine types, see bug #2045592.

Note that from Noble onward we will not add -hpb types for future Ubuntu releases, but the existing -hpb types will be kept as they are in order to guarantee smooth live migrations.

PPA: https://launchpad.net/~sergiodj/+archive/ubuntu/qemu

dep8 results will be posted as soon as I have them.

To post a comment you must log in.
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Results: (from http://autopkgtest.ubuntu.com/results/autopkgtest-noble-sergiodj-qemu/?format=plain)
  qemu @ amd64:
    http://autopkgtest.ubuntu.com/results/autopkgtest-noble-sergiodj-qemu/noble/amd64/q/qemu/20231205_051635_9c570@/log.gz
    05.12.23 05:16:35 ✅ Triggers: qemu/1:8.1.3+ds-1ubuntu2~ppa1
  qemu @ ppc64el:
    http://autopkgtest.ubuntu.com/results/autopkgtest-noble-sergiodj-qemu/noble/ppc64el/q/qemu/20231205_045846_e7706@/log.gz
    05.12.23 04:58:46 ✅ Triggers: qemu/1:8.1.3+ds-1ubuntu2~ppa1
  qemu @ s390x:
    http://autopkgtest.ubuntu.com/results/autopkgtest-noble-sergiodj-qemu/noble/s390x/q/qemu/20231205_045738_7e92e@/log.gz
    05.12.23 04:57:38 ✅ Triggers: qemu/1:8.1.3+ds-1ubuntu2~ppa1

Revision history for this message
Bryce Harrington (bryce) wrote :

The code changes look correct, and I've reviewed and studied the bug history. Build and test results all pass successfully. The change has been planned since comment #17 on LP: #1776189 and #27 on LP: #1769053.

LGTM, +1

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: sergiodj, bryce
Uploaders: sergiodj, bryce
MP auto-approved

review: Approve
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

On Tuesday, December 05 2023, Bryce Harrington wrote:

> The code changes look correct, and I've reviewed and studied the bug history. Build and test results all pass successfully. The change has been planned since comment #17 on LP: #1776189 and #27 on LP: #1769053.
>
> LGTM, +1

Thanks, Bryce.

Uploaded:

$ dput qemu_8.1.3+ds-1ubuntu2_source.changes
Trying to upload package to ubuntu
Checking signature on .changes
gpg: /home/sergio/work/qemu/qemu_8.1.3+ds-1ubuntu2_source.changes: Valid signature from 106DA1C8C3CBBF14
Checking signature on .dsc
gpg: /home/sergio/work/qemu/qemu_8.1.3+ds-1ubuntu2.dsc: Valid signature from 106DA1C8C3CBBF14
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading qemu_8.1.3+ds-1ubuntu2.dsc: done.
  Uploading qemu_8.1.3+ds-1ubuntu2.debian.tar.xz: done.
  Uploading qemu_8.1.3+ds-1ubuntu2_source.buildinfo: done.
  Uploading qemu_8.1.3+ds-1ubuntu2_source.changes: done.
Successfully uploaded packages.

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 40d8d0e..9bffa11 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+qemu (1:8.1.3+ds-1ubuntu2) noble; urgency=medium
7+
8+ * d/p/u/define-ubuntu-machine-types.patch: Remove -hpb Noble machine
9+ types, as they are not needed by OpenStack anymore. (LP: #2045592)
10+
11+ -- Sergio Durigan Junior <sergio.durigan@canonical.com> Mon, 04 Dec 2023 16:44:44 -0500
12+
13 qemu (1:8.1.3+ds-1ubuntu1) noble; urgency=medium
14
15 * Merge with Debian unstable (LP: #2044425, #2039700). Remaining changes:
16diff --git a/debian/patches/ubuntu/define-ubuntu-machine-types.patch b/debian/patches/ubuntu/define-ubuntu-machine-types.patch
17index 0be824d..336a231 100644
18--- a/debian/patches/ubuntu/define-ubuntu-machine-types.patch
19+++ b/debian/patches/ubuntu/define-ubuntu-machine-types.patch
20@@ -107,9 +107,9 @@ Forward-info: downstream decision
21
22 Index: qemu/hw/i386/pc_piix.c
23 ===================================================================
24---- qemu.orig/hw/i386/pc_piix.c 2023-11-21 20:45:15.806755599 -0500
25-+++ qemu/hw/i386/pc_piix.c 2023-11-21 22:21:00.401852388 -0500
26-@@ -508,11 +508,7 @@
27+--- qemu.orig/hw/i386/pc_piix.c 2023-12-04 16:34:41.242907089 -0500
28++++ qemu/hw/i386/pc_piix.c 2023-12-04 16:42:23.529009860 -0500
29+@@ -507,11 +507,7 @@
30 {
31 pc_i440fx_machine_options(m);
32 m->alias = "pc";
33@@ -121,7 +121,7 @@ Index: qemu/hw/i386/pc_piix.c
34 }
35
36 DEFINE_I440FX_MACHINE(v8_1, "pc-i440fx-8.1", NULL,
37-@@ -968,3 +964,345 @@
38+@@ -967,3 +963,341 @@
39 DEFINE_PC_MACHINE(xenfv, "xenfv-3.1", pc_xen_hvm_init,
40 xenfv_3_1_machine_options);
41 #endif
42@@ -417,16 +417,12 @@ Index: qemu/hw/i386/pc_piix.c
43 +DEFINE_I440FX_MACHINE(noble, "pc-i440fx-noble", NULL,
44 + pc_noble_machine_options);
45 +
46-+static void pc_noble_hpb_machine_options(MachineClass *m)
47-+{
48-+ pc_i440fx_8_1_machine_options(m);
49-+ m->desc = "Ubuntu 24.04 PC (i440FX + PIIX +host-phys-bits=true, 1996)";
50-+ m->alias = NULL;
51-+ compat_props_add(m->compat_props,
52-+ host_phys_bits_compat, host_phys_bits_compat_len);
53-+}
54-+DEFINE_I440FX_MACHINE(noble_hpb, "pc-i440fx-noble-hpb", NULL,
55-+ pc_noble_hpb_machine_options);
56++/* Ubuntu: From Noble onwards, we do not add the -hpb machine variants
57++ * because they are not needed by OpenStack anymore. For more information, see:
58++ *
59++ * https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1769053
60++ * https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2045592
61++ */
62 +
63 +/*
64 + * Due to bug 1621042 we have to consider the broken old wily machine
65@@ -469,9 +465,9 @@ Index: qemu/hw/i386/pc_piix.c
66 + pc_wily_machine_options);
67 Index: qemu/hw/i386/pc_q35.c
68 ===================================================================
69---- qemu.orig/hw/i386/pc_q35.c 2023-11-21 20:45:15.806755599 -0500
70-+++ qemu/hw/i386/pc_q35.c 2023-11-21 22:22:38.365121869 -0500
71-@@ -681,3 +681,297 @@
72+--- qemu.orig/hw/i386/pc_q35.c 2023-12-04 16:34:41.242907089 -0500
73++++ qemu/hw/i386/pc_q35.c 2023-12-04 16:43:00.296618751 -0500
74+@@ -681,3 +681,293 @@
75
76 DEFINE_Q35_MACHINE(v2_4, "pc-q35-2.4", NULL,
77 pc_q35_2_4_machine_options);
78@@ -759,20 +755,16 @@ Index: qemu/hw/i386/pc_q35.c
79 +DEFINE_Q35_MACHINE(noble, "pc-q35-noble", NULL,
80 + pc_q35_noble_machine_options);
81 +
82-+static void pc_q35_noble_hpb_machine_options(MachineClass *m)
83-+{
84-+ pc_q35_noble_machine_options(m);
85-+ m->desc = "Ubuntu 24.04 PC (Q35 + ICH9, +host-phys-bits=true, 2009)";
86-+ m->alias = NULL;
87-+ compat_props_add(m->compat_props,
88-+ host_phys_bits_compat, host_phys_bits_compat_len);
89-+}
90-+DEFINE_Q35_MACHINE(noble_hpb, "pc-q35-noble-hpb", NULL,
91-+ pc_q35_noble_hpb_machine_options);
92++/* Ubuntu: From Noble onwards, we do not add the -hpb machine variants
93++ * because they are not needed by OpenStack anymore. For more information, see:
94++ *
95++ * https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1769053
96++ * https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2045592
97++ */
98 Index: qemu/hw/ppc/spapr.c
99 ===================================================================
100---- qemu.orig/hw/ppc/spapr.c 2023-11-21 20:45:15.806755599 -0500
101-+++ qemu/hw/ppc/spapr.c 2023-11-21 22:15:25.384325850 -0500
102+--- qemu.orig/hw/ppc/spapr.c 2023-12-04 16:34:41.242907089 -0500
103++++ qemu/hw/ppc/spapr.c 2023-12-04 16:34:41.238907151 -0500
104 @@ -4732,11 +4732,14 @@
105 }
106
107@@ -856,8 +848,8 @@ Index: qemu/hw/ppc/spapr.c
108 type_register_static(&spapr_machine_info);
109 Index: qemu/hw/s390x/s390-virtio-ccw.c
110 ===================================================================
111---- qemu.orig/hw/s390x/s390-virtio-ccw.c 2023-11-21 20:45:15.806755599 -0500
112-+++ qemu/hw/s390x/s390-virtio-ccw.c 2023-11-21 22:18:03.843161573 -0500
113+--- qemu.orig/hw/s390x/s390-virtio-ccw.c 2023-12-04 16:34:41.242907089 -0500
114++++ qemu/hw/s390x/s390-virtio-ccw.c 2023-12-04 16:34:48.000000000 -0500
115 @@ -800,12 +800,15 @@
116 }
117
118@@ -922,8 +914,8 @@ Index: qemu/hw/s390x/s390-virtio-ccw.c
119 type_register_static(&ccw_machine_info);
120 Index: qemu/hw/i386/pc.c
121 ===================================================================
122---- qemu.orig/hw/i386/pc.c 2023-11-21 20:45:15.806755599 -0500
123-+++ qemu/hw/i386/pc.c 2023-11-21 20:45:15.806755599 -0500
124+--- qemu.orig/hw/i386/pc.c 2023-12-04 16:34:41.242907089 -0500
125++++ qemu/hw/i386/pc.c 2023-12-04 16:34:41.238907151 -0500
126 @@ -179,6 +179,11 @@
127 GlobalProperty pc_compat_4_0[] = {};
128 const size_t pc_compat_4_0_len = G_N_ELEMENTS(pc_compat_4_0);
129@@ -938,8 +930,8 @@ Index: qemu/hw/i386/pc.c
130 { "Opteron_G3" "-" TYPE_X86_CPU, "rdtscp", "off" },
131 Index: qemu/include/hw/i386/pc.h
132 ===================================================================
133---- qemu.orig/include/hw/i386/pc.h 2023-11-21 20:45:15.806755599 -0500
134-+++ qemu/include/hw/i386/pc.h 2023-11-21 20:45:15.806755599 -0500
135+--- qemu.orig/include/hw/i386/pc.h 2023-12-04 16:34:41.242907089 -0500
136++++ qemu/include/hw/i386/pc.h 2023-12-04 16:34:41.238907151 -0500
137 @@ -239,6 +239,9 @@
138 extern GlobalProperty pc_compat_4_0[];
139 extern const size_t pc_compat_4_0_len;
140@@ -952,8 +944,8 @@ Index: qemu/include/hw/i386/pc.h
141
142 Index: qemu/hw/core/machine.c
143 ===================================================================
144---- qemu.orig/hw/core/machine.c 2023-11-21 20:45:15.806755599 -0500
145-+++ qemu/hw/core/machine.c 2023-11-21 20:45:15.806755599 -0500
146+--- qemu.orig/hw/core/machine.c 2023-12-04 16:34:41.242907089 -0500
147++++ qemu/hw/core/machine.c 2023-12-04 16:34:51.000000000 -0500
148 @@ -245,17 +245,29 @@
149 };
150 const size_t hw_compat_2_5_len = G_N_ELEMENTS(hw_compat_2_5);
151@@ -993,8 +985,8 @@ Index: qemu/hw/core/machine.c
152 { "virtio-balloon-pci", "any_layout", "off" },
153 Index: qemu/include/hw/boards.h
154 ===================================================================
155---- qemu.orig/include/hw/boards.h 2023-11-21 20:45:15.806755599 -0500
156-+++ qemu/include/hw/boards.h 2023-11-21 20:45:15.806755599 -0500
157+--- qemu.orig/include/hw/boards.h 2023-12-04 16:34:41.242907089 -0500
158++++ qemu/include/hw/boards.h 2023-12-04 16:34:41.238907151 -0500
159 @@ -462,6 +462,10 @@
160 extern GlobalProperty hw_compat_2_4[];
161 extern const size_t hw_compat_2_4_len;

Subscribers

People subscribed via source and target branches