remove qemu-traditional
v2 cover remove qemu-traditional
Remove the qemu-traditional support. This includes the Mini-OS based ioemu-stubdom.
Don't remove ROMBIOS for now, as it can be used with qemu (XenServer is doing that).
After adding the series a run of autoconf should be done.
Changes in V2:
- addressed comments
Juergen Gross (6):
SUPPORT.md: make Linux based stubdom fully supported
docs: remove qemu-traditional support from documentation
tools: remove support for running a guest with qemu-traditional
tools: remove qemu-traditional
stubdom: remove ancient stubdom-dm script
build: don't require full tools build for building stubdoms
.gitignore | 3 - CHANGELOG.md | 2 + Config.mk | 24 -- INSTALL | 12 - MAINTAINERS | 4 - Makefile | 2 +- README | 2 +- SUPPORT.md | 21 +- config/Tools.mk.in | 1 - docs/man/xl-pci-configuration.5.pod | 4 +- docs/man/xl.cfg.5.pod.in | 46 +-- docs/misc/stubdom.txt | 52 --- docs/misc/xenstore-paths.pandoc | 3 +- docs/process/branching-checklist.txt | 4 - docs/process/release-technician-checklist.txt | 3 - docs/process/xen-release-management.pandoc | 2 +- stubdom/Makefile | 84 +---- stubdom/configure | 89 ----- stubdom/configure.ac | 15 - stubdom/ioemu-minios.cfg | 6 - stubdom/stubdom-dm | 182 ---------- tools/Makefile | 58 ---- tools/Rules.mk | 3 - tools/config.h.in | 3 - tools/configure | 42 +-- tools/configure.ac | 21 +- tools/firmware/hvmloader/pci.c | 19 +- tools/firmware/hvmloader/util.c | 9 +- tools/golang/xenlight/types.gen.go | 1 - tools/libacpi/mk_dsdt.c | 177 ++-------- tools/libs/light/libxl_create.c | 60 +--- tools/libs/light/libxl_disk.c | 7 - tools/libs/light/libxl_dm.c | 320 +----------------- tools/libs/light/libxl_dom.c | 10 - tools/libs/light/libxl_dom_save.c | 140 -------- tools/libs/light/libxl_dom_suspend.c | 65 ---- tools/libs/light/libxl_domain.c | 15 - tools/libs/light/libxl_internal.c | 6 +- tools/libs/light/libxl_internal.h | 5 +- tools/libs/light/libxl_pci.c | 183 ---------- tools/libs/light/libxl_stream_write.c | 4 - tools/libs/light/libxl_types.idl | 1 - tools/python/xen/migration/libxl.py | 2 - tools/xl/xl_parse.c | 5 +- 44 files changed, 81 insertions(+), 1636 deletions(-) delete mode 100644 stubdom/ioemu-minios.cfg delete mode 100644 stubdom/stubdom-dm
Signature · 1 line
2.43.0
PATCH v2 1/6 SUPPORT.md: make Linux based stubdom fully supported
All patches needed for running with a Linux stubdom device model are in the tree and QubesOS is using and testing Linux stubdoms nowadays.
Switch support from "Tech Preview" to "Supported, with caveats".
---
V2:
- switch to "Supported, with caveats" (security team)
--- CHANGELOG.md | 1 + SUPPORT.md | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-)
CHANGELOG.md +1 -0
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - The minimum toolchain requirements have increased for some architectures: - For x86, GCC 5.1 and Binutils 2.25, or Clang/LLVM 11 - For ARM32 and ARM64, GCC 5.1 and Binutils 2.25 + - Linux based device model stubdomains are now fully supported. ### Added - On x86:
SUPPORT.md +4 -1
@@ -260,7 +260,10 @@ Go (golang) bindings for libxl Support for running qemu-xen device model in a linux stubdomain. - Status: Tech Preview + Status: Supported, with caveats + +Any issue in the stubdomain affecting only the guest it is servicing +or itself will not be regarded a security issue. ## Xenstore
Signature · 1 line
2.43.0
Re: [PATCH v2 1/6] SUPPORT.md: make Linux based stubdom fully supported
Quoted 19 lines · Juergen Gross
All patches needed for running with a Linux stubdom device model are in the tree and QubesOS is using and testing Linux stubdoms nowadays.
Switch support from "Tech Preview" to "Supported, with caveats".
Signed-off-by Juergen Gross<[email protected]>---
V2:
- switch to "Supported, with caveats" (security team)--- CHANGELOG.md | 1 + SUPPORT.md | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-)CHANGELOG.md +0
-0
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 13
Quoted 4 lines
CHANGELOG.md +1
-0@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - The minimum toolchain requirements have increased for some architectures: - For x86, GCC 5.1 and Binutils 2.25, or Clang/LLVM 11 - For ARM32 and ARM64, GCC 5.1 and Binutils 2.25 + - Linux based device model stubdomains are now fully supported.
LGTM: Acked-By: Oleksii Kurochko<[email protected]>
Thanks.
~ Oleksii
Quoted 19 lines
CHANGELOG.md +0
-0### Added - On x86:SUPPORT.md +4
-1@@ -260,7 +260,10 @@ Go (golang) bindings for libxl Support for running qemu-xen device model in a linux stubdomain. - Status: Tech Preview + Status: Supported, with caveats + +Any issue in the stubdomain affecting only the guest it is servicing +or itself will not be regarded a security issue. ## Xenstore
PATCH v2 2/6 docs: remove qemu-traditional support from documentation
In reply to Juergen GrossIn preparation to no longer support qemu-traditional (including qemu-stubdom), remove it from documentation.
---
V2:
- mention "qemu_xen_traditional" in xenstore-paths.pandoc as a removed device model variant (Andrew Cooper)
- don't drop Config.mk related documentation for QEMU_TRADITIONAL_REVISION (Jan Beulich)
--- docs/man/xl-pci-configuration.5.pod | 4 +- docs/man/xl.cfg.5.pod.in | 46 +++------------- docs/misc/stubdom.txt | 52 ------------------- docs/misc/xenstore-paths.pandoc | 3 +- docs/process/branching-checklist.txt | 3 -- docs/process/release-technician-checklist.txt | 2 - docs/process/xen-release-management.pandoc | 2 +- 7 files changed, 13 insertions(+), 99 deletions(-)
docs/man/xl-pci-configuration.5.pod +2 -2
@@ -111,8 +111,8 @@ if this parameter is not specified. =item Description By default pciback only allows PV guests to write "known safe" values -into PCI configuration space, likewise QEMU (both qemu-xen and -qemu-xen-traditional) imposes the same constraint on HVM guests. +into PCI configuration space, likewise QEMU imposes the same constraint +on HVM guests. However, many devices require writes to other areas of the configuration space in order to operate properly. This option tells the backend (pciback or QEMU) to allow all writes to the PCI configuration space of this device by this
docs/man/xl.cfg.5.pod.in +8 -38
101 lines not on this page · raw message
docs/misc/stubdom.txt +0 -52
58 lines not on this page · raw message
docs/misc/xenstore-paths.pandoc +2 -1
@@ -636,7 +636,8 @@ Trustworthy copy of /local/domain/$DOMID/backend/$KIND/$DEVID/$NODE. #### /libxl/$DOMID/dm-version ("qemu_xen"|"qemu_xen_traditional") = [n,INTERNAL] -The device model version for a domain. +The device model version for a domain. Note that "qemu_xen_traditional" is +a device model variant which has been removed from Xen. #### /libxl/$DOMID/remus/netbuf/$DEVID/ifb = STRING [n,INTERNAL]
docs/process/branching-checklist.txt +0 -3
@@ -14,8 +14,6 @@ ov=4.0 cd ~/git/qemu-xen.git git branch staging-$v staging git branch stable-$v master - cd ~/git/qemu-xen-traditional.git - git branch stable-$v master # make branch in libvirt ssh [email protected]
@@ -63,7 +61,6 @@ ov=4.0 cp xen--staging.patchbot-reported-heads xen--staging-$v.patchbot-reported-heads cp qemu-xen--master.patchbot-reported-heads qemu-xen--stable-$v.patchbot-reported-heads cp qemu-xen--staging.patchbot-reported-heads qemu-xen--staging-$v.patchbot-reported-heads - cp qemu-xen-traditional--master.patchbot-reported-heads qemu-xen-traditional--stable-$v.patchbot-reported-heads #emacs versions perl -i~ -pe 'next unless m/\b\Q'$ov'\E\b/; $x=$_; $x=~ s/\b\Q'$ov'\E\b/'$v'/g; print $x;' versions
docs/process/release-technician-checklist.txt +0 -2
@@ -32,8 +32,6 @@ t=RELEASE-$r git show # should show appropriate intended commit git-tag -u 'Xen.org Xen tree code signing' -m "Xen $v" xen-$v - git-push xenbits.xen.org:/home/xen/git/qemu-xen-traditional.git $s:stable-$x xen-$v - # consider making tag in minios, and updating xen.git Config.mk git checkout SOMETHING git show # should show appropriate intended commit
docs/process/xen-release-management.pandoc +1 -1
@@ -193,7 +193,7 @@ from the last RC: 1. Send out commit moratorium emails to committers@. -2. Check all the trees (mini-os, qemu-trad, qemu-xen, seabios, ovmf etc). +2. Check all the trees (mini-os, qemu-xen, seabios, ovmf etc). They have the correct commits and all security patches applied. There will be tools provided.
Signature · 1 line
2.43.0
Re: [PATCH v2 2/6] docs: remove qemu-traditional support from documentation
docs/man/xl.cfg.5.pod.in is used. · line 898
Quoted 9 lines · Juergen Gross
docs/man/xl.cfg.5.pod.in +0
-1@@ -895,12 +895,6 @@ is used. Specifies the path to the X authority file that should be used to connect to the X server when the B<sdl> option is used. -=item B<opengl=BOOLEAN>
This opengl sub-option is also mention above, for the vfb option.
Quoted 9 lines
docs/man/xl.cfg.5.pod.in +0
-5- -Enable OpenGL acceleration of the SDL display. Only effects machines -using B<device_model_version="qemu-xen-traditional"> and only if the -device-model was compiled with OpenGL support. The default is 0 (disabled). - =item B<keymap=LANG> Configure the keymap to use for the keyboard associated with this
docs/man/xl.cfg.5.pod.in working graphics passthrough. See the XenVGAPassthroughTestedAdapters · line 1212
Quoted 6 lines
docs/man/xl.cfg.5.pod.in +1
-2@@ -1215,17 +1209,14 @@ working graphics passthrough. See the XenVGAPassthroughTestedAdapters L<https://wiki.xenproject.org/wiki/XenVGAPassthroughTestedAdapters> wiki page for graphics cards currently supported by B<gfx_passthru>. -B<gfx_passthru> is currently supported both with the qemu-xen-traditional -device-model and upstream qemu-xen device-model. +B<gfx_passthru> is currently supported with the upstream qemu-xen device-model.
I don't understand why this is written in the doc :-(, where is it not supported? Previous revision had: "only supported on qemu-trad, no support for qemu-xen" which was useful information, and was changed later when qemu-xen gain support. I would remove the sentence.
docs/man/xl.cfg.5.pod.in working graphics passthrough. See the XenVGAPassthroughTestedAdapters · line 1219
Quoted 9 lines
docs/man/xl.cfg.5.pod.in +1
-3When given as a boolean the B<gfx_passthru> option either disables graphics card passthrough or enables autodetection. When given as a string the B<gfx_passthru> option describes the type of device to enable. Note that this behavior is only supported with the -upstream qemu-xen device-model. With qemu-xen-traditional IGD (Intel Graphics -Device) is always assumed and options other than autodetect or explicit IGD -will result in an error. +upstream qemu-xen device-model.
Here, we can remove the "Note that this behavior is only supported with qemu-xen dm", this is the only device model supported so I hope the behavior is supported in this case...
docs/man/xl.cfg.5.pod.in it may be useful to request a different one, like UEFI. · line 1897
Quoted 12 lines
docs/man/xl.cfg.5.pod.in +1
-4Currently, valid values for the option are:@@ -1903,10 +1894,7 @@ it may be useful to request a different one, like UEFI. =item B<rombios> -Loads ROMBIOS, a 16-bit x86 compatible BIOS. This is used by default -when B<device_model_version=qemu-xen-traditional>. This is the only BIOS -option supported when B<device_model_version=qemu-xen-traditional>. This is -the BIOS used by all previous Xen versions. +Loads ROMBIOS, a 16-bit x86 compatible BIOS.
This option is not valid anymore, libxl will complain with:
"qemu-xen does not support bios=rombios."
And I have no idea if it can work on not, I just know that XenServer still use RomBIOS with a patched QEMU.
docs/man/xl.cfg.5.pod.in Override the path to the blob to be used as BIOS. The blob provided here MUST · line 1917
Quoted 9 lines
docs/man/xl.cfg.5.pod.in +1
-2=item B<seabios>@@ -1926,8 +1914,7 @@ Override the path to the blob to be used as BIOS. The blob provided here MUST be consistent with the B<bios=> which you have specified. You should not normally need to specify this option. -This option does not have any effect if using B<bios="rombios"> or -B<device_model_version="qemu-xen-traditional">. +This option does not have any effect if using B<bios="rombios">.
This doesn't seems to be true. I think the only way currently to have bios_path_override been effective is to start a guest with type=hvm and device_model_version=qemu-xen.
So maybe instead we should write "Requires B<device_model_version="qemu-xen">." like we have for the bios=ovmf option.
Thanks,
Signature · 1 line
Anthony PERARD
Re: [PATCH v2 2/6] docs: remove qemu-traditional support from documentation
Quoted 9 lines · Anthony PERARD
Quoted 8 lines · Juergen Gross
docs/man/xl.cfg.5.pod.in +0
-0@@ -895,12 +895,6 @@ is used. Specifies the path to the X authority file that should be used to connect to the X server when the B<sdl> option is used.
Quoted 3 lines
docs/man/xl.cfg.5.pod.in is used. · line 898
Quoted 1 line
docs/man/xl.cfg.5.pod.in +0
-1-=item B<opengl=BOOLEAN>This
openglsub-option is also mention above, for thevfboption.
Right, I'll drop this reference.
Quoted 13 lines
Quoted 13 lines
docs/man/xl.cfg.5.pod.in +0
-5- -Enable OpenGL acceleration of the SDL display. Only effects machines -using B<device_model_version="qemu-xen-traditional"> and only if the -device-model was compiled with OpenGL support. The default is 0 (disabled). - =item B<keymap=LANG> Configure the keymap to use for the keyboard associated with this@@ -1215,17 +1209,14 @@ working graphics passthrough. See the XenVGAPassthroughTestedAdapters L<https://wiki.xenproject.org/wiki/XenVGAPassthroughTestedAdapters> wiki page for graphics cards currently supported by B<gfx_passthru>.
Quoted 8 lines
docs/man/xl.cfg.5.pod.in working graphics passthrough. See the XenVGAPassthroughTestedAdapters · line 1212
Quoted 3 lines
docs/man/xl.cfg.5.pod.in +1
-2-B<gfx_passthru> is currently supported both with the qemu-xen-traditional -device-model and upstream qemu-xen device-model. +B<gfx_passthru> is currently supported with the upstream qemu-xen device-model.I don't understand why this is written in the doc :-(, where is it not supported? Previous revision had: "only supported on qemu-trad, no support for qemu-xen" which was useful information, and was changed later when qemu-xen gain support. I would remove the sentence.
Agreed.
Quoted 4 lines
Quoted 4 lines
docs/man/xl.cfg.5.pod.in +0
-0When given as a boolean the B<gfx_passthru> option either disables graphics card passthrough or enables autodetection.
Quoted 10 lines
docs/man/xl.cfg.5.pod.in working graphics passthrough. See the XenVGAPassthroughTestedAdapters · line 1219
Quoted 6 lines
docs/man/xl.cfg.5.pod.in +1
-3When given as a string the B<gfx_passthru> option describes the type of device to enable. Note that this behavior is only supported with the -upstream qemu-xen device-model. With qemu-xen-traditional IGD (Intel Graphics -Device) is always assumed and options other than autodetect or explicit IGD -will result in an error. +upstream qemu-xen device-model.Here, we can remove the "Note that this behavior is only supported with qemu-xen dm", this is the only device model supported so I hope the behavior is supported in this case...
Yes.
Quoted 17 lines
docs/man/xl.cfg.5.pod.in it may be useful to request a different one, like UEFI. · line 1897
Quoted 13 lines
docs/man/xl.cfg.5.pod.in +1
-4Currently, valid values for the option are:@@ -1903,10 +1894,7 @@ it may be useful to request a different one, like UEFI. =item B<rombios> -Loads ROMBIOS, a 16-bit x86 compatible BIOS. This is used by default -when B<device_model_version=qemu-xen-traditional>. This is the only BIOS -option supported when B<device_model_version=qemu-xen-traditional>. This is -the BIOS used by all previous Xen versions. +Loads ROMBIOS, a 16-bit x86 compatible BIOS.This option is not valid anymore, libxl will complain with:
"qemu-xen does not support bios=rombios."
Quoted 2 lines
And I have no idea if it can work on not, I just know that XenServer still use RomBIOS with a patched QEMU.
I explicitly didn't remove RomBIOS support due to a remark by Andrew that XenServer is still using it.
Any suggestions what to do?
Quoted 15 lines
docs/man/xl.cfg.5.pod.in Override the path to the blob to be used as BIOS. The blob provided here MUST · line 1917
Quoted 10 lines
docs/man/xl.cfg.5.pod.in +1
-2=item B<seabios>@@ -1926,8 +1914,7 @@ Override the path to the blob to be used as BIOS. The blob provided here MUST be consistent with the B<bios=> which you have specified. You should not normally need to specify this option. -This option does not have any effect if using B<bios="rombios"> or -B<device_model_version="qemu-xen-traditional">. +This option does not have any effect if using B<bios="rombios">.This doesn't seems to be true. I think the only way currently to have
bios_path_overridebeen effective is to start a guest with type=hvm and device_model_version=qemu-xen.
Quoted 2 lines
So maybe instead we should write "Requires B<device_model_version="qemu-xen">." like we have for the bios=ovmf option.
Fine with me.
Juergen
Re: [PATCH v2 2/6] docs: remove qemu-traditional support from documentation
In reply to Anthony PERARDQuoted 5 lines · Anthony PERARD
Quoted 4 lines · Juergen Gross
docs/man/xl.cfg.5.pod.in +0
-0@@ -1903,10 +1894,7 @@ it may be useful to request a different one, like UEFI. =item B<rombios>
Quoted 8 lines
docs/man/xl.cfg.5.pod.in it may be useful to request a different one, like UEFI. · line 1897
Quoted 5 lines
docs/man/xl.cfg.5.pod.in +1
-4-Loads ROMBIOS, a 16-bit x86 compatible BIOS. This is used by default -when B<device_model_version=qemu-xen-traditional>. This is the only BIOS -option supported when B<device_model_version=qemu-xen-traditional>. This is -the BIOS used by all previous Xen versions. +Loads ROMBIOS, a 16-bit x86 compatible BIOS.This option is not valid anymore, libxl will complain with:
"qemu-xen does not support bios=rombios."
Sounds like a good time to remove bios=rombios altogether and strictly support bios=seabios only (plus the override).
Quoted 3 lines
And I have no idea if it can work on not, I just know that XenServer still use RomBIOS with a patched QEMU.
Not XCP-ng? Regardless, none of them do so via xl or libxl.
Cheers,
Alejandro
Re: [PATCH v2 2/6] docs: remove qemu-traditional support from documentation
Quoted 15 lines · Alejandro Vallejo
Quoted 5 lines · Anthony PERARD
Quoted 4 lines · Juergen Gross
docs/man/xl.cfg.5.pod.in +0
-0@@ -1903,10 +1894,7 @@ it may be useful to request a different one, like UEFI. =item B<rombios>Quoted 8 lines
docs/man/xl.cfg.5.pod.in it may be useful to request a different one, like UEFI. · line 1897
Quoted 5 lines
docs/man/xl.cfg.5.pod.in +1
-4-Loads ROMBIOS, a 16-bit x86 compatible BIOS. This is used by default -when B<device_model_version=qemu-xen-traditional>. This is the only BIOS -option supported when B<device_model_version=qemu-xen-traditional>. This is -the BIOS used by all previous Xen versions. +Loads ROMBIOS, a 16-bit x86 compatible BIOS.This option is not valid anymore, libxl will complain with:
"qemu-xen does not support bios=rombios."
Quoted 2 lines
Sounds like a good time to remove bios=rombios altogether and strictly support bios=seabios only (plus the override).
Fine with me.
But probably we should NOT drop building RomBIOS, right?
Quoted 4 lines
Quoted 2 lines
And I have no idea if it can work on not, I just know that XenServer still use RomBIOS with a patched QEMU.
Not XCP-ng? Regardless, none of them do so via xl or libxl.
Right.
Juergen
Re: [PATCH v2 2/6] docs: remove qemu-traditional support from documentation
Quoted 16 lines · Jürgen Groß
Quoted 15 lines · Alejandro Vallejo
Quoted 13 lines · Anthony PERARD
docs/man/xl.cfg.5.pod.in it may be useful to request a different one, like UEFI. · line 1897
Quoted 9 lines · Juergen Gross
docs/man/xl.cfg.5.pod.in +1
-4@@ -1903,10 +1894,7 @@ it may be useful to request a different one, like UEFI. =item B<rombios> -Loads ROMBIOS, a 16-bit x86 compatible BIOS. This is used by default -when B<device_model_version=qemu-xen-traditional>. This is the only BIOS -option supported when B<device_model_version=qemu-xen-traditional>. This is -the BIOS used by all previous Xen versions. +Loads ROMBIOS, a 16-bit x86 compatible BIOS.This option is not valid anymore, libxl will complain with:
"qemu-xen does not support bios=rombios."
Quoted 6 lines
Quoted 2 lines
Sounds like a good time to remove bios=rombios altogether and strictly support bios=seabios only (plus the override).
Fine with me.
But probably we should NOT drop building RomBIOS, right?
On staging/master? I don't think we ought to waste cycles rebuilding it. It'd only be a dependency for stable trees, so shouldn't it be built there instead? Then by the time we don't support it in stable either (because they all went EOL) it'd naturally just stop being built.
The mechanics of how that would work I'm not sure. We have per stable-tree pipelines. Do they build everything, Anthony?
Cheers,
Alejandro
Re: [PATCH v2 2/6] docs: remove qemu-traditional support from documentation
Quoted 24 lines · Alejandro Vallejo
Quoted 16 lines · Jürgen Groß
Quoted 15 lines · Alejandro Vallejo
Quoted 13 lines · Anthony PERARD
docs/man/xl.cfg.5.pod.in it may be useful to request a different one, like UEFI. · line 1897
Quoted 9 lines · Juergen Gross
docs/man/xl.cfg.5.pod.in +1
-4@@ -1903,10 +1894,7 @@ it may be useful to request a different one, like UEFI. =item B<rombios> -Loads ROMBIOS, a 16-bit x86 compatible BIOS. This is used by default -when B<device_model_version=qemu-xen-traditional>. This is the only BIOS -option supported when B<device_model_version=qemu-xen-traditional>. This is -the BIOS used by all previous Xen versions. +Loads ROMBIOS, a 16-bit x86 compatible BIOS.This option is not valid anymore, libxl will complain with:
"qemu-xen does not support bios=rombios."Quoted 6 lines
Quoted 2 lines
Sounds like a good time to remove bios=rombios altogether and strictly support bios=seabios only (plus the override).
Fine with me.
But probably we should NOT drop building RomBIOS, right?
Quoted 7 lines
On staging/master? I don't think we ought to waste cycles rebuilding it. It'd only be a dependency for stable trees, so shouldn't it be built there instead? Then by the time we don't support it in stable either (because they all went EOL) it'd naturally just stop being built.
The mechanics of how that would work I'm not sure. We have per stable-tree pipelines. Do they build everything, Anthony?
Sorry, I phrased that wrong.
I meant we shouldn't remove RomBIOS from the tree.
Juergen
PATCH v2 3/6 tools: remove support for running a guest with qemu-traditional
In reply to Juergen GrossRemove the code in tools for running a guest with qemu-traditional. This covers xl, libxl, libacpi, hvmloader and the related python and go bindings.
---
V2:
- Keep most of the removed comment in hvmloader, while removing parts of another one (Jan Beulich)
--- tools/firmware/hvmloader/pci.c | 19 +- tools/firmware/hvmloader/util.c | 9 +- tools/golang/xenlight/types.gen.go | 1 - tools/libacpi/mk_dsdt.c | 177 +++----------- tools/libs/light/libxl_create.c | 60 +---- tools/libs/light/libxl_disk.c | 7 - tools/libs/light/libxl_dm.c | 320 +------------------------- tools/libs/light/libxl_dom.c | 10 - tools/libs/light/libxl_dom_save.c | 140 ----------- tools/libs/light/libxl_dom_suspend.c | 65 ------ tools/libs/light/libxl_domain.c | 15 -- tools/libs/light/libxl_internal.c | 6 +- tools/libs/light/libxl_internal.h | 5 +- tools/libs/light/libxl_pci.c | 183 --------------- tools/libs/light/libxl_stream_write.c | 4 - tools/libs/light/libxl_types.idl | 1 - tools/python/xen/migration/libxl.py | 2 - tools/xl/xl_parse.c | 5 +- 18 files changed, 52 insertions(+), 977 deletions(-)
tools/firmware/hvmloader/pci.c +3 -16
@@ -113,19 +113,9 @@ void pci_setup(void)* increase the size of the lowmem MMIO hole? Defaulting to 1 * here will mean that non-libxl toolstacks (including xend and * home-grown ones) means that those using qemu-xen will still -* experience the memory relocation bug described below; but it -* also means that those using qemu-traditional will *not* -* experience any change; and it also means that there is a -* work-around for those using qemu-xen, namely switching to -* qemu-traditional. -* -* If we defaulted to 0, and failing to resize the hole caused any -* problems with qemu-traditional, then there is no work-around. -* -* Since xend can only use qemu-traditional, I think this is the -* option that will have the least impact. +* experience the memory relocation bug described below. */ -bool allow_memory_relocate =1 ; +bool allow_memory_relocate =0 ; BUILD_BUG_ON((typeof(*pci_devfn_decode_type))PCI_COMMAND_IO !=PCI_COMMAND_IO );
@@ -347,10 +337,7 @@ void pci_setup(void) {/* * At the moment qemu-xen can't deal with relocated memory regions. -* It's too close to the release to make a proper fix; for now, -* only allow the MMIO hole to grow large enough to move guest memory -* if we're running qemu-traditional. Items that don't fit will be -* relocated into the 64-bit address space. +* It's too close to the release to make a proper fix. * * This loop now does the following: * - If allow_memory_relocate, increase the MMIO hole until it's
tools/firmware/hvmloader/util.c +1 -8
@@ -843,14 +843,7 @@ void hvmloader_acpi_build_tables(struct acpi_config *config,/* If the device model is specified switch to the corresponding tables */ s =xenstore_read ("platform/device-model" ,"" ); -if ( !strncmp (s,"qemu_xen_traditional" ,21 ) ) - { - config->dsdt_anycpu = dsdt_anycpu; - config->dsdt_anycpu_len = dsdt_anycpu_len; - config->dsdt_15cpu = dsdt_15cpu; - config->dsdt_15cpu_len = dsdt_15cpu_len; - } -else if ( !strncmp (s,"qemu_xen" ,9 ) ) +if ( !strncmp (s,"qemu_xen" ,9 ) ) { config->dsdt_anycpu = dsdt_anycpu_qemu_xen; config->dsdt_anycpu_len = dsdt_anycpu_qemu_xen_len;
tools/golang/xenlight/types.gen.go +0 -1
@@ -70,7 +70,6 @@ ChannelConnectionSocket ChannelConnection = 2 type DeviceModelVersion int const( DeviceModelVersionUnknown DeviceModelVersion = 0 -DeviceModelVersionQemuXenTraditional DeviceModelVersion = 1 DeviceModelVersionQemuXen DeviceModelVersion = 2 )
tools/libacpi/mk_dsdt.c +37 -140
236 lines not on this page · raw message
tools/libs/light/libxl_create.c +3 -57
102 lines not on this page · raw message
tools/libs/light/libxl_disk.c +0 -7
@@ -1007,13 +1007,6 @@ int libxl_cdrom_insert(libxl_ctx *ctx, uint32_t domid, libxl_device_disk *disk, disk->backend =LIBXL_DISK_BACKEND_PHY ; } -if (cis->dm_ver ==LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL && - stubdomid) { -LOGD (ERROR , domid,"cdrom-insert doesn't work for Mini-OS stubdoms" ); - rc =ERROR_INVAL ; - goto out; - } - disks =libxl__device_list (gc, &libxl__disk_devtype, cis->disk_domid, &num);for (i =0 ; i < num; i++) {if (disks[i].is_cdrom && !strcmp (disk->vdev, disks[i].vdev))
tools/libs/light/libxl_dm.c +4 -316
376 lines not on this page · raw message
tools/libs/light/libxl_dom.c +0 -10
@@ -881,7 +881,6 @@ static int libxl__domain_firmware(libxl__gc *gc,switch (info->device_model_version) {case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN : -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL : firmware ="hvmloader" ;break ;default :
@@ -1212,15 +1211,6 @@ out:return rc; } -int libxl__qemu_traditional_cmd (libxl__gc *gc,uint32_t domid, -const char *cmd) -{ -char *path =NULL ; -uint32_t dm_domid =libxl_get_stubdom_id (CTX , domid); - path =DEVICE_MODEL_XS_PATH (gc, dm_domid, domid,"/command" ); -return libxl__xs_printf (gc,XBT_NULL , path,"%s" , cmd); -} -/*==================== Miscellaneous ====================*/ char *libxl__uuid2string (libxl__gc *gc,const libxl_uuid uuid)
tools/libs/light/libxl_dom_save.c +0 -140
158 lines not on this page · raw message
tools/libs/light/libxl_dom_suspend.c +0 -65
98 lines not on this page · raw message
tools/libs/light/libxl_domain.c +0 -15
@@ -1877,8 +1877,6 @@ int libxl_set_vcpuonline(libxl_ctx *ctx, uint32_t domid,switch (libxl__domain_type (gc, domid)) {case LIBXL_DOMAIN_TYPE_HVM :switch (libxl__device_model_version_running (gc, domid)) { -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL : -break ;case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN : rc = libxl__ev_time_register_rel(ao, &svos->timeout, set_vcpuonline_timeout,
@@ -2116,7 +2114,6 @@ static void domain_s3_resume(libxl__ao *ao, libxl__egc *egc, int domid)AO_GC ;libxl__ev_qmp *qmp;int rc =0 ; -int r;GCNEW (qmp);libxl__ev_qmp_init (qmp);
@@ -2128,14 +2125,6 @@ static void domain_s3_resume(libxl__ao *ao, libxl__egc *egc, int domid)switch (libxl__domain_type (gc, domid)) {case LIBXL_DOMAIN_TYPE_HVM :switch (libxl__device_model_version_running (gc, domid)) { -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL : - r =xc_hvm_param_set (CTX ->xch, domid,HVM_PARAM_ACPI_S_STATE ,0 ); -if (r) { -LOGED (ERROR , domid,"Send trigger '%s' failed" , -libxl_trigger_to_string (LIBXL_TRIGGER_S3RESUME )); - rc =ERROR_FAIL ; - } -break ;case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN : rc =libxl__ev_qmp_send (egc, qmp,"system_wakeup" ,NULL );if (rc) goto out;
@@ -2481,10 +2470,6 @@ static void retrieve_domain_configuration_end(libxl__egc *egc,case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN :libxl_bitmap_copy (CTX , map, &rdcs->qemuu_cpus);break ; -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL : - rc =libxl__update_avail_vcpus_xenstore (gc, domid, - max_vcpus, map); -break ;default :abort (); }
tools/libs/light/libxl_internal.c +2 -4
@@ -387,11 +387,9 @@ int libxl__device_model_version_running(libxl__gc *gc, uint32_t domid) path =libxl__xs_libxl_path (gc, domid); path =GCSPRINTF ("%s/dm-version" , path); dm_version =libxl__xs_read (gc,XBT_NULL , path); -if (!dm_version) { -return LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL ; - } -if (libxl_device_model_version_from_string (dm_version, &value) <0 ) { +if (!dm_version || +libxl_device_model_version_from_string (dm_version, &value) <0 ) {LOGD (ERROR , domid,"fatal: %s contain a wrong value (%s)" , path, dm_version);return -1 ; }
tools/libs/light/libxl_internal.h +1 -4
@@ -1423,8 +1423,6 @@ _hidden int libxl__build_hvm(libxl__gc *gc, uint32_t domid, libxl_domain_config *d_config, libxl__domain_build_state *state); -_hidden int libxl__qemu_traditional_cmd(libxl__gc *gc, uint32_t domid, -const char *cmd); _hidden int libxl__domain_rename(libxl__gc *gc, uint32_t domid,const char *old_name,const char *new_name,xs_transaction_t trans);
@@ -2315,8 +2313,7 @@ _hidden char *libxl__json_object_to_json(libxl__gc *gc,#define JSON (o) \ (libxl__json_object_to_json(gc, (o)) ? : "<invalid-json-object>") -/* Based on /local/domain/$domid/dm-version xenstore key -* default is qemu xen traditional */ +/* Based on /local/domain/$domid/dm-version xenstore key */ _hidden int libxl__device_model_version_running(libxl__gc *gc, uint32_t domid); static inline
tools/libs/light/libxl_pci.c +0 -183
231 lines not on this page · raw message
tools/libs/light/libxl_stream_write.c +0 -4
@@ -252,10 +252,6 @@ void libxl__stream_write_start(libxl__egc *egc, stream->device_model_version =libxl__device_model_version_running (gc, dss->domid);switch (stream->device_model_version) { -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL : - stream->emu_sub_hdr.id =EMULATOR_QEMU_TRADITIONAL ; -break ; -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN : stream->emu_sub_hdr.id =EMULATOR_QEMU_UPSTREAM ;break ;
tools/libs/light/libxl_types.idl +0 -1
@@ -104,7 +104,6 @@ libxl_channel_connection = Enumeration("channel_connection", [ libxl_device_model_version = Enumeration("device_model_version", [ (0, "UNKNOWN"), - (1, "QEMU_XEN_TRADITIONAL"), # Historical qemu-xen device model (qemu-dm) (2, "QEMU_XEN"), # Upstream based qemu-xen device model ])
tools/python/xen/migration/libxl.py +0 -2
@@ -51,12 +51,10 @@ 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", }
tools/xl/xl_parse.c +1 -4
@@ -2733,10 +2733,7 @@ skip_usbdev:xlu_cfg_replace_string (config,"device_model_override" , &b_info->device_model,0 );if (!xlu_cfg_get_string (config,"device_model_version" , &buf,0 )) { -if (!strcmp (buf,"qemu-xen-traditional" )) { - b_info->device_model_version - =LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL ; - }else if (!strcmp (buf,"qemu-xen" )) { +if (!strcmp (buf,"qemu-xen" )) { b_info->device_model_version =LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN ; }else {
Signature · 1 line
2.43.0
Re: [PATCH v2 3/6] tools: remove support for running a guest with qemu-traditional
tools/firmware/hvmloader/pci.c void pci_setup(void) · line 113
Quoted 6 lines · Juergen Gross
tools/firmware/hvmloader/pci.c +0
-0@@ -113,19 +113,9 @@ void pci_setup(void)* increase the size of the lowmem MMIO hole? Defaulting to 1
This say "default to 1", but the default is changing to 0 instead.
Quoted 7 lines
tools/firmware/hvmloader/pci.c +0
-5* here will mean that non-libxl toolstacks (including xend and * home-grown ones) means that those using qemu-xen will still -* experience the memory relocation bug described below; but it -* also means that those using qemu-traditional will *not* -* experience any change; and it also means that there is a -* work-around for those using qemu-xen, namely switching to -* qemu-traditional.
tools/firmware/hvmloader/pci.c void pci_setup(void) · line 118
Quoted 10 lines
tools/firmware/hvmloader/pci.c +2
-7-* -* If we defaulted to 0, and failing to resize the hole caused any -* problems with qemu-traditional, then there is no work-around. -* -* Since xend can only use qemu-traditional, I think this is the -* option that will have the least impact. +* experience the memory relocation bug described below. */ -bool allow_memory_relocate =1 ; +bool allow_memory_relocate =0 ;
I would keep this as 1. libxl does set it to 0 so there's no need to change the default here. I don't know if non-libxl toolstack will set the xenstore entry "hvmloader/allow-memory-relocate" with "1" if they need it.
tools/firmware/hvmloader/pci.c void pci_setup(void) · line 340
Quoted 12 lines
tools/firmware/hvmloader/pci.c +1
-4BUILD_BUG_ON((typeof(*pci_devfn_decode_type))PCI_COMMAND_IO !=PCI_COMMAND_IO );@@ -347,10 +337,7 @@ void pci_setup(void) {/* * At the moment qemu-xen can't deal with relocated memory regions. -* It's too close to the release to make a proper fix; for now, -* only allow the MMIO hole to grow large enough to move guest memory -* if we're running qemu-traditional. Items that don't fit will be -* relocated into the 64-bit address space. +* It's too close to the release to make a proper fix.
I feel like this is removing too much information. Maybe instead of "if we are running qemu-traditional", we could have "if allow_memory_relocate is true".
Quoted 8 lines
tools/firmware/hvmloader/pci.c +0
-0* * This loop now does the following: * - If allow_memory_relocate, increase the MMIO hole until it's tools/firmware/hvmloader/util.c +0
-0
tools/firmware/hvmloader/util.c void hvmloader_acpi_build_tables(struct acpi_config *config, · line 851
Quoted 9 lines
tools/firmware/hvmloader/util.c +0
-6@@ -843,14 +843,7 @@ void hvmloader_acpi_build_tables(struct acpi_config *config,/* If the device model is specified switch to the corresponding tables */ s =xenstore_read ("platform/device-model" ,"" ); -if ( !strncmp (s,"qemu_xen_traditional" ,21 ) ) - { - config->dsdt_anycpu = dsdt_anycpu; - config->dsdt_anycpu_len = dsdt_anycpu_len; - config->dsdt_15cpu = dsdt_15cpu; - config->dsdt_15cpu_len = dsdt_15cpu_len;
Those dsdt_anycpu and dsdt_15cpu blob are still built in. The are both associated with qemu-trad so should not be included in hvmloader anymore.
Quoted 23 lines
tools/firmware/hvmloader/util.c +1
-2- } -else if ( !strncmp (s,"qemu_xen" ,9 ) ) +if ( !strncmp (s,"qemu_xen" ,9 ) ) { config->dsdt_anycpu = dsdt_anycpu_qemu_xen; config->dsdt_anycpu_len = dsdt_anycpu_qemu_xen_len;tools/golang/xenlight/types.gen.go +0
-1@@ -70,7 +70,6 @@ ChannelConnectionSocket ChannelConnection = 2 type DeviceModelVersion int const( DeviceModelVersionUnknown DeviceModelVersion = 0 -DeviceModelVersionQemuXenTraditional DeviceModelVersion = 1 DeviceModelVersionQemuXen DeviceModelVersion = 2 )tools/libacpi/mk_dsdt.c +0
-0
tools/libacpi/mk_dsdt.c int main(int argc, char **argv) · line 83
Quoted 5 lines
tools/libacpi/mk_dsdt.c +1
-1@@ -105,7 +80,7 @@ int main(int argc, char **argv) {unsigned int cpu, max_cpus;#if defined(CONFIG_X86 ) -dm_version dm_version =QEMU_XEN_TRADITIONAL ; +dm_version dm_version =QEMU_XEN ;
This change means that we are going to have "dsdt_anycpu" (.asl and blob) been the same as "dsdt_anycpu_qemu_xen". Instead of changing the default, could you ensure that --dm-version is provided on the command line or return an error? No more default dm_version.
tools/libs/light/libxl_create.c int libxl__domain_build_info_setdefault(libxl__gc *gc, · line 101
Quoted 10 lines
tools/libacpi/mk_dsdt.c +0
-0unsigned int slot, dev, intx, link; max_cpus =HVM_MAX_VCPUS ;tools/libs/light/libxl_create.c +0
-0@@ -100,12 +100,7 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc,if (!b_info->device_model_version) {
A lot more can be removed in this blocks. In all cases, we set device_model_version=qemu-xen. Which mean it's qemu-xen in the condition just after.
Quoted 35 lines
tools/libs/light/libxl_create.c +3
-16if (b_info->type ==LIBXL_DOMAIN_TYPE_HVM ) { -if (libxl_defbool_val (b_info->device_model_stubdomain)) { - b_info->device_model_version = -LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL ; - }else { - b_info->device_model_version =LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN ; - } + b_info->device_model_version =LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN ; }else { b_info->device_model_version =LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN ;@@ -117,16 +112,8 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc, dm =libxl__domain_device_model (gc, b_info); rc =access (dm,X_OK );if (rc <0 ) { -/* qemu-xen unavailable, use qemu-xen-traditional */ -if (errno ==ENOENT ) { -LOGE (INFO ,"qemu-xen is unavailable" -", using qemu-xen-traditional instead" ); - b_info->device_model_version = -LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL ; - }else { -LOGE (ERROR ,"qemu-xen access error" ); -return ERROR_FAIL ; - } +LOGE (ERROR ,"qemu-xen access error" ); +return ERROR_FAIL ; } } }tools/libs/light/libxl_dm.c +0
-0
tools/libs/light/libxl_dm.c void libxl__spawn_stub_dm(libxl__egc *egc, libxl__stub_dm_spawn_state *sdss) · line 2158
Quoted 7 lines
tools/libs/light/libxl_dm.c +1
-3@@ -2429,16 +2155,11 @@ void libxl__spawn_stub_dm(libxl__egc *egc, libxl__stub_dm_spawn_state *sdss)"%s" , libxl_bios_type_to_string(guest_config->b_info.u.hvm.bios)); } -/* Disable relocating memory to make the MMIO hole larger -* unless we're running qemu-traditional and vNUMA is not -* configured. */ +/* Disable relocating memory to make the MMIO hole larger. */
I don't think this sentence as the right meaning :-). I feel like this read as " the following make the MMIO hole larger", but I think it is just an explanation of what "relocating memory" mean, and what is messing.
We might want to rewrite the comment, "disable relocating memory, see comment in hvmloader about the meaning". Or "disable relocating memory, having a lager MMIO hole isn't implemented with qemu-xen". Or something like that.
There's the same comment in the non-stubdom code path (device_model_launch) just below..
Quoted 33 lines
tools/libs/light/libxl_dm.c +3
-10libxl__xs_printf (gc,XBT_NULL ,libxl__sprintf (gc,"%s/hvmloader/allow-memory-relocate" ,libxl__xs_get_dompath (gc, guest_domid)), -"%d" , - guest_config->b_info.device_model_version - ==LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL && - !libxl__vnuma_configured (&guest_config->b_info)); +"0" ); ret =xc_domain_set_target (ctx->xch, dm_domid, guest_domid);if (ret<0 ) { LOGED(ERROR, guest_domid, "setting target domain %d -> %d",@@ -3162,26 +2879,16 @@ static void device_model_launch(libxl__egc *egc,libxl__xs_printf (gc,XBT_NULL ,GCSPRINTF ("%s/hvmloader/bios" , path),"%s" ,libxl_bios_type_to_string (b_info->u.hvm.bios)); -/* Disable relocating memory to make the MMIO hole larger -* unless we're running qemu-traditional and vNUMA is not -* configured. */ +/* Disable relocating memory to make the MMIO hole larger. */ libxl__xs_printf (gc,XBT_NULL ,GCSPRINTF ("%s/hvmloader/allow-memory-relocate" , path), -"%d" , - b_info->device_model_version==LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL && - !libxl__vnuma_configured (b_info)); +"0" );free (path); }tools/libs/light/libxl_dom_suspend.c +0
-0
tools/libs/light/libxl_dom_suspend.c void libxl__domain_suspend_device_model(libxl__egc *egc, · line 94
Quoted 10 lines
tools/libs/light/libxl_dom_suspend.c +0
-5@@ -85,15 +85,8 @@ void libxl__domain_suspend_device_model(libxl__egc *egc,STATE_AO_GC (dsps->ao);int rc =0 ;uint32_t const domid = dsps->domid; -const char *const filename = dsps->dm_savefile;switch (libxl__device_model_version_running (gc, domid)) { -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL : { -LOGD (DEBUG , domid,"Saving device model state to %s" , filename); -libxl__qemu_traditional_cmd (gc, domid,"save" ); -libxl__wait_for_device_model_deprecated (gc, domid,"paused" ,NULL ,NULL ,NULL );
That function isn't used anymore, and can be removed from libxl. Same for libxl__xenstore_child_wait_deprecated() which is used by it.
Quoted 10 lines
tools/libs/light/libxl_dom_suspend.c +0
-2-break ; - }case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN :/* calls dsps->callback_device_model_done when done */ libxl__qmp_suspend_save (egc, dsps);/* must be last */ tools/libs/light/libxl_stream_write.c +0
-0
tools/libs/light/libxl_stream_write.c void libxl__stream_write_start(libxl__egc *egc, · line 256
Quoted 5 lines
tools/libs/light/libxl_stream_write.c +0
-2@@ -252,10 +252,6 @@ void libxl__stream_write_start(libxl__egc *egc, stream->device_model_version =libxl__device_model_version_running (gc, dss->domid);switch (stream->device_model_version) { -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL : - stream->emu_sub_hdr.id =EMULATOR_QEMU_TRADITIONAL ;
EMULATOR_QEMU_TRADITIONAL is still defined in libxl_sr_stream_format.h, we probably what to comment it out.
Quoted 10 lines
tools/libs/light/libxl_stream_write.c +0
-2-break ; -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN : stream->emu_sub_hdr.id =EMULATOR_QEMU_UPSTREAM ;break ;tools/libs/light/libxl_types.idl +0
-0
tools/libs/light/libxl_types.idl libxl_channel_connection = Enumeration("channel_connection", [ · line 107
Quoted 4 lines
tools/libs/light/libxl_types.idl +0
-1@@ -104,7 +104,6 @@ libxl_channel_connection = Enumeration("channel_connection", [ libxl_device_model_version = Enumeration("device_model_version", [ (0, "UNKNOWN"), - (1, "QEMU_XEN_TRADITIONAL"), # Historical qemu-xen device model (qemu-dm)
I think we need to keep that, so application using libxl and using this value don't need to be changed. At least, that's a promise made in libxl.h about the API.
tools/python/xen/migration/libxl.py rec_type_to_str = { · line 54
Quoted 12 lines
tools/libs/light/libxl_types.idl +0
-0(2, "QEMU_XEN"), # Upstream based qemu-xen device model ])tools/python/xen/migration/libxl.py +0
-1@@ -51,12 +51,10 @@ rec_type_to_str = { EMULATOR_HEADER_FORMAT = "II" EMULATOR_ID_unknown = 0x00000000 -EMULATOR_ID_qemu_trad = 0x00000001
Should we keep this value as a comment? Or maybe the information in "docs/specs/libxl-migration-stream.pandoc" is enough.
tools/python/xen/migration/libxl.py rec_type_to_str = { · line 60
Quoted 8 lines
tools/python/xen/migration/libxl.py +0
-1EMULATOR_ID_qemu_upstream = 0x00000002 emulator_id_to_str = { EMULATOR_ID_unknown : "Unknown", - EMULATOR_ID_qemu_trad : "Qemu Traditional", EMULATOR_ID_qemu_upstream : "Qemu Upstream", }
Thanks,
Signature · 1 line
Anthony PERARD
Re: [PATCH v2 3/6] tools: remove support for running a guest with qemu-traditional
Quoted 9 lines · Anthony PERARD
tools/firmware/hvmloader/pci.c void pci_setup(void) · line 113
Quoted 6 lines · Juergen Gross
tools/firmware/hvmloader/pci.c +0
-0@@ -113,19 +113,9 @@ void pci_setup(void)* increase the size of the lowmem MMIO hole? Defaulting to 1 This say "default to 1", but the default is changing to 0 instead.
No, it explains the consequences in case the default would be 1.
Quoted 19 lines
Quoted 8 lines
tools/firmware/hvmloader/pci.c +0
-5* here will mean that non-libxl toolstacks (including xend and * home-grown ones) means that those using qemu-xen will still -* experience the memory relocation bug described below; but it -* also means that those using qemu-traditional will *not* -* experience any change; and it also means that there is a -* work-around for those using qemu-xen, namely switching to -* qemu-traditional. tools/firmware/hvmloader/pci.c void pci_setup(void) · line 118
Quoted 10 lines
tools/firmware/hvmloader/pci.c +2
-7-* -* If we defaulted to 0, and failing to resize the hole caused any -* problems with qemu-traditional, then there is no work-around. -* -* Since xend can only use qemu-traditional, I think this is the -* option that will have the least impact. +* experience the memory relocation bug described below. */ -bool allow_memory_relocate =1 ; +bool allow_memory_relocate =0 ;
Quoted 4 lines
I would keep this as 1. libxl does set it to 0 so there's no need to change the default here. I don't know if non-libxl toolstack will set the xenstore entry "hvmloader/allow-memory-relocate" with "1" if they need it.
Fair enough.
Quoted 17 lines
tools/firmware/hvmloader/pci.c void pci_setup(void) · line 340
Quoted 13 lines
tools/firmware/hvmloader/pci.c +1
-4BUILD_BUG_ON((typeof(*pci_devfn_decode_type))PCI_COMMAND_IO !=PCI_COMMAND_IO );@@ -347,10 +337,7 @@ void pci_setup(void) {/* * At the moment qemu-xen can't deal with relocated memory regions. -* It's too close to the release to make a proper fix; for now, -* only allow the MMIO hole to grow large enough to move guest memory -* if we're running qemu-traditional. Items that don't fit will be -* relocated into the 64-bit address space. +* It's too close to the release to make a proper fix. I feel like this is removing too much information. Maybe instead of "if we are running qemu-traditional", we could have "if
allow_memory_relocateis true".
Fine with me, but I think it is time to remove the reference to the release being too close.
Quoted 10 lines
Quoted 10 lines
tools/firmware/hvmloader/pci.c +0
-0* * This loop now does the following: * - If allow_memory_relocate, increase the MMIO hole until it's tools/firmware/hvmloader/util.c +0
-0@@ -843,14 +843,7 @@ void hvmloader_acpi_build_tables(struct acpi_config *config,
Quoted 12 lines
tools/firmware/hvmloader/util.c void hvmloader_acpi_build_tables(struct acpi_config *config, · line 851
Quoted 8 lines
tools/firmware/hvmloader/util.c +0
-6/* If the device model is specified switch to the corresponding tables */ s =xenstore_read ("platform/device-model" ,"" ); -if ( !strncmp (s,"qemu_xen_traditional" ,21 ) ) - { - config->dsdt_anycpu = dsdt_anycpu; - config->dsdt_anycpu_len = dsdt_anycpu_len; - config->dsdt_15cpu = dsdt_15cpu; - config->dsdt_15cpu_len = dsdt_15cpu_len;Those
dsdt_anycpuanddsdt_15cpublob are still built in. The are both associated with qemu-trad so should not be included in hvmloader anymore.
Okay, I'll remove them.
Quoted 19 lines
Quoted 19 lines
tools/firmware/hvmloader/util.c +1
-2- } -else if ( !strncmp (s,"qemu_xen" ,9 ) ) +if ( !strncmp (s,"qemu_xen" ,9 ) ) { config->dsdt_anycpu = dsdt_anycpu_qemu_xen; config->dsdt_anycpu_len = dsdt_anycpu_qemu_xen_len;tools/golang/xenlight/types.gen.go +0
-1@@ -70,7 +70,6 @@ ChannelConnectionSocket ChannelConnection = 2 type DeviceModelVersion int const( DeviceModelVersionUnknown DeviceModelVersion = 0 -DeviceModelVersionQemuXenTraditional DeviceModelVersion = 1 DeviceModelVersionQemuXen DeviceModelVersion = 2 )
Quoted 15 lines
tools/libacpi/mk_dsdt.c int main(int argc, char **argv) · line 83
Quoted 10 lines
tools/libacpi/mk_dsdt.c +1
-1@@ -105,7 +80,7 @@ int main(int argc, char **argv) {unsigned int cpu, max_cpus;#if defined(CONFIG_X86 ) -dm_version dm_version =QEMU_XEN_TRADITIONAL ; +dm_version dm_version =QEMU_XEN ;This change means that we are going to have "
dsdt_anycpu" (.asl and blob) been the same as "dsdt_anycpu_qemu_xen". Instead of changing the default, could you ensure that--dm-versionis provided on the command line or return an error? No more defaultdm_version.
Okay.
Quoted 10 lines
Quoted 10 lines
tools/libacpi/mk_dsdt.c +0
-0unsigned int slot, dev, intx, link; max_cpus =HVM_MAX_VCPUS ;tools/libs/light/libxl_create.c +0
-0@@ -100,12 +100,7 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc,
Quoted 5 lines
tools/libs/light/libxl_create.c int libxl__domain_build_info_setdefault(libxl__gc *gc, · line 101
Quoted 1 line
tools/libs/light/libxl_create.c +0
-0if (!b_info->device_model_version) {A lot more can be removed in this blocks. In all cases, we set device_model_version=qemu-xen. Which mean it's qemu-xen in the condition just after.
Right. I'll simplify that.
Quoted 49 lines
Quoted 36 lines
tools/libs/light/libxl_create.c +3
-16if (b_info->type ==LIBXL_DOMAIN_TYPE_HVM ) { -if (libxl_defbool_val (b_info->device_model_stubdomain)) { - b_info->device_model_version = -LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL ; - }else { - b_info->device_model_version =LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN ; - } + b_info->device_model_version =LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN ; }else { b_info->device_model_version =LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN ;@@ -117,16 +112,8 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc, dm =libxl__domain_device_model (gc, b_info); rc =access (dm,X_OK );if (rc <0 ) { -/* qemu-xen unavailable, use qemu-xen-traditional */ -if (errno ==ENOENT ) { -LOGE (INFO ,"qemu-xen is unavailable" -", using qemu-xen-traditional instead" ); - b_info->device_model_version = -LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL ; - }else { -LOGE (ERROR ,"qemu-xen access error" ); -return ERROR_FAIL ; - } +LOGE (ERROR ,"qemu-xen access error" ); +return ERROR_FAIL ; } } }tools/libs/light/libxl_dm.c +0
-0tools/libs/light/libxl_dm.c void libxl__spawn_stub_dm(libxl__egc *egc, libxl__stub_dm_spawn_state *sdss) · line 2158
Quoted 7 lines
tools/libs/light/libxl_dm.c +1
-3@@ -2429,16 +2155,11 @@ void libxl__spawn_stub_dm(libxl__egc *egc, libxl__stub_dm_spawn_state *sdss)"%s" , libxl_bios_type_to_string(guest_config->b_info.u.hvm.bios)); } -/* Disable relocating memory to make the MMIO hole larger -* unless we're running qemu-traditional and vNUMA is not -* configured. */ +/* Disable relocating memory to make the MMIO hole larger. */ I don't think this sentence as the right meaning :-). I feel like this read as " the following make the MMIO hole larger", but I think it is just an explanation of what "relocating memory" mean, and what is messing.
Quoted 4 lines
We might want to rewrite the comment, "disable relocating memory, see comment in hvmloader about the meaning". Or "disable relocating memory, having a lager MMIO hole isn't implemented with qemu-xen". Or something like that.
I like the second variant better.
Quoted 42 lines
There's the same comment in the non-stubdom code path (
device_model_launch) just below..Quoted 38 lines
tools/libs/light/libxl_dm.c +3
-10libxl__xs_printf (gc,XBT_NULL ,libxl__sprintf (gc,"%s/hvmloader/allow-memory-relocate" ,libxl__xs_get_dompath (gc, guest_domid)), -"%d" , - guest_config->b_info.device_model_version - ==LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL && - !libxl__vnuma_configured (&guest_config->b_info)); +"0" ); ret =xc_domain_set_target (ctx->xch, dm_domid, guest_domid);if (ret<0 ) { LOGED(ERROR, guest_domid, "setting target domain %d -> %d",@@ -3162,26 +2879,16 @@ static void device_model_launch(libxl__egc *egc,libxl__xs_printf (gc,XBT_NULL ,GCSPRINTF ("%s/hvmloader/bios" , path),"%s" ,libxl_bios_type_to_string (b_info->u.hvm.bios)); -/* Disable relocating memory to make the MMIO hole larger -* unless we're running qemu-traditional and vNUMA is not -* configured. */ +/* Disable relocating memory to make the MMIO hole larger. */ libxl__xs_printf (gc,XBT_NULL ,GCSPRINTF ("%s/hvmloader/allow-memory-relocate" , path), -"%d" , - b_info->device_model_version==LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL && - !libxl__vnuma_configured (b_info)); +"0" );free (path); }tools/libs/light/libxl_dom_suspend.c +0
-1@@ -85,15 +85,8 @@ void libxl__domain_suspend_device_model(libxl__egc *egc,STATE_AO_GC (dsps->ao);int rc =0 ;uint32_t const domid = dsps->domid; -const char *const filename = dsps->dm_savefile;
Quoted 8 lines
tools/libs/light/libxl_dom_suspend.c void libxl__domain_suspend_device_model(libxl__egc *egc, · line 94
Quoted 5 lines
tools/libs/light/libxl_dom_suspend.c +0
-4switch (libxl__device_model_version_running (gc, domid)) { -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL : { -LOGD (DEBUG , domid,"Saving device model state to %s" , filename); -libxl__qemu_traditional_cmd (gc, domid,"save" ); -libxl__wait_for_device_model_deprecated (gc, domid,"paused" ,NULL ,NULL ,NULL );That function isn't used anymore, and can be removed from libxl. Same for
libxl__xenstore_child_wait_deprecated()which is used by it.
I'll remove those.
Quoted 11 lines
Quoted 11 lines
tools/libs/light/libxl_dom_suspend.c +0
-2-break ; - }case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN :/* calls dsps->callback_device_model_done when done */ libxl__qmp_suspend_save (egc, dsps);/* must be last */ tools/libs/light/libxl_stream_write.c +0
-0@@ -252,10 +252,6 @@ void libxl__stream_write_start(libxl__egc *egc,
Quoted 8 lines
tools/libs/light/libxl_stream_write.c void libxl__stream_write_start(libxl__egc *egc, · line 256
Quoted 5 lines
tools/libs/light/libxl_stream_write.c +0
-2stream->device_model_version =libxl__device_model_version_running (gc, dss->domid);switch (stream->device_model_version) { -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL : - stream->emu_sub_hdr.id =EMULATOR_QEMU_TRADITIONAL ;
EMULATOR_QEMU_TRADITIONALis still defined inlibxl_sr_stream_format.h, we probably what to comment it out.
Wouldn't it be better to add a comment like "no longer supported from Xen 4.21 onwards"?
Quoted 12 lines
Quoted 12 lines
tools/libs/light/libxl_stream_write.c +0
-2-break ; -case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN : stream->emu_sub_hdr.id =EMULATOR_QEMU_UPSTREAM ;break ;tools/libs/light/libxl_types.idl +0
-0@@ -104,7 +104,6 @@ libxl_channel_connection = Enumeration("channel_connection", [
Quoted 7 lines
tools/libs/light/libxl_types.idl libxl_channel_connection = Enumeration("channel_connection", [ · line 107
Quoted 3 lines
tools/libs/light/libxl_types.idl +0
-1libxl_device_model_version = Enumeration("device_model_version", [ (0, "UNKNOWN"), - (1, "QEMU_XEN_TRADITIONAL"), # Historical qemu-xen device model (qemu-dm)I think we need to keep that, so application using libxl and using this value don't need to be changed. At least, that's a promise made in
libxl.habout the API.
In that I cas I'll add "(no longer supported)".
Quoted 11 lines
Quoted 11 lines
tools/libs/light/libxl_types.idl +0
-0(2, "QEMU_XEN"), # Upstream based qemu-xen device model ])tools/python/xen/migration/libxl.py +0
-0@@ -51,12 +51,10 @@ rec_type_to_str = { EMULATOR_HEADER_FORMAT = "II"
Quoted 5 lines
tools/python/xen/migration/libxl.py rec_type_to_str = { · line 54
Quoted 2 lines
tools/python/xen/migration/libxl.py +0
-1EMULATOR_ID_unknown = 0x00000000 -EMULATOR_ID_qemu_trad = 0x00000001Should we keep this value as a comment? Or maybe the information in "docs/specs/libxl-migration-stream.pandoc" is enough.
I don't think keeping it will have any real advantage.
Quoted 8 lines
tools/python/xen/migration/libxl.py rec_type_to_str = { · line 59
Quoted 8 lines
tools/python/xen/migration/libxl.py +0
-1EMULATOR_ID_qemu_upstream = 0x00000002 emulator_id_to_str = { EMULATOR_ID_unknown : "Unknown", - EMULATOR_ID_qemu_trad : "Qemu Traditional", EMULATOR_ID_qemu_upstream : "Qemu Upstream", }
Juergen
PATCH v2 4/6 tools: remove qemu-traditional
In reply to Juergen GrossRemove qemu traditional from the tree.
--- .gitignore | 3 - CHANGELOG.md | 1 + Config.mk | 24 ----- INSTALL | 12 --- MAINTAINERS | 4 - README | 2 +- SUPPORT.md | 16 ---- config/Tools.mk.in | 1 - docs/process/branching-checklist.txt | 1 - docs/process/release-technician-checklist.txt | 1 - stubdom/Makefile | 84 +---------------- stubdom/configure | 89 ------------------- stubdom/configure.ac | 15 ---- stubdom/ioemu-minios.cfg | 6 -- tools/Makefile | 58 ------------ tools/Rules.mk | 3 - tools/config.h.in | 3 - tools/configure | 42 +-------- tools/configure.ac | 21 +---- 19 files changed, 10 insertions(+), 376 deletions(-) delete mode 100644 stubdom/ioemu-minios.cfg
.gitignore +0 -3
@@ -255,9 +255,6 @@ LibVNCServer* tools/qemu-xen-dir-remote tools/qemu-xen-dir -tools/qemu-xen-traditional-dir-remote -tools/qemu-xen-traditional-dir - tools/firmware/seabios-dir-remote tools/firmware/seabios-dir
CHANGELOG.md +1 -0
@@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Smoke tests for the FreeBSD Xen builds in Cirrus CI. ### Removed + - Support of qemu-traditional has been removed. ## [4.20.0](https://xenbits.xenproject.org/gitweb/?p=xen.git;a=shortlog;h=RELEASE-4.20.0) - 2025-03-05
Config.mk +0 -24
@@ -208,22 +208,12 @@ XEN_EXTFILES_URL ?= https://xenbits.xen.org/xen-extfiles # Where to look for inlined subtrees (for example, from a tarball) QEMU_UPSTREAM_INTREE ?= $(XEN_ROOT)/tools/qemu-xen -QEMU_TRADITIONAL_INTREE ?= $(XEN_ROOT)/tools/qemu-xen-traditional # Handle legacy options ifneq (,$(SEABIOS_UPSTREAM_TAG)) SEABIOS_UPSTREAM_REVISION ?= $(SEABIOS_UPSTREAM_TAG) endif -ifneq (,$(QEMU_REMOTE)) -QEMU_TRADITIONAL_URL ?= $(QEMU_REMOTE) -endif -ifneq (,$(CONFIG_QEMU)) -QEMU_TRADITIONAL_LOC ?= $(CONFIG_QEMU) -endif -ifneq (,$(QEMU_TAG)) -QEMU_TRADITIONAL_REVISION ?= $(QEMU_TAG) -endif OVMF_UPSTREAM_URL ?= https://xenbits.xen.org/git-http/ovmf.git OVMF_UPSTREAM_REVISION ?= ba91d0292e593df8528b66f99c1b0b14fadc8e16
@@ -239,20 +229,6 @@ SEABIOS_UPSTREAM_REVISION ?= rel-1.16.3 ETHERBOOT_NICS ?= rtl8139 8086100e - -QEMU_TRADITIONAL_URL ?= https://xenbits.xen.org/git-http/qemu-xen-traditional.git -QEMU_TRADITIONAL_REVISION ?= 3d273dd05e51e5a1ffba3d98c7437ee84e8f8764 -# Wed Jul 15 10:01:40 2020 +0100 -# qemu-trad: remove Xen path dependencies - -# Specify which qemu-dm to use. This may be `ioemu' to use the old -# Mercurial in-tree version, or a local directory, or a git URL. -# QEMU_UPSTREAM_LOC ?= `pwd`/$(XEN_ROOT)/../qemu-xen.git - -# Defaults for subtree locations -QEMU_TRADITIONAL_LOC ?= $(call or,$(wildcard $(QEMU_TRADITIONAL_INTREE)),\ - $(QEMU_TRADITIONAL_URL)) - QEMU_UPSTREAM_LOC ?= $(call or,$(wildcard $(QEMU_UPSTREAM_INTREE)),\ $(QEMU_UPSTREAM_URL))
INSTALL +0 -12
@@ -113,15 +113,6 @@ Build a private copy of SeaBIOS. Use the given SeaBIOS binary instead of compiling a private copy. --with-system-seabios=PATH -Build the old qemu used by xm/xend. This is required if existing domUs -should be migrated to this host, or if existing domU snapshots should be -started with this version of the tools. Only if all domUs used the new -upstream qemu during initial start it is safe to disable this option. -The old qemu requires rombios, which can be disable along with -qemu-traditional. - --enable-qemu-traditional - --enable-rombios - The libxl toolstack uses the upstream qemu per default. A private copy will be built. If desired this private copy can be configured with additional options passed to its configure script.
@@ -245,7 +236,6 @@ locations. XEN_EXTFILES_URL= OVMF_UPSTREAM_URL= QEMU_UPSTREAM_URL= -QEMU_TRADITIONAL_URL= SEABIOS_UPSTREAM_URL= MINIOS_UPSTREAM_URL=
@@ -253,7 +243,6 @@ Using additional CFLAGS to build tools which will run in dom0 is required when building distro packages. These variables can be used to pass RPM_OPT_FLAGS. EXTRA_CFLAGS_XEN_TOOLS= -EXTRA_CFLAGS_QEMU_TRADITIONAL= EXTRA_CFLAGS_QEMU_XEN= Additional CFLAGS may be supplied to the build of the hypervisor by
@@ -340,7 +329,6 @@ sudo make install BOOT_DIR=/ood/path/boot EFI_DIR=/odd/path/efi export WGET=$(type -P false) export GIT=$(type -P false) export EXTRA_CFLAGS_XEN_TOOLS="$RPM_OPT_FLAGS" -export EXTRA_CFLAGS_QEMU_TRADITIONAL="$RPM_OPT_FLAGS" export EXTRA_CFLAGS_QEMU_XEN="$RPM_OPT_FLAGS" %configure \ --with-initddir=%{_initddir}
MAINTAINERS +0 -4
@@ -466,10 +466,6 @@ M: Marek Marczykowski-Górecki <[email protected]> S: Supported F: tools/python -QEMU-DM -S: Supported -T: git https://xenbits.xenproject.org/git-http/qemu-xen-traditional.git - QEMU UPSTREAM M: Stefano Stabellini <[email protected]> M: Anthony Perard <[email protected]>
README +1 -1
@@ -80,7 +80,7 @@ disabled at compile time: libnl-3-dev, etc). Required if network buffering is desired when using Remus with libxl. See docs/README.remus for detailed information. - * 16-bit x86 assembler, loader and compiler for qemu-traditional / rombios + * 16-bit x86 assembler, loader and compiler for rombios (dev86 rpm or bin86 & bcc debs) * Development install of liblzma for rombios * Development install of libbz2, liblzma, liblzo2, and libzstd for DomU
SUPPORT.md +0 -16
@@ -998,21 +998,6 @@ See the section **Blkback** for image formats supported by QEMU. Status: Supported, not security supported -### qemu-xen-traditional ### - -The Xen Project provides an old version of qemu with modifications -which enable use as a device model stub domain. The old version is -normally selected by default only in a stub dm configuration, but it -can be requested explicitly in other configurations, for example in -`xl` with `device_model_version="QEMU_XEN_TRADITIONAL"`. - - Status, Device Model Stub Domains: Supported, with caveats - Status, as host process device model: No security support, not recommended - -qemu-xen-traditional is security supported only for those available -devices which are supported for mainstream QEMU (see above), with -trusted driver domains (see Device Model Stub Domains). - ## Virtual Firmware ### x86/HVM iPXE
@@ -1031,7 +1016,6 @@ as the guest itself. Booting a guest via guest BIOS firmware Status, SeaBIOS (qemu-xen): Supported - Status, ROMBIOS (qemu-xen-traditional): Supported ### x86/HVM OVMF
config/Tools.mk.in +0 -1
@@ -43,7 +43,6 @@ CONFIG_OVMF := @ovmf@ CONFIG_ROMBIOS := @rombios@ CONFIG_SEABIOS := @seabios@ CONFIG_IPXE := @ipxe@ -CONFIG_QEMU_TRAD := @qemu_traditional@ CONFIG_QEMU_XEN := @qemu_xen@ CONFIG_QEMUU_EXTRA_ARGS:= @EXTRA_QEMUU_CONFIGURE_ARGS@ CONFIG_LIBNL := @libnl@
docs/process/branching-checklist.txt +0 -1
@@ -71,7 +71,6 @@ ov=4.0 Ensure references to qemu trees and Mini-OS in xen.git's Config.mk are updated. The variables and there content should be: * QEMU_UPSTREAM_REVISION: qemu-xen-X.Y.0 - * QEMU_TRADITIONAL_REVISION: xen-X.Y.0 * MINIOS_UPSTREAM_REVISION: xen-RELEASE-X.Y.0 Where X.Y is the release version (e.g. 4.17).
docs/process/release-technician-checklist.txt +0 -1
@@ -56,7 +56,6 @@ t=RELEASE-$r * change xen-unstable Config.mk # QEMU_UPSTREAM_REVISION, -# QEMU_TRADITIONAL_REVISION # MINIOS_UPSTREAM_REVISION # (drop any references to the specific commits, e.g. date or title) * change SUPPORT.md heading version number; -unstable or -rc tag
stubdom/Makefile +2 -82
141 lines not on this page · raw message
stubdom/configure +0 -89
137 lines not on this page · raw message
stubdom/configure.ac +0 -15
@@ -18,7 +18,6 @@ m4_include([../m4/depends.m4]) m4_include([../m4/fetcher.m4]) # Enable/disable stub domains -AX_STUBDOM_CONDITIONAL([ioemu-stubdom], [ioemu]) AX_STUBDOM_DEFAULT_DISABLE([c-stubdom], [c]) AX_STUBDOM_DEFAULT_DISABLE([pv-grub], [grub]) AX_STUBDOM_DEFAULT_ENABLE([xenstore-stubdom], [xenstore])
@@ -26,19 +25,6 @@ AX_STUBDOM_DEFAULT_ENABLE([xenstorepvh-stubdom], [xenstorepvh]) AX_STUBDOM_CONDITIONAL([vtpm-stubdom], [vtpm]) AX_STUBDOM_CONDITIONAL([vtpmmgr-stubdom], [vtpmmgr]) -AC_ARG_ENABLE([qemu-traditional]) -AS_IF([test "x$enable_qemu_traditional" = "xyes"], [ - qemu_traditional=y],[ - qemu_traditional=n -]) -AS_IF([test "x$ioemu" = "x"], [ - ioemu=$qemu_traditional -]) -echo "x$ioemu$qemu_traditional" -AS_IF([test "x$ioemu$qemu_traditional" = "xyn"], [ - AC_MSG_ERROR(IOEMU stubdomain requires qemu-traditional) -]) - AX_ARG_DEFAULT_ENABLE([debug], [Disable debug build of stubdom]) AX_ARG_DEFAULT_ENABLE([extfiles], [Use xen extfiles repository for libraries])
@@ -69,7 +55,6 @@ AX_STUBDOM_AUTO_DEPENDS([vtpmmgr], [vtpm]) #Conditionally enable these stubdoms based on the presense of dependencies AX_STUBDOM_CONDITIONAL_FINISH([vtpm-stubdom], [vtpm]) AX_STUBDOM_CONDITIONAL_FINISH([vtpmmgr-stubdom], [vtpmmgr]) -AX_STUBDOM_CONDITIONAL_FINISH([ioemu-stubdom], [ioemu]) AX_STUBDOM_FINISH AC_OUTPUT()
stubdom/ioemu-minios.cfg deleted +0 -6
@@ -1,6 +0,0 @@ -CONFIG_LIBC=y -CONFIG_LWIP=y -CONFIG_START_NETWORK=n -CONFIG_QEMU_XS_ARGS=y -CONFIG_PCIFRONT=y -XEN_INTERFACE_VERSION=__XEN_LATEST_INTERFACE_VERSION__
tools/Makefile +0 -58
88 lines not on this page · raw message
tools/Rules.mk +0 -3
@@ -134,12 +134,9 @@ endif CFLAGS_libxenlight += $(CFLAGS_libxenctrl) -# Don't add -Werror if we are used by qemu-trad build system. -ifndef BUILDING_QEMU_TRAD ifeq ($(CONFIG_WERROR),y) CFLAGS += -Werror endif -endif ifeq ($(debug),y) # Use -Og if available, -O0 otherwise
tools/config.h.in +0 -3
@@ -42,9 +42,6 @@ /* pygrub enabled */ #undef HAVE_PYGRUB -/* Qemu traditional enabled */ -#undef HAVE_QEMU_TRADITIONAL - /* ROMBIOS enabled */ #undef HAVE_ROMBIOS
tools/configure +4 -38
90 lines not on this page · raw message
tools/configure.ac +2 -19
@@ -121,25 +121,11 @@ esac]) LINUX_BACKEND_MODULES="`eval echo $LINUX_BACKEND_MODULES`" AC_SUBST(LINUX_BACKEND_MODULES) -AC_ARG_ENABLE([qemu-traditional], - AS_HELP_STRING([--enable-qemu-traditional], - [Enable qemu traditional device model, (DEFAULT is off)])) -AS_IF([test "x$enable_qemu_traditional" = "xyes"], [ -AC_DEFINE([HAVE_QEMU_TRADITIONAL], [1], [Qemu traditional enabled]) - qemu_traditional=y],[ - qemu_traditional=n -]) -AC_SUBST(qemu_traditional) - AC_ARG_ENABLE([ipxe], AS_HELP_STRING([--enable-ipxe], [Enable in-tree IPXE, (DEFAULT is off, see also --with-system-ipxe)]),,[ - AS_IF([test "x$enable_qemu_traditional" = "xyes"], [ - enable_ipxe="yes" - ], [ enable_ipxe="no" - ]) ]) AS_IF([test "x$enable_ipxe" = "xno"], [ipxe=n], [ipxe=y]) AC_ARG_WITH([system-ipxe],
@@ -162,18 +148,15 @@ AC_SUBST(ipxe) AC_ARG_ENABLE([rombios], AS_HELP_STRING([--enable-rombios], - [Enable ROMBIOS, (DEFAULT is on if qemu-traditional or ipxe is enabled, + [Enable ROMBIOS, (DEFAULT is on if ipxe is enabled, otherwise off)]),,[ - AS_IF([test "x$enable_qemu_traditional" = "xyes" -o "x$enable_ipxe" = "xyes"], [ + AS_IF([test "x$enable_ipxe" = "xyes"], [ enable_rombios="yes" ], [ enable_rombios="no" ]) ]) AS_IF([test "x$enable_rombios" = "xyes"], [ - dnl as86, ld86, and bcc are only required when building rombios. They - dnl are only needed when the host system is x86 but that check is done - dnl for us above when checking if we should build with qemu-traditional. AX_PATH_PROG_OR_FAIL([AS86], [as86]) AX_PATH_PROG_OR_FAIL([LD86], [ld86]) AX_PATH_PROG_OR_FAIL([BCC], [bcc])
Signature · 1 line
2.43.0
Re: [PATCH v2 4/6] tools: remove qemu-traditional
Quoted 6 lines · Juergen Gross
Remove qemu traditional from the tree.
Signed-off-by Juergen Gross<[email protected]>--- .gitignore | 3 - CHANGELOG.md | 1 +
For CHANGELOG.md changes LGTM: Acked-by: Oleksii Kurochko<[email protected]>
~ Oleksii
Quoted 732 lines
Config.mk | 24 ----- INSTALL | 12 --- MAINTAINERS | 4 - README | 2 +- SUPPORT.md | 16 ---- config/Tools.mk.in | 1 - docs/process/branching-checklist.txt | 1 - docs/process/release-technician-checklist.txt | 1 - stubdom/Makefile | 84 +---------------- stubdom/configure | 89 ------------------- stubdom/configure.ac | 15 ---- stubdom/ioemu-minios.cfg | 6 -- tools/Makefile | 58 ------------ tools/Rules.mk | 3 - tools/config.h.in | 3 - tools/configure | 42 +-------- tools/configure.ac | 21 +---- 19 files changed, 10 insertions(+), 376 deletions(-)delete mode 100644 stubdom/ioemu-minios.cfg
.gitignore +0
-3@@ -255,9 +255,6 @@ LibVNCServer* tools/qemu-xen-dir-remote tools/qemu-xen-dir -tools/qemu-xen-traditional-dir-remote -tools/qemu-xen-traditional-dir - tools/firmware/seabios-dir-remote tools/firmware/seabios-dirCHANGELOG.md +1
-0@@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Smoke tests for the FreeBSD Xen builds in Cirrus CI. ### Removed + - Support of qemu-traditional has been removed. ## [4.20.0](https://xenbits.xenproject.org/gitweb/?p=xen.git;a=shortlog;h=RELEASE-4.20.0) - 2025-03-05Config.mk +0
-24@@ -208,22 +208,12 @@ XEN_EXTFILES_URL ?=https://xenbits.xen.org/xen-extfiles # Where to look for inlined subtrees (for example, from a tarball) QEMU_UPSTREAM_INTREE ?= $(XEN_ROOT)/tools/qemu-xen -QEMU_TRADITIONAL_INTREE ?= $(XEN_ROOT)/tools/qemu-xen-traditional # Handle legacy options ifneq (,$(SEABIOS_UPSTREAM_TAG)) SEABIOS_UPSTREAM_REVISION ?= $(SEABIOS_UPSTREAM_TAG) endif -ifneq (,$(QEMU_REMOTE)) -QEMU_TRADITIONAL_URL ?= $(QEMU_REMOTE) -endif -ifneq (,$(CONFIG_QEMU)) -QEMU_TRADITIONAL_LOC ?= $(CONFIG_QEMU) -endif -ifneq (,$(QEMU_TAG)) -QEMU_TRADITIONAL_REVISION ?= $(QEMU_TAG) -endif OVMF_UPSTREAM_URL ?=https://xenbits.xen.org/git-http/ovmf.git OVMF_UPSTREAM_REVISION ?= ba91d0292e593df8528b66f99c1b0b14fadc8e16@@ -239,20 +229,6 @@ SEABIOS_UPSTREAM_REVISION ?= rel-1.16.3 ETHERBOOT_NICS ?= rtl8139 8086100e - -QEMU_TRADITIONAL_URL ?=https://xenbits.xen.org/git-http/qemu-xen-traditional.git -QEMU_TRADITIONAL_REVISION ?= 3d273dd05e51e5a1ffba3d98c7437ee84e8f8764 -# Wed Jul 15 10:01:40 2020 +0100 -# qemu-trad: remove Xen path dependencies - -# Specify which qemu-dm to use. This may be `ioemu' to use the old -# Mercurial in-tree version, or a local directory, or a git URL. -# QEMU_UPSTREAM_LOC ?= `pwd`/$(XEN_ROOT)/../qemu-xen.git - -# Defaults for subtree locations -QEMU_TRADITIONAL_LOC ?= $(call or,$(wildcard $(QEMU_TRADITIONAL_INTREE)),\ - $(QEMU_TRADITIONAL_URL)) - QEMU_UPSTREAM_LOC ?= $(call or,$(wildcard $(QEMU_UPSTREAM_INTREE)),\ $(QEMU_UPSTREAM_URL))INSTALL +0
-12@@ -113,15 +113,6 @@ Build a private copy of SeaBIOS. Use the given SeaBIOS binary instead of compiling a private copy. --with-system-seabios=PATH -Build the old qemu used by xm/xend. This is required if existing domUs -should be migrated to this host, or if existing domU snapshots should be -started with this version of the tools. Only if all domUs used the new -upstream qemu during initial start it is safe to disable this option. -The old qemu requires rombios, which can be disable along with -qemu-traditional. - --enable-qemu-traditional - --enable-rombios - The libxl toolstack uses the upstream qemu per default. A private copy will be built. If desired this private copy can be configured with additional options passed to its configure script.@@ -245,7 +236,6 @@ locations. XEN_EXTFILES_URL= OVMF_UPSTREAM_URL= QEMU_UPSTREAM_URL= -QEMU_TRADITIONAL_URL= SEABIOS_UPSTREAM_URL= MINIOS_UPSTREAM_URL=@@ -253,7 +243,6 @@ Using additional CFLAGS to build tools which will run in dom0 is required when building distro packages. These variables can be used to pass RPM_OPT_FLAGS. EXTRA_CFLAGS_XEN_TOOLS= -EXTRA_CFLAGS_QEMU_TRADITIONAL= EXTRA_CFLAGS_QEMU_XEN= Additional CFLAGS may be supplied to the build of the hypervisor by@@ -340,7 +329,6 @@ sudo make install BOOT_DIR=/ood/path/boot EFI_DIR=/odd/path/efi export WGET=$(type -P false) export GIT=$(type -P false) export EXTRA_CFLAGS_XEN_TOOLS="$RPM_OPT_FLAGS" -export EXTRA_CFLAGS_QEMU_TRADITIONAL="$RPM_OPT_FLAGS" export EXTRA_CFLAGS_QEMU_XEN="$RPM_OPT_FLAGS" %configure \ --with-initddir=%{_initddir}MAINTAINERS +0
-4@@ -466,10 +466,6 @@ M: Marek Marczykowski-Górecki<[email protected]> S: Supported F: tools/python -QEMU-DM -S: Supported -T: githttps://xenbits.xenproject.org/git-http/qemu-xen-traditional.git - QEMU UPSTREAM M: Stefano Stabellini<[email protected]> M: Anthony Perard<[email protected]>README +1
-1@@ -80,7 +80,7 @@ disabled at compile time: libnl-3-dev, etc). Required if network buffering is desired when using Remus with libxl. See docs/README.remus for detailed information. - * 16-bit x86 assembler, loader and compiler for qemu-traditional / rombios + * 16-bit x86 assembler, loader and compiler for rombios (dev86 rpm or bin86 & bcc debs) * Development install of liblzma for rombios * Development install of libbz2, liblzma, liblzo2, and libzstd for DomUSUPPORT.md +0
-7@@ -998,21 +998,6 @@ See the section **Blkback** for image formats supported by QEMU. Status: Supported, not security supported -### qemu-xen-traditional ### - -The Xen Project provides an old version of qemu with modifications -which enable use as a device model stub domain. The old version is -normally selected by default only in a stub dm configuration, but it -can be requested explicitly in other configurations, for example in -`xl` with `device_model_version="QEMU_XEN_TRADITIONAL"`. - - Status, Device Model Stub Domains: Supported, with caveats -Status, as host process device model: No security support, not recommended - -qemu-xen-traditional is security supported only for those available -devices which are supported for mainstream QEMU (see above), with -trusted driver domains (see Device Model Stub Domains).
- ## Virtual Firmware ### x86/HVM iPXE @@ -1031,7 +1016,6 @@ as the
guest itself. Booting a guest via guest BIOS firmware Status, SeaBIOS (qemu-xen): Supported - Status, ROMBIOS (qemu-xen-traditional): Supported ### x86/HVM OVMF diff --git a/config/Tools.mk.in b/config/Tools.mk.in index37c071961e..463ab75965100644 --- a/config/Tools.mk.in +++ b/config/Tools.mk.in @@ -43,7 +43,6 @@CONFIG_OVMF:= @ovmf@CONFIG_ROMBIOS:= @rombios@CONFIG_SEABIOS:=
@seabios@CONFIG_IPXE:= @ipxe@ -CONFIG_QEMU_TRAD :=
@qemu_traditional@CONFIG_QEMU_XEN:= @qemu_xen@
CONFIG_QEMUU_EXTRA_ARGS:= @EXTRA_QEMUU_CONFIGURE_ARGS@CONFIG_LIBNL:=
@libnl@ diff --gita/docs/process/branching-checklist.txtb/docs/process/branching-checklist.txtindexaa7a27eed5..9632888a56100644 ---a/docs/process/branching-checklist.txt+++b/docs/process/branching-checklist.txt@@ -71,7 +71,6 @@ ov=4.0 Ensure references to qemu trees and Mini-OS in xen.git's Config.mk are updated. The variables and there content should be: *QEMU_UPSTREAM_REVISION: qemu-xen-X.Y.0 - *QEMU_TRADITIONAL_REVISION: xen-X.Y.0 *MINIOS_UPSTREAM_REVISION: xen-RELEASE-X.Y.0 Where X.Y is the release version (e.g. 4.17). diff --gita/docs/process/release-technician-checklist.txtb/docs/process/release-technician-checklist.txtindex829e8ec47b..64ed9fd5b2100644 ---a/docs/process/release-technician-checklist.txt+++b/docs/process/release-technician-checklist.txt@@ -56,7 +56,6 @@ t=RELEASE-$r * change xen-unstable Config.mk #QEMU_UPSTREAM_REVISION, -#QEMU_TRADITIONAL_REVISION#MINIOS_UPSTREAM_REVISION# (drop any
references to the specific commits, e.g. date or title) * change SUPPORT.md heading version number; -unstable or -rc tag diff --git a/stubdom/Makefile b/stubdom/Makefile index724ce40365..82fc1e90f8100644 --- a/stubdom/Makefile +++ b/stubdom/Makefile @@ -7,7 +7,6 @@ exportPKG_CONFIG_DIR= $(CURDIR)/pkg-config # Remove flags which are meant for tools, e.g. "-m64"
export EXTRA_CFLAGS_XEN_TOOLS=SUPPORT.md +0
-73-export EXTRA_CFLAGS_QEMU_TRADITIONAL= export stubdom=y export debug=y@@ -267,43 +266,6 @@ cross-tpmemu: $(TPMEMU_STAMPFILE) .PHONY: $(CROSS_ROOT) $(CROSS_ROOT): cross-newlib cross-zlib cross-libpci -QEMU_ROOT := $(shell if [ -d "$(QEMU_TRADITIONAL_LOC)" ]; then echo "$(QEMU_TRADITIONAL_LOC)"; else echo .; fi) - -ifneq ($(filter ioemu,$(STUBDOM_TARGETS)),) -IOEMU_LINKFARM_TARGET := ioemu/linkfarm.stamp -endif - -ifeq ($(QEMU_ROOT),.) -$(XEN_ROOT)/tools/qemu-xen-traditional-dir: - $(MAKE) DESTDIR= -C $(XEN_ROOT)/tools qemu-xen-traditional-dir-find - -ioemu/linkfarm.stamp: $(XEN_ROOT)/tools/qemu-xen-traditional-dir - mkdir -p ioemu - set -e; \ - $(buildmakevars2shellvars); \ - cd ioemu; \ - src="$$XEN_ROOT/tools/qemu-xen-traditional-dir"; export src; \ - (cd $$src && find * -type d \ - $(addprefix ! -path , '*-softmmu*' '*-linux-user*') -print) \ - | xargs mkdir -p; \ - (cd $$src && find * ! -type l -type f $(addprefix ! -path , \ - '*.[oda1]' 'config-*' config.mak qemu-dm qemu-img-xen \ - '*.html' '*.pod' '*-softmmu*' '*-linux-user*' \ - )) >linkfarm.stamp.tmp; \ - cmp -s linkfarm.stamp.tmp linkfarm.stamp && \ - rm linkfarm.stamp.tmp || { \ - mv linkfarm.stamp.tmp linkfarm.stamp; \ - cat linkfarm.stamp | while read f; \ - do rm -f "$$f"; ln -s "$$src/$$f" "$$f"; done; \ - } -else -export QEMU_ROOT - -ioemu/linkfarm.stamp: - mkdir -p ioemu - touch ioemu/linkfarm.stamp -endif - ####### # libraries under tools/libs #######@@ -380,29 +342,6 @@ $(TARGETS_MINIOS): mini-os-%: mkdir -p $@/$$i ; \ done -####### -# ioemu -####### - -ioemu-minios.gen.cfg: APP_LIBS = evtchn gnttab ctrl guest -ioemu-minios.gen.cfg: ioemu-minios.cfg Makefile - $(GEN_config) >$@ - -ioemu-minios-config.mk: ioemu-minios.gen.cfg - MINIOS_CONFIG="$(CURDIR)/$<" CONFIG_FILE="$(CURDIR)/$@" $(MAKE) DESTDIR= -C $(MINI_OS) config - -.PHONY: ioemu -ioemu: cross-zlib cross-libpci libxenguest ioemu-minios-config.mk - [ -f ioemu/config-host.mak ] || \ - ( $(buildmakevars2shellvars); \ - cd ioemu ; \ - LWIPDIR=$(CURDIR)/lwip-$(XEN_TARGET_ARCH) \ - TARGET_CPPFLAGS="$(TARGET_CPPFLAGS) $(shell cat ioemu-minios-config.mk)" \ - TARGET_CFLAGS="$(TARGET_CFLAGS)" \ - TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \ - $(QEMU_ROOT)/xen-setup-stubdom ) - $(MAKE) DESTDIR= -C ioemu -f $(QEMU_ROOT)/Makefile - ### # C ###@@ -496,11 +435,6 @@ xenstorepvh: $(CROSS_ROOT) xenstorepvh-minios-config.mk # minios ######## -.PHONY: ioemu-stubdom -ioemu-stubdom: APP_OBJS=$(CURDIR)/ioemu/i386-stubdom/qemu.a $(CURDIR)/ioemu/i386-stubdom/libqemu.a $(CURDIR)/ioemu/libqemu_common.a -ioemu-stubdom: mini-os-$(XEN_TARGET_ARCH)-ioemu lwip-$(XEN_TARGET_ARCH) libxenguest ioemu - DEF_CPPFLAGS="$(TARGET_CPPFLAGS)" DEF_CFLAGS="$(TARGET_CFLAGS)" DEF_LDFLAGS="$(TARGET_LDFLAGS)" MINIOS_CONFIG="$(CURDIR)/ioemu-minios.gen.cfg" $(MAKE) DESTDIR= -C $(MINI_OS) OBJ_DIR=$(CURDIR)/$< LWIPDIR=$(CURDIR)/lwip-$(XEN_TARGET_ARCH) APP_OBJS="$(APP_OBJS)" - .PHONY: c-stubdom c-stubdom: mini-os-$(XEN_TARGET_ARCH)-c lwip-$(XEN_TARGET_ARCH) libxenguest c DEF_CPPFLAGS="$(TARGET_CPPFLAGS)" DEF_CFLAGS="$(TARGET_CFLAGS)" DEF_LDFLAGS="$(TARGET_LDFLAGS)" MINIOS_CONFIG="$(CURDIR)/c/minios.cfg" $(MAKE) DESTDIR= -C $(MINI_OS) OBJ_DIR=$(CURDIR)/$< LWIPDIR=$(CURDIR)/lwip-$(XEN_TARGET_ARCH) APP_OBJS=$(CURDIR)/c/main.a@@ -544,13 +478,6 @@ else install: $(STUBDOMPATH) endif -install-ioemu: ioemu-stubdom - $(INSTALL_DIR) "$(DESTDIR)$(LIBEXEC_BIN)" - $(INSTALL_PROG) stubdom-dm "$(DESTDIR)$(LIBEXEC_BIN)" - $(INSTALL_DATA) stubdompath.sh "$(DESTDIR)$(LIBEXEC_BIN)" - $(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)" - $(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-ioemu/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/ioemu-stubdom.gz" - install-grub: pv-grub $(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)" $(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-grub/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/pv-grub-$(XEN_TARGET_ARCH).gz" @@ -593,11 +520,6 @@ else uninstall: endif -uninstall-ioemu: - rm -f$(DESTDIR)$(LIBEXEC_BIN)/stubdom-dm - rm -f $(DESTDIR)$(LIBEXEC_BIN)/stubdompath.sh - rm -f $(DESTDIR)$(XENFIRMWAREDIR)/ioemu-stubdom.gz - uninstall-grub: rm -f $(DESTDIR)$(XENFIRMWAREDIR)/pv-grub-$(XEN_TARGET_ARCH).gz @@ -617,11 +539,10 @@ uninstall-vtpmmgr: # clean ####### -# Only clean the
libxc/ioemu/mini-os part +# Only clean the libxc/mini-os part .PHONY: clean clean: $(foreach lib,$(STUB_LIBS),clean-libxen$(lib)) clean: - rm -fr mini-os-$(XEN_TARGET_ARCH)-ioemu rm -fr mini-os-$(XEN_TARGET_ARCH)-c rm -fr mini-os-$(XEN_TARGET_ARCH)-grub rmSUPPORT.md +0
-2-fr mini-os-$(XEN_TARGET_ARCH)-xenstore @@ -636,7 +557,6 @@ clean: rm -f *-minios-config.mk rm -f *.gen.cfg rm -fr pkg-config - -[ ! -dioemu ] || $(MAKE) DESTDIR= -C ioemu clean -[ ! -d xenstore ] || $(MAKE) -f $(CURDIR)/xenlibs.mk -C xenstore clean -[ ! -d xenstorepvh ] || $(MAKE) -f $(CURDIR)/xenlibs.mk -C xenstorepvh clean @@ -647,7
+567,7 @@ crossclean: clean rm -fr newlib-$(XEN_TARGET_ARCH) rm -fr
zlib-$(XEN_TARGET_ARCH) pciutils-$(XEN_TARGET_ARCH) rm -fr libs-$(XEN_TARGET_ARCH) - rm -fr ioemu xenstore xenstorepvh + rm -fr xenstore xenstorepvh rm -fr gmp-$(XEN_TARGET_ARCH) rm -fr polarssl-$(XEN_TARGET_ARCH) rm -fr tpm_emulator-$(XEN_TARGET_ARCH) diff --git a/stubdom/configure b/stubdom/configure index08cacf764c..9dd0e7c796100755 --- a/stubdom/configure +++ b/stubdom/configure @@ -622,7 +622,6 @@STUBDOM_UNINSTALLSTUBDOM_INSTALLSTUBDOM_BUILDSTUBDOM_TARGETS-ioemu vtpmmgr vtpmTPMEMU_VERSION@@ -713,14 +712,12 @@ SHELL' ac_subst_files='' ac_user_opts='enable_option_checking-enable_ioemu_stubdomenable_c_stubdomenable_pv_grubenable_xenstore_stubdomenable_xenstorepvh_stubdomenable_vtpm_stubdomenable_vtpmmgr_stubdom-enable_qemu_traditionalenable_debugenable_extfiles' @@ -1363,7
+1360,6 @@ Optional Features: --disable-option-checking ignore
unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-ioemu-stubdom Build and install ioemu-stubdom --enable-c-stubdom Build and install c-stubdom (default is DISABLED) --enable-pv-grub Build and install pv-grub (default is DISABLED) --disable-xenstore-stubdom @@ -1375,7 +1371,6 @@ Optional Features: --enable-vtpm-stubdom Build and install vtpm-stubdom
--enable-vtpmmgr-stubdom Build and install vtpmmgr-stubdom -
--disable-debug Disable debug build of stubdom (default is ENABLED)
--disable-extfiles Use xen extfiles repository for libraries (default
is ENABLED) @@ -2411,40 +2406,6 @@ case $host_os in *\ *) host_os=echo "$host_os" | sed 's/ /-/g';; esac# Enable/disable stub domains
SUPPORT.md +0
-84-# Check whether --enable-ioemu-stubdom was given. -if test ${enable_ioemu_stubdom+y} -then : - enableval=$enable_ioemu_stubdom; - -if test "x$enableval" = "xyes" -then : - - -ioemu=y -STUBDOM_TARGETS="$STUBDOM_TARGETS ioemu" -STUBDOM_BUILD="$STUBDOM_BUILD ioemu-stubdom" -STUBDOM_INSTALL="$STUBDOM_INSTALL install-ioemu" -STUBDOM_UNINSTALL="$STUBDOM_UNINSTALL install-ioemu" - - -else $as_nop - -if test "x$enableval" = "xno" -then : - - -ioemu=n - - -fi - -fi - - -fi - - - # Check whether --enable-c-stubdom was given. if test ${enable_c_stubdom+y} then :@@ -2685,35 +2646,6 @@ fi -# Check whether --enable-qemu-traditional was given. -if test ${enable_qemu_traditional+y} -then : - enableval=$enable_qemu_traditional; -fi - -if test "x$enable_qemu_traditional" = "xyes" -then : - - qemu_traditional=y -else $as_nop - - qemu_traditional=n - -fi -if test "x$ioemu" = "x" -then : - - ioemu=$qemu_traditional - -fi -echo "x$ioemu$qemu_traditional" -if test "x$ioemu$qemu_traditional" = "xyn" -then : - - as_fn_error $? "IOEMU stubdomain requires qemu-traditional" "$LINENO" 5 - -fi - # Check whether --enable-debug was given. if test ${enable_debug+y}@@ -4358,27 +4290,6 @@ fi -if test "x$ioemu" = "xy" || test "x$ioemu" = "x" -then : - - -ioemu=y -STUBDOM_TARGETS="$STUBDOM_TARGETS ioemu" -STUBDOM_BUILD="$STUBDOM_BUILD ioemu-stubdom" -STUBDOM_INSTALL="$STUBDOM_INSTALL install-ioemu" -STUBDOM_UNINSTALL="$STUBDOM_UNINSTALL install-ioemu" - - -else $as_nop - - -ioemu=n - - -fi - - -stubdom/configure.ac +0
-15@@ -18,7 +18,6 @@ m4_include([../m4/depends.m4]) m4_include([../m4/fetcher.m4]) # Enable/disable stub domains -AX_STUBDOM_CONDITIONAL([ioemu-stubdom], [ioemu]) AX_STUBDOM_DEFAULT_DISABLE([c-stubdom], [c]) AX_STUBDOM_DEFAULT_DISABLE([pv-grub], [grub]) AX_STUBDOM_DEFAULT_ENABLE([xenstore-stubdom], [xenstore])@@ -26,19 +25,6 @@ AX_STUBDOM_DEFAULT_ENABLE([xenstorepvh-stubdom], [xenstorepvh]) AX_STUBDOM_CONDITIONAL([vtpm-stubdom], [vtpm]) AX_STUBDOM_CONDITIONAL([vtpmmgr-stubdom], [vtpmmgr]) -AC_ARG_ENABLE([qemu-traditional]) -AS_IF([test "x$enable_qemu_traditional" = "xyes"], [ - qemu_traditional=y],[ - qemu_traditional=n -]) -AS_IF([test "x$ioemu" = "x"], [ - ioemu=$qemu_traditional -]) -echo "x$ioemu$qemu_traditional" -AS_IF([test "x$ioemu$qemu_traditional" = "xyn"], [ - AC_MSG_ERROR(IOEMU stubdomain requires qemu-traditional) -]) - AX_ARG_DEFAULT_ENABLE([debug], [Disable debug build of stubdom]) AX_ARG_DEFAULT_ENABLE([extfiles], [Use xen extfiles repository for libraries])@@ -69,7 +55,6 @@ AX_STUBDOM_AUTO_DEPENDS([vtpmmgr], [vtpm]) #Conditionally enable these stubdoms based on the presense of dependencies AX_STUBDOM_CONDITIONAL_FINISH([vtpm-stubdom], [vtpm]) AX_STUBDOM_CONDITIONAL_FINISH([vtpmmgr-stubdom], [vtpmmgr]) -AX_STUBDOM_CONDITIONAL_FINISH([ioemu-stubdom], [ioemu]) AX_STUBDOM_FINISH AC_OUTPUT()stubdom/ioemu-minios.cfg deleted +0
-6@@ -1,6 +0,0 @@ -CONFIG_LIBC=y -CONFIG_LWIP=y -CONFIG_START_NETWORK=n -CONFIG_QEMU_XS_ARGS=y -CONFIG_PCIFRONT=y -XEN_INTERFACE_VERSION=__XEN_LATEST_INTERFACE_VERSION__tools/Makefile +0
-0@@ -24,7 +24,6 @@ SUBDIRS-$(CONFIG_Linux) += vchan # do not recurse in to a dir we are about to delete ifneq "$(MAKECMDGOALS)" "distclean" -SUBDIRS-$(CONFIG_QEMU_TRAD) += qemu-xen-traditional-dirSUBDIRS-$(CONFIG_QEMU_XEN) += qemu-xen-dir endif @@ -79,7 +78,6 @@ clean: subdirs-clean .PHONY: distclean distclean: subdirs-distclean clean - rm -rf qemu-xen-traditional-dir qemu-xen-traditional-dir-remote rm -rf qemu-xen-dir qemu-xen-dir-remote qemu-xen-build rm -rf
../config/Tools.mkconfig.hconfig.log config.status \ config.cache autom4te.cache @@ -97,11 +95,6 @@QEMU_UPSTREAM_RPATH:= -Wl,-rpath,$(LIBEXEC_LIB)IOEMU_EXTRA_LDFLAGS:= endif -QEMU_ROOT := $(shell if [ -d "$(QEMU_TRADITIONAL_LOC)" ]; then echo "$(QEMU_TRADITIONAL_LOC)"; else echo .; fi)tools/Makefile +0
-55-ifneq ($(QEMU_ROOT),.) -export QEMU_ROOT -endif - # Targets for external trees: # ${target}-dir-find # See if the directory exists and check it out if not.@@ -136,54 +129,6 @@ endif # ${TARGET}_LOC # The ultimate location of the source (either a local dir or remote URL) -# External target: qemu-xen-traditional -qemu-xen-traditional-dir-find: - set -ex; \ - if test -d $(QEMU_TRADITIONAL_LOC); then \ - mkdir -p qemu-xen-traditional-dir; \ - else \ - export GIT=$(GIT); \ - $(XEN_ROOT)/scripts/git-checkout.sh $(QEMU_TRADITIONAL_LOC) $(QEMU_TRADITIONAL_REVISION) qemu-xen-traditional-dir; \ - fi - -.PHONY: qemu-xen-traditional-dir-force-update -qemu-xen-traditional-dir-force-update: qemu-xen-traditional-dir-find - set -ex; \ - if [ "$(QEMU_TRADITIONAL_REVISION)" ]; then \ - cd qemu-xen-traditional-dir-remote; \ - $(GIT) fetch origin; \ - $(GIT) reset --hard $(QEMU_TRADITIONAL_REVISION); \ - fi - -qemu-traditional-recurse = \ - set -e; \ - $(buildmakevars2shellvars); \ - export CONFIG_BLKTAP1=n; \ - export BUILDING_QEMU_TRAD=y; \ - cd qemu-xen-traditional-dir; \ - $(1) - -subdir-all-qemu-xen-traditional-dir: qemu-xen-traditional-dir-find - $(call qemu-traditional-recurse,\ - $(QEMU_ROOT)/xen-setup \ - --extra-cflags="-D__XEN_TOOLS__ $(EXTRA_CFLAGS_QEMU_TRADITIONAL)" \ - $(IOEMU_EXTRA_LDFLAGS) \ - --cpu=$(IOEMU_CPU_ARCH) \ - $(IOEMU_CONFIGURE_CROSS); \ - $(MAKE) all \ - ) - -subdir-install-qemu-xen-traditional-dir: subdir-all-qemu-xen-traditional-dir - $(call qemu-traditional-recurse,$(MAKE) install) - -subdir-clean-qemu-xen-traditional-dir: - set -e; if test -d qemu-xen-traditional-dir/.; then \ - $(MAKE) -C qemu-xen-traditional-dir clean; \ - fi -subdir-uninstall-qemu-xen-traditional-dir: - rm -f $(D)$(bindir)/qemu-nbd* - rm -f $(D)$(bindir)/qemu-img* - # External target: qemu-xen qemu-xen-dir-find: if test -d $(QEMU_UPSTREAM_LOC) ; then \@@ -276,9 +221,6 @@ subtree-force-update: ifeq ($(CONFIG_QEMU_XEN),y) $(MAKE) qemu-xen-dir-force-update endif -ifeq ($(CONFIG_QEMU_TRAD),y) - $(MAKE) qemu-xen-traditional-dir-force-update -endif ifeq ($(CONFIG_X86),y) $(MAKE) -C firmware subtree-force-update endiftools/Rules.mk +0
-3@@ -134,12 +134,9 @@ endif CFLAGS_libxenlight += $(CFLAGS_libxenctrl) -# Don't add -Werror if we are used by qemu-trad build system. -ifndef BUILDING_QEMU_TRAD ifeq ($(CONFIG_WERROR),y) CFLAGS += -Werror endif -endif ifeq ($(debug),y) # Use -Og if available, -O0 otherwisetools/config.h.in +0
-3@@ -42,9 +42,6 @@ /* pygrub enabled */ #undef HAVE_PYGRUB -/* Qemu traditional enabled */ -#undef HAVE_QEMU_TRADITIONAL - /* ROMBIOS enabled */ #undef HAVE_ROMBIOStools/configure +4
-38@@ -726,7 +726,6 @@ BCC LD86 AS86 ipxe -qemu_traditional LINUX_BACKEND_MODULES pygrub golang@@ -835,7 +834,6 @@ enable_seabios enable_golang enable_pygrub with_linux_backend_modules -enable_qemu_traditional enable_ipxe with_system_ipxe enable_rombios@@ -1518,13 +1516,10 @@ Optional Features: --disable-seabios Disable SeaBIOS (default is ENABLED) --disable-golang Disable Go tools (default is ENABLED) --disable-pygrub Disable pygrub (default is ENABLED) - --enable-qemu-traditional - Enable qemu traditional device model, (DEFAULT is - off) --enable-ipxe Enable in-tree IPXE, (DEFAULT is off, see also --with-system-ipxe) - --enable-rombios Enable ROMBIOS, (DEFAULT is on if qemu-traditional - or ipxe is enabled, otherwise off) + --enable-rombios Enable ROMBIOS, (DEFAULT is on if ipxe is enabled, + otherwise off) --enable-libfsimage Enable libfsimage, (DEFAULT is on if pygrub is enabled, otherwise off) --enable-systemd Enable systemd support (default is DISABLED)@@ -4838,45 +4833,16 @@ fi LINUX_BACKEND_MODULES="`eval echo $LINUX_BACKEND_MODULES`" -# Check whether --enable-qemu-traditional was given. -if test ${enable_qemu_traditional+y} -then : - enableval=$enable_qemu_traditional; -fi - -if test "x$enable_qemu_traditional" = "xyes" -then : - - -printf "%s\n" "#define HAVE_QEMU_TRADITIONAL 1" >>confdefs.h - - qemu_traditional=y -else $as_nop - - qemu_traditional=n - -fi - - # Check whether --enable-ipxe was given. if test ${enable_ipxe+y} then : enableval=$enable_ipxe; -else $as_nop - - if test "x$enable_qemu_traditional" = "xyes" -then : - - enable_ipxe="yes" - else $as_nop enable_ipxe="no" fi -fi - if test "x$enable_ipxe" = "xno" then : ipxe=n@@ -4912,7 +4878,7 @@ then : enableval=$enable_rombios; else $as_nop - if test "x$enable_qemu_traditional" = "xyes" -o "x$enable_ipxe" = "xyes" + if test "x$enable_ipxe" = "xyes" then : enable_rombios="yes"@@ -4928,7 +4894,7 @@ fi if test "x$enable_rombios" = "xyes" then : - # Extract the first word of "as86", so it can be a program name with args. + # Extract the first word of "as86", so it can be a program name with args. set dummy as86; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; }tools/configure.ac +2
-19@@ -121,25 +121,11 @@ esac]) LINUX_BACKEND_MODULES="`eval echo $LINUX_BACKEND_MODULES`" AC_SUBST(LINUX_BACKEND_MODULES) -AC_ARG_ENABLE([qemu-traditional], - AS_HELP_STRING([--enable-qemu-traditional], - [Enable qemu traditional device model, (DEFAULT is off)])) -AS_IF([test "x$enable_qemu_traditional" = "xyes"], [ -AC_DEFINE([HAVE_QEMU_TRADITIONAL], [1], [Qemu traditional enabled]) - qemu_traditional=y],[ - qemu_traditional=n -]) -AC_SUBST(qemu_traditional) - AC_ARG_ENABLE([ipxe], AS_HELP_STRING([--enable-ipxe], [Enable in-tree IPXE, (DEFAULT is off, see also --with-system-ipxe)]),,[ - AS_IF([test "x$enable_qemu_traditional" = "xyes"], [ - enable_ipxe="yes" - ], [ enable_ipxe="no" - ]) ]) AS_IF([test "x$enable_ipxe" = "xno"], [ipxe=n], [ipxe=y]) AC_ARG_WITH([system-ipxe],@@ -162,18 +148,15 @@ AC_SUBST(ipxe) AC_ARG_ENABLE([rombios], AS_HELP_STRING([--enable-rombios], - [Enable ROMBIOS, (DEFAULT is on if qemu-traditional or ipxe is enabled, + [Enable ROMBIOS, (DEFAULT is on if ipxe is enabled, otherwise off)]),,[ - AS_IF([test "x$enable_qemu_traditional" = "xyes" -o "x$enable_ipxe" = "xyes"], [ + AS_IF([test "x$enable_ipxe" = "xyes"], [ enable_rombios="yes" ], [ enable_rombios="no" ]) ]) AS_IF([test "x$enable_rombios" = "xyes"], [ - dnl as86, ld86, and bcc are only required when building rombios. They - dnl are only needed when the host system is x86 but that check is done - dnl for us above when checking if we should build with qemu-traditional. AX_PATH_PROG_OR_FAIL([AS86], [as86]) AX_PATH_PROG_OR_FAIL([LD86], [ld86]) AX_PATH_PROG_OR_FAIL([BCC], [bcc])
Re: [PATCH v2 4/6] tools: remove qemu-traditional
In reply to Juergen GrossINSTALL
Quoted 4 lines · Juergen Gross
INSTALL +0
-0
There's one "--enable-ioemu-stubdom" left in this file.
stubdom/Makefile else · line 550
Quoted 12 lines
stubdom/Makefile +0
-4@@ -544,13 +478,6 @@ else install: $(STUBDOMPATH) endif -install-ioemu: ioemu-stubdom - $(INSTALL_DIR) "$(DESTDIR)$(LIBEXEC_BIN)" - $(INSTALL_PROG) stubdom-dm "$(DESTDIR)$(LIBEXEC_BIN)" - $(INSTALL_DATA) stubdompath.sh "$(DESTDIR)$(LIBEXEC_BIN)"
If we don't install "stubdompath.sh", we don't need to make it anymore, that is $(STUBDOMPATH) rule and as prerequisite isn't needed anymore.
I think "stubdompath.sh" is only used by "stubdom-dm", so we can remove all mention of "stubdompath.sh" or "$(STUBDOMPATH)", here or in the next patch.
And with $(STUBDOMPATH) path gone, this will be the user of the make macro $(buildmakevars2file) and $(BUILD_MAKE_VARS), so I think the could be both removed as well.
Quoted 11 lines
stubdom/Makefile +0
-3- $(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)" - $(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-ioemu/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/ioemu-stubdom.gz" - install-grub: pv-grub $(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)" $(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-grub/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/pv-grub-$(XEN_TARGET_ARCH).gz"tools/Makefile +0
-0
tools/Makefile endif · line 139
Quoted 4 lines
tools/Makefile +0
-4@@ -136,54 +129,6 @@ endif - -qemu-traditional-recurse = \ - set -e; \ - $(buildmakevars2shellvars); \
These are the last mention of the make macro $(buildmakevars2shellvars), so we can remove it from Config.mk.
Thanks,
Signature · 1 line
Anthony PERARD
Re: [PATCH v2 4/6] tools: remove qemu-traditional
Quoted 7 lines · Anthony PERARD
INSTALL
Quoted 4 lines · Juergen Gross
INSTALL +0
-0There's one "--enable-ioemu-stubdom" left in this file.
Oh, thanks for noticing.
Quoted 18 lines
stubdom/Makefile else · line 550
Quoted 13 lines
stubdom/Makefile +0
-4@@ -544,13 +478,6 @@ else install: $(STUBDOMPATH) endif -install-ioemu: ioemu-stubdom - $(INSTALL_DIR) "$(DESTDIR)$(LIBEXEC_BIN)" - $(INSTALL_PROG) stubdom-dm "$(DESTDIR)$(LIBEXEC_BIN)" - $(INSTALL_DATA) stubdompath.sh "$(DESTDIR)$(LIBEXEC_BIN)"If we don't install "
stubdompath.sh", we don't need to make it anymore, that is $(STUBDOMPATH) rule and as prerequisite isn't needed anymore.
Quoted 7 lines
I think "
stubdompath.sh" is only used by "stubdom-dm", so we can remove all mention of "stubdompath.sh" or "$(STUBDOMPATH)", here or in the next patch.And with $(STUBDOMPATH) path gone, this will be the user of the make macro $(buildmakevars2file) and $(BUILD_MAKE_VARS), so I think the could be both removed as well.
Will do so.
Quoted 11 lines
Quoted 11 lines
stubdom/Makefile +0
-3- $(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)" - $(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-ioemu/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/ioemu-stubdom.gz" - install-grub: pv-grub $(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)" $(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-grub/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/pv-grub-$(XEN_TARGET_ARCH).gz"tools/Makefile +0
-0
Quoted 8 lines
tools/Makefile endif · line 139
Quoted 5 lines
tools/Makefile +0
-4@@ -136,54 +129,6 @@ endif - -qemu-traditional-recurse = \ - set -e; \ - $(buildmakevars2shellvars); \These are the last mention of the make macro $(buildmakevars2shellvars), so we can remove it from Config.mk.
Agreed.
Juergen
PATCH v2 5/6 stubdom: remove ancient stubdom-dm script
In reply to Juergen GrossThe stubdom-dm script is still using "xm" instead of "xl", so it is probably unused since more than 10 years now.
--- stubdom/stubdom-dm | 182 --------------------------------------------- 1 file changed, 182 deletions(-) delete mode 100644 stubdom/stubdom-dm
stubdom/stubdom-dm deleted +0 -182
@@ -1,182 +0,0 @@ -#!/bin/bash -# -# Copyright 2007-2008 Samuel Thibault <[email protected]> -# -# dm script around stubdomains. -# - -DIR=`dirname $0` -. "${DIR}/stubdompath.sh" -stubdom_configdir="${XEN_CONFIG_DIR}/stubdoms" - -# To fit xterms nicely -height=339 - -# Parse arguments - -domid= -domname= -vncviewer=0 -vncpid= -extra= -sdl=0 -opengl=1 -vnc=0 -vncunused=0 -while [ "$#" -gt 0 ]; -do - if [ "$#" -ge 2 ]; - then - case "$1" in - -d) - domid=$2; - extra="$extra -d $domid"; - shift - ;; - -domain-name) - domname=$2; - shift - ;; - -vnc) - vnc=1 - op=${2%,*} - ip=${op%:*}; - vnc_port=${op#*:}; - shift - ;; - -vncunused) - vncunused=1 - shift - ;; - -loadvm) - extra="$extra -loadvm $2"; - shift - ;; - -k) - keymap=$2 - shift - ;; - -serial) - serial="$2" - shift - ;; - -monitor) - monitor="$2" - shift - ;; - esac - fi - case "$1" in - -vncviewer) vncviewer=1 ;; - -sdl) sdl=1 ;; - -disable-opengl) opengl=0 ;; - esac - shift -done - -[ -z "$domid" ] && { echo "couldn't find domain ID" ; exit 1; } -[ -z "$domname" ] && { echo "couldn't find domain name" ; exit 1; } - -# Termination handler - -term() { - [ -n "$vncpid" ] && kill -9 $vncpid - rm -f /tmp/domname-dm - rm ${stubdom_configdir}/$domname-dm - exit 0 -} - -trap term SIGHUP - -############ -# stubdomain -# Wait for any previous stubdom to terminate -while xm list | grep -w $domname-dm -do - sleep 1 -done - -# Generate stubdom config file -mkdir -p ${stubdom_configdir} &>/dev/null -echo "#This file is autogenerated, edit $domname instead!" > ${stubdom_configdir}/$domname-dm -echo "kernel = '${XENFIRMWAREDIR}/ioemu-stubdom.gz'" >> ${stubdom_configdir}/$domname-dm - -vfb="sdl=$sdl, opengl=$opengl" -test "$DISPLAY" && vfb="$vfb, display=$DISPLAY" -test "$XAUTHORITY" && vfb="$vfb, xauthority=$XAUTHORITY" -test $vnc != 0 && vfb="$vfb, vnc=$vnc, vncdisplay=$vnc_port, vnclisten=$ip, vncunused=$vncunused" -vncpasswd=`xenstore-read /local/domain/0/backend/vfb/$domid/0/vncpasswd 2>/dev/null` -test "$vncpasswd" && vfb="$vfb, vncpasswd=$vncpasswd" -test "$keymap" && vfb="$vfb, keymap=$keymap" -test "$monitor" && vfb="$vfb, monitor=$monitor" -test "$serial" && vfb="$vfb, serial=$serial" -echo "vfb = ['$vfb']" >> ${stubdom_configdir}/$domname-dm - -echo -n "disk = [ " >> ${stubdom_configdir}/$domname-dm -j=0 -for i in `xenstore-ls /local/domain/$domid/device/vbd | grep 'backend =' | awk '{print $3}'` -do - i=${i%\"} - i=${i#\"} - vbd_mode=`xenstore-read $i/mode` - vbd_disk=`xenstore-read $i/params` - vbd_type=`xenstore-read $i/type` - vbd_dev=`xenstore-read $i/dev` - vbd_front=`xenstore-read $i/frontend` - vbd_devtype=`xenstore-read $vbd_front/device-type` - if [ $j -ne 0 ] - then - echo -n "," >> ${stubdom_configdir}/$domname-dm - fi - echo -n "'$vbd_type:$vbd_disk,$vbd_dev:$vbd_devtype,$vbd_mode'" >> ${stubdom_configdir}/$domname-dm - j=$(( $j + 1 )) -done -echo " ] " >> ${stubdom_configdir}/$domname-dm -echo -n "vif = [ " >> ${stubdom_configdir}/$domname-dm -j=0 -for i in `xenstore-ls /local/domain/$domid/device/vif | grep 'backend =' | awk '{print $3}'` -do - i=${i%\"} - i=${i#\"} - vif_mac=`xenstore-read $i/mac` - vif_bridge=`xenstore-read $i/bridge` - if [ $j -ne 0 ] - then - echo -n "," >> ${stubdom_configdir}/$domname-dm - fi - echo -n "'mac=$vif_mac" >> ${stubdom_configdir}/$domname-dm - if [ "$vif_bridge" ] - then - echo -n ",bridge=$vif_bridge'" >> ${stubdom_configdir}/$domname-dm - else - echo -n "'" >> ${stubdom_configdir}/$domname-dm - fi - j=$(( $j + 1 )) -done -echo " ] " >> ${stubdom_configdir}/$domname-dm - -mkfifo /tmp/$domname-dm -xm create -c ${stubdom_configdir}/$domname-dm target=$domid memory=32 extra="$extra" < /tmp/$domname-dm & -exec 4>/tmp/$domname-dm - - -########### -# vncviewer -if [ "$vncviewer" = 1 ] -then - # Wait for vnc server to appear - while ! vnc_port=`xenstore-read /local/domain/$domid/console/vnc-port` - do - # Check that the stubdom job is still alive - kill -0 $consolepid || term - sleep 1 - done - - vncviewer $ip:$vnc_port & - vncpid=$! -fi - -# wait for SIGHUP or stubdom termination -wait - -term
Signature · 1 line
2.43.0
Re: [PATCH v2 5/6] stubdom: remove ancient stubdom-dm script
Quoted 4 lines · Juergen Gross
The stubdom-dm script is still using "xm" instead of "xl", so it is probably unused since more than 10 years now.
Signed-off-by Juergen Gross <[email protected]>
Thanks,
Signature · 1 line
Anthony PERARD
PATCH v2 6/6 build: don't require full tools build for building stubdoms
In reply to Juergen GrossWith the drop of qemu-traditional "make stubdom" no longer requires "make tools" to have finished.
It is enough to add "install-tools-public-headers" as a prereq of "install-stubdom".
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -147,7 +147,7 @@ install-tools: install-tools-public-headers $(MAKE) -C tools install .PHONY: install-stubdom -install-stubdom: mini-os-dir install-tools +install-stubdom: mini-os-dir install-tools-public-headers $(MAKE) -C stubdom install ifeq (x86_64,$(XEN_TARGET_ARCH)) XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom install-grub-if-enabled
Signature · 1 line
2.43.0
Re: [PATCH v2 6/6] build: don't require full tools build for building stubdoms
Quoted 7 lines · Juergen Gross
With the drop of qemu-traditional "make stubdom" no longer requires "make tools" to have finished.
It is enough to add "install-tools-public-headers" as a prereq of "install-stubdom".
Signed-off-by Juergen Gross <[email protected]>
Once the rest of the patch series
is committed: Acked-by: Anthony PERARD <[email protected]>
Thanks,
Signature · 1 line
Anthony PERARD
Ping?
Quoted 67 lines · Juergen Gross
Remove the qemu-traditional support. This includes the Mini-OS based ioemu-stubdom.
Don't remove ROMBIOS for now, as it can be used with qemu (XenServer is doing that).
After adding the series a run of autoconf should be done.
Changes in V2:
- addressed commentsJuergen Gross (6):
SUPPORT.md: make Linux based stubdom fully supported
docs: remove qemu-traditional support from documentation
tools: remove support for running a guest with qemu-traditional
tools: remove qemu-traditional
stubdom: remove ancient stubdom-dm script
build: don't require full tools build for building stubdoms.gitignore | 3 - CHANGELOG.md | 2 + Config.mk | 24 -- INSTALL | 12 - MAINTAINERS | 4 - Makefile | 2 +- README | 2 +- SUPPORT.md | 21 +- config/Tools.mk.in | 1 - docs/man/xl-pci-configuration.5.pod | 4 +- docs/man/xl.cfg.5.pod.in | 46 +-- docs/misc/stubdom.txt | 52 --- docs/misc/xenstore-paths.pandoc | 3 +- docs/process/branching-checklist.txt | 4 - docs/process/release-technician-checklist.txt | 3 - docs/process/xen-release-management.pandoc | 2 +- stubdom/Makefile | 84 +---- stubdom/configure | 89 ----- stubdom/configure.ac | 15 - stubdom/ioemu-minios.cfg | 6 - stubdom/stubdom-dm | 182 ---------- tools/Makefile | 58 ---- tools/Rules.mk | 3 - tools/config.h.in | 3 - tools/configure | 42 +-- tools/configure.ac | 21 +- tools/firmware/hvmloader/pci.c | 19 +- tools/firmware/hvmloader/util.c | 9 +- tools/golang/xenlight/types.gen.go | 1 - tools/libacpi/mk_dsdt.c | 177 ++-------- tools/libs/light/libxl_create.c | 60 +--- tools/libs/light/libxl_disk.c | 7 - tools/libs/light/libxl_dm.c | 320 +----------------- tools/libs/light/libxl_dom.c | 10 - tools/libs/light/libxl_dom_save.c | 140 -------- tools/libs/light/libxl_dom_suspend.c | 65 ---- tools/libs/light/libxl_domain.c | 15 - tools/libs/light/libxl_internal.c | 6 +- tools/libs/light/libxl_internal.h | 5 +- tools/libs/light/libxl_pci.c | 183 ---------- tools/libs/light/libxl_stream_write.c | 4 - tools/libs/light/libxl_types.idl | 1 - tools/python/xen/migration/libxl.py | 2 - tools/xl/xl_parse.c | 5 +- 44 files changed, 81 insertions(+), 1636 deletions(-)delete mode 100644 stubdom/ioemu-minios.cfg
delete mode 100644 stubdom/stubdom-dm