Skip to contentSkip to conversation

Revert tools/python part of "tools: remove support for running a guest with qemu-traditional"

PATCH In review Andrew Cooper 3 participants 5 messages Jun 2, 2025 – Jun 3, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert tools/python part of "tools: remove support for running a guest with qemu-traditional"

The migration stream is a stable ABI. What this does is break the ability to inspection and operate on pre-Xen-4.21 streams.

---
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Juergen Gross <[email protected]>

---
 tools/python/xen/migration/libxl.py | 2 ++
 1 file changed, 2 insertions(+)
tools/python/xen/migration/libxl.py +2 -0
index dc5c7ac3550c..5dcb50fe0207 100644
@@ -51,10 +51,12 @@ rec_type_to_str = {
 EMULATOR_HEADER_FORMAT = "II"
 
 EMULATOR_ID_unknown       = 0x00000000
+EMULATOR_ID_qemu_trad     = 0x00000001
 EMULATOR_ID_qemu_upstream = 0x00000002
 
 emulator_id_to_str = {
     EMULATOR_ID_unknown       : "Unknown",
+    EMULATOR_ID_qemu_trad     : "Qemu Traditional",
     EMULATOR_ID_qemu_upstream : "Qemu Upstream",
 }
 

base-commit: 286c4cc267005f73aba831d22d65abe6874ceaea

Signature · 1 line
2.39.5
#1 lore raw
Quoted 2 lines · Andrew Cooper

The migration stream is a stable ABI. What this does is break the ability to inspection and operate on pre-Xen-4.21 streams.

Do you mean Xen 4.21 should be able to accept migration of a domU with qemu trad? I don't think it's a desirable feature...

Quoted 31 lines

---
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Juergen Gross <[email protected]>

---
 tools/python/xen/migration/libxl.py | 2 ++
 1 file changed, 2 insertions(+)
tools/python/xen/migration/libxl.py +2 -0
index dc5c7ac3550c..5dcb50fe0207 100644
@@ -51,10 +51,12 @@ rec_type_to_str = {
 EMULATOR_HEADER_FORMAT = "II"
 
 EMULATOR_ID_unknown       = 0x00000000
+EMULATOR_ID_qemu_trad     = 0x00000001
 EMULATOR_ID_qemu_upstream = 0x00000002
 
 emulator_id_to_str = {
     EMULATOR_ID_unknown       : "Unknown",
+    EMULATOR_ID_qemu_trad     : "Qemu Traditional",
     EMULATOR_ID_qemu_upstream : "Qemu Upstream",
 }
 

base-commit: 286c4cc267005f73aba831d22d65abe6874ceaea

Signature · 1 line
2.39.5
Signature · 3 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
#2 lore raw
Quoted 5 lines · Marek Marczykowski-Górecki
Quoted 2 lines · Andrew Cooper

The migration stream is a stable ABI. What this does is break the ability to inspection and operate on pre-Xen-4.21 streams.

Do you mean Xen 4.21 should be able to accept migration of a domU with qemu trad? I don't think it's a desirable feature...

xl is free to reject a qemu-trad stream if it wants.

What's not ok is verify-stream-v2 exploding with "unknown emulator 1" when I ask it to tell me what the bytes in this stream mean.

~Andrew

#3 lore raw
Quoted 11 lines · Andrew Cooper
Quoted 5 lines · Marek Marczykowski-Górecki
Quoted 2 lines · Andrew Cooper

The migration stream is a stable ABI. What this does is break the ability to inspection and operate on pre-Xen-4.21 streams.

Do you mean Xen 4.21 should be able to accept migration of a domU with qemu trad? I don't think it's a desirable feature...

xl is free to reject a qemu-trad stream if it wants.

What's not ok is verify-stream-v2 exploding with "unknown emulator 1" when I ask it to tell me what the bytes in this stream mean.

I see, in that case:

Signature · 3 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab