Misc patches (s390x, build env, clean-ups)
Subsystems (2)
[PULL 6/9] tests/functional/test_ppc64_pseries: Skip test_ppc64_linux_smt_boot if necessary
In reply to Thomas HuthFrom: Thomas Huth <[email protected]>
The test_ppc64_linux_smt_boot function lacks the set_machine('pseries'), so this test is currently failing in case the 'pseries' machine has not been compiled into the binary. Add the check now to fix it.
Message-ID: <[email protected]>
--- tests/functional/test_ppc64_pseries.py | 1 + 1 file changed, 1 insertion(+)
tests/functional/test_ppc64_pseries.py +1 -0
@@ -63,6 +63,7 @@ def test_ppc64_linux_hpt_smp_boot(self): wait_for_console_pattern(self, self.good_message, self.panic_message) def test_ppc64_linux_smt_boot(self): + self.set_machine('pseries') self.vm.add_args('-smp', '4,threads=4') self.do_test_ppc64_linux_boot() console_pattern = 'CPU maps initialized for 4 threads per core'
Signature · 1 line
2.49.0
[PULL 4/9] meson/configure: add 'valgrind' option & --{en, dis}able-valgrind flag
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
Currently valgrind debugging support for coroutine stacks is enabled unconditionally when valgrind/valgrind.h is found. There is no way to disable valgrind support if valgrind.h is present in the build env.
This is bad for distros, as an dependency far down the chain may cause valgrind.h to become installed, inadvertently enabling QEMU's valgrind debugging support. It also means if a distro wants valgrind support there is no way to mandate this.
The solution is to add a 'valgrind' build feature to meson and thus configure script.
Message-ID: <[email protected]>
--- meson.build | 13 ++++++++++++- meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-)
meson.build +12 -1
@@ -2618,7 +2618,17 @@ config_host_data.set('CONFIG_FSTRIM', qga_fstrim) # has_header config_host_data.set('CONFIG_EPOLL', cc.has_header('sys/epoll.h')) config_host_data.set('CONFIG_LINUX_MAGIC_H', cc.has_header('linux/magic.h')) -config_host_data.set('CONFIG_VALGRIND_H', cc.has_header('valgrind/valgrind.h')) +valgrind = false +if get_option('valgrind').allowed() + if cc.has_header('valgrind/valgrind.h') + valgrind = true + else + if get_option('valgrind').enabled() + error('valgrind requested but valgrind.h not found') + endif + endif +endif +config_host_data.set('CONFIG_VALGRIND_H', valgrind) config_host_data.set('HAVE_BTRFS_H', cc.has_header('linux/btrfs.h')) config_host_data.set('HAVE_DRM_H', cc.has_header('libdrm/drm.h')) config_host_data.set('HAVE_OPENAT2_H', cc.has_header('linux/openat2.h'))
@@ -4905,6 +4915,7 @@ endif if host_os == 'darwin' summary_info += {'ParavirtualizedGraphics support': pvg} endif +summary_info += {'valgrind': valgrind} summary(summary_info, bool_yn: true, section: 'Dependencies') if host_arch == 'unknown'
meson_options.txt +2 -0
@@ -115,6 +115,8 @@ option('dbus_display', type: 'feature', value: 'auto', description: '-display dbus support') option('tpm', type : 'feature', value : 'auto', description: 'TPM support') +option('valgrind', type : 'feature', value: 'auto', + description: 'valgrind debug support for coroutine stacks') # Do not enable it by default even for Mingw32, because it doesn't # work on Wine.
scripts/meson-buildoptions.sh +3 -0
@@ -198,6 +198,7 @@ meson_options_help() { printf "%s\n" ' u2f U2F emulation support' printf "%s\n" ' uadk UADK Library support' printf "%s\n" ' usb-redir libusbredir support' + printf "%s\n" ' valgrind valgrind debug support for coroutine stacks' printf "%s\n" ' vde vde network backend support' printf "%s\n" ' vdi vdi image format support' printf "%s\n" ' vduse-blk-export'
@@ -526,6 +527,8 @@ _meson_option_parse() { --disable-ubsan) printf "%s" -Dubsan=false ;; --enable-usb-redir) printf "%s" -Dusb_redir=enabled ;; --disable-usb-redir) printf "%s" -Dusb_redir=disabled ;; + --enable-valgrind) printf "%s" -Dvalgrind=enabled ;; + --disable-valgrind) printf "%s" -Dvalgrind=disabled ;; --enable-vde) printf "%s" -Dvde=enabled ;; --disable-vde) printf "%s" -Dvde=disabled ;; --enable-vdi) printf "%s" -Dvdi=enabled ;;
Signature · 1 line
2.49.0
[PULL 3/9] target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308 Subcode 10 fails to enter secure mode
In reply to Thomas HuthFrom: Gautam Gala <[email protected]>
Extend DIAG308 subcode 10 to return the UVC RC, RRC and command code in bit positions 32-47, 16-31, and 0-15 of register R1 + 1 if the function does not complete successfully (in addition to the previously returned diag response code in bit position 47-63).
Message-ID: <[email protected]>
--- hw/s390x/ipl.h | 6 +++-- target/s390x/kvm/pv.h | 26 +++++++++++++------ hw/s390x/ipl.c | 11 ++++---- hw/s390x/s390-virtio-ccw.c | 14 ++++++----- target/s390x/kvm/pv.c | 51 +++++++++++++++++++++++++++----------- 5 files changed, 73 insertions(+), 35 deletions(-)
hw/s390x/ipl.h +4 -2
@@ -20,6 +20,7 @@#include "hw/qdev-core.h" #include "hw/s390x/ipl/qipl.h" #include "qom/object.h" +#include "target/s390x/kvm/pv.h" #define DIAG308_FLAGS_LP_VALID 0x80#define MAX_BOOT_DEVS 8/* Max number of devices that may have a bootindex */
@@ -28,8 +29,9 @@ void s390_ipl_convert_loadparm(char *ascii_lp, uint8_t *ebcdic_lp);void s390_ipl_fmt_loadparm (uint8_t *loadparm,char *str,Error **errp);void s390_rebuild_iplb (uint16_t index,IplParameterBlock *iplb);void s390_ipl_update_diag308 (IplParameterBlock *iplb); -int s390_ipl_prepare_pv_header (Error **errp); -int s390_ipl_pv_unpack (void ); +int s390_ipl_prepare_pv_header (struct S390PVResponse *pv_resp, +Error **errp); +int s390_ipl_pv_unpack (struct S390PVResponse *pv_resp);void s390_ipl_prepare_cpu (S390CPU *cpu);IplParameterBlock *s390_ipl_get_iplb (void );IplParameterBlock *s390_ipl_get_iplb_pv (void );
target/s390x/kvm/pv.h +19 -7
@@ -16,6 +16,12 @@#include "system/kvm.h" #include "hw/s390x/s390-virtio-ccw.h" +struct S390PVResponse { +uint16_t cmd; +uint16_t rrc; +uint16_t rc; +}; +#ifdef CONFIG_KVM #include "cpu.h"
@@ -42,12 +48,15 @@ int s390_pv_query_info(void);int s390_pv_vm_enable (void );void s390_pv_vm_disable (void );bool s390_pv_vm_try_disable_async (S390CcwMachineState *ms); -int s390_pv_set_sec_parms (uint64_t origin,uint64_t length,Error **errp); -int s390_pv_unpack (uint64_t addr,uint64_t size,uint64_t tweak); +int s390_pv_set_sec_parms (uint64_t origin,uint64_t length, +struct S390PVResponse *pv_resp,Error **errp); +int s390_pv_unpack (uint64_t addr,uint64_t size,uint64_t tweak, +struct S390PVResponse *pv_resp);void s390_pv_prep_reset (void ); -int s390_pv_verify (void ); +int s390_pv_verify (struct S390PVResponse *pv_resp);void s390_pv_unshare (void ); -void s390_pv_inject_reset_error (CPUState *cs); +void s390_pv_inject_reset_error (CPUState *cs, +struct S390PVResponse pv_resp);uint64_t kvm_s390_pv_dmp_get_size_cpu (void );uint64_t kvm_s390_pv_dmp_get_size_mem_state (void );uint64_t kvm_s390_pv_dmp_get_size_completion_data (void );
@@ -63,12 +72,15 @@ static inline int s390_pv_vm_enable(void) { return 0; }static inline void s390_pv_vm_disable (void ) {}static inline bool s390_pv_vm_try_disable_async (S390CcwMachineState *ms) {return false; }static inline int s390_pv_set_sec_parms (uint64_t origin,uint64_t length, +struct S390PVResponse *pv_resp,Error **errp) {return 0 ; } -static inline int s390_pv_unpack (uint64_t addr,uint64_t size,uint64_t tweak) {return 0 ; } +static inline int s390_pv_unpack (uint64_t addr,uint64_t size,uint64_t tweak, +struct S390PVResponse *pv_resp) {return 0 ; }static inline void s390_pv_prep_reset (void ) {} -static inline int s390_pv_verify (void ) {return 0 ; } +static inline int s390_pv_verify (struct S390PVResponse *pv_resp) {return 0 ; }static inline void s390_pv_unshare (void ) {} -static inline void s390_pv_inject_reset_error (CPUState *cs) {}; +static inline void s390_pv_inject_reset_error (CPUState *cs, +struct S390PVResponse pv_resp) {};static inline uint64_t kvm_s390_pv_dmp_get_size_cpu (void ) {return 0 ; }static inline uint64_t kvm_s390_pv_dmp_get_size_mem_state (void ) {return 0 ; }static inline uint64_t kvm_s390_pv_dmp_get_size_completion_data (void ) {return 0 ; }
hw/s390x/ipl.c +6 -5
@@ -26,7 +26,6 @@#include "hw/s390x/vfio-ccw.h" #include "hw/s390x/css.h" #include "hw/s390x/ebcdic.h" -#include "target/s390x/kvm/pv.h" #include "hw/scsi/scsi.h" #include "hw/virtio/virtio-net.h" #include "ipl.h"
@@ -676,7 +675,7 @@ static void s390_ipl_prepare_qipl(S390CPU *cpu)cpu_physical_memory_unmap (addr, len,1 , len); } -int s390_ipl_prepare_pv_header (Error **errp) +int s390_ipl_prepare_pv_header (struct S390PVResponse *pv_resp,Error **errp) {IplParameterBlock *ipib =s390_ipl_get_iplb_pv ();IPLBlockPV *ipib_pv = &ipib->pv;
@@ -685,12 +684,13 @@ int s390_ipl_prepare_pv_header(Error **errp)cpu_physical_memory_read (ipib_pv->pv_header_addr, hdr, ipib_pv->pv_header_len); - rc =s390_pv_set_sec_parms ((uintptr_t )hdr, ipib_pv->pv_header_len, errp); + rc =s390_pv_set_sec_parms ((uintptr_t )hdr, ipib_pv->pv_header_len, + pv_resp, errp);g_free (hdr);return rc; } -int s390_ipl_pv_unpack (void ) +int s390_ipl_pv_unpack (struct S390PVResponse *pv_resp) {IplParameterBlock *ipib =s390_ipl_get_iplb_pv ();IPLBlockPV *ipib_pv = &ipib->pv;
@@ -699,7 +699,8 @@ int s390_ipl_pv_unpack(void)for (i =0 ; i < ipib_pv->num_comp; i++) { rc =s390_pv_unpack (ipib_pv->components[i].addr,TARGET_PAGE_ALIGN (ipib_pv->components[i].size), - ipib_pv->components[i].tweak_pref); + ipib_pv->components[i].tweak_pref, + pv_resp);if (rc) {break ; }
hw/s390x/s390-virtio-ccw.c +8 -6
@@ -365,7 +365,8 @@ static void s390_machine_unprotect(S390CcwMachineState *ms)ram_block_discard_disable (false); } -static int s390_machine_protect (S390CcwMachineState *ms) +static int s390_machine_protect (S390CcwMachineState *ms, +struct S390PVResponse *pv_resp) {Error *local_err =NULL ;int rc;
@@ -408,19 +409,19 @@ static int s390_machine_protect(S390CcwMachineState *ms) }/* Set SE header and unpack */ - rc =s390_ipl_prepare_pv_header (&local_err); + rc =s390_ipl_prepare_pv_header (pv_resp, &local_err);if (rc) { goto out_err; }/* Decrypt image */ - rc =s390_ipl_pv_unpack (); + rc =s390_ipl_pv_unpack (pv_resp);if (rc) { goto out_err; }/* Verify integrity */ - rc =s390_pv_verify (); + rc =s390_pv_verify (pv_resp);if (rc) { goto out_err; }
@@ -452,6 +453,7 @@ static void s390_pv_prepare_reset(S390CcwMachineState *ms)static void s390_machine_reset (MachineState *machine,ResetType type) {S390CcwMachineState *ms =S390_CCW_MACHINE (machine); +struct S390PVResponse pv_resp;enum s390_reset reset_type;CPUState *cs, *t;S390CPU *cpu;
@@ -540,8 +542,8 @@ static void s390_machine_reset(MachineState *machine, ResetType type) }run_on_cpu (cs, s390_do_cpu_reset,RUN_ON_CPU_NULL ); -if (s390_machine_protect (ms)) { -s390_pv_inject_reset_error (cs); +if (s390_machine_protect (ms, &pv_resp)) { +s390_pv_inject_reset_error (cs, pv_resp);/* * Continue after the diag308 so the guest knows something * went wrong.
target/s390x/kvm/pv.c +36 -15
113 lines not on this page · raw message
Signature · 1 line
2.49.0
[PULL 7/9] meson.build: Put the D-Bus summary into the UI section
In reply to Thomas HuthFrom: Thomas Huth <[email protected]>
We've got a dedicated section for UI options nowadays, so the D-Bus display should get reported here, too.
Message-ID: <[email protected]>
--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
@@ -4619,7 +4619,6 @@ summary_info += {'Trace backends': ','.join(get_option('trace_backends'))} if 'simple' in get_option('trace_backends') summary_info += {'Trace output file': get_option('trace_file') + '-<pid>'} endif -summary_info += {'D-Bus display': dbus_display} summary_info += {'QOM debugging': get_option('qom_cast_debug')} summary_info += {'Relocatable install': get_option('relocatable')} summary_info += {'vhost-kernel support': have_vhost_kernel}
@@ -4802,6 +4801,7 @@ summary_info = {} if host_os == 'darwin' summary_info += {'Cocoa support': cocoa} endif +summary_info += {'D-Bus display': dbus_display} summary_info += {'SDL support': sdl} summary_info += {'SDL image support': sdl_image} summary_info += {'GTK support': gtk}
Signature · 1 line
2.49.0
[PULL 2/9] target/s390x: Introduce function when exiting PV
In reply to Thomas HuthFrom: Gautam Gala <[email protected]>
Replace an existing macro (s390_pv_cmd_exit) that looks like a function with an actual function. The function will be used when exiting PV instead of the macro.
Message-ID: <[email protected]>
--- target/s390x/kvm/pv.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-)
target/s390x/kvm/pv.c +6 -8
@@ -59,14 +59,12 @@ static int __s390_pv_cmd(uint32_t cmd, const char *cmdname, void *data,*/ #define s390_pv_cmd (cmd, data) __s390_pv_cmd(cmd, #cmd, data, NULL)#define s390_pv_cmd_pvrc (cmd, data, pvrc) __s390_pv_cmd(cmd, #cmd, data, pvrc) -#define s390_pv_cmd_exit (cmd, data) \ -{ \ - int rc; \ - \ - rc = __s390_pv_cmd(cmd, #cmd, data, NULL); \ - if (rc) { \ - exit(1); \ - } \ + +static void s390_pv_cmd_exit (uint32_t cmd,void *data) +{ +if (s390_pv_cmd (cmd, data)) { +exit (1 ); + } }int s390_pv_query_info (void )
Signature · 1 line
2.49.0
[PULL 9/9] docs/devel/build-environment: enhance MSYS2 instructions
In reply to Thomas HuthFrom: Pierrick Bouvier <[email protected]>
Add missing prerequisite packages, and use more explicit makepkg command.
Message-ID: <[email protected]>
--- docs/devel/build-environment.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/build-environment.rst +2 -2
@@ -97,11 +97,11 @@ build QEMU in MSYS2 itself. :: - pacman -S wget + pacman -S wget base-devel git wget https://raw.githubusercontent.com/msys2/MINGW-packages/refs/heads/master/mingw-w64-qemu/PKGBUILD # Some packages may be missing for your environment, installation will still # be done though. - makepkg -s PKGBUILD || true + makepkg --syncdeps --nobuild PKGBUILD || true Build on windows-aarch64 ++++++++++++++++++++++++
Signature · 1 line
2.49.0
[PULL 8/9] hw/rtc/mc146818rtc: Drop pre-v3 migration stream support
In reply to Thomas HuthFrom: Philippe Mathieu-Daudé <[email protected]>
mc146818rtc's migration stream is at version 3 since commit 56038ef6234 ("RTC: Update the RTC clock only when reading it") from 12 years ago, released in QEMU v1.3.0!
No versioned machines are that old, we can safely remove support for older streams and the qdev_set_legacy_instance_id() call.
Message-ID: <[email protected]>
--- hw/rtc/mc146818rtc.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-)
hw/rtc/mc146818rtc.c +8 -10
@@ -819,7 +819,7 @@ static const VMStateDescription vmstate_rtc_irq_reinject_on_ack_count = {static const VMStateDescription vmstate_rtc = { .name ="mc146818rtc" , .version_id =3 , - .minimum_version_id =1 , + .minimum_version_id =3 , .pre_save = rtc_pre_save, .post_load = rtc_post_load, .fields = (const VMStateField []) {
@@ -829,13 +829,13 @@ static const VMStateDescription vmstate_rtc = {VMSTATE_TIMER_PTR (periodic_timer, MC146818RtcState),VMSTATE_INT64 (next_periodic_time, MC146818RtcState),VMSTATE_UNUSED (3 *8 ), -VMSTATE_UINT32_V (irq_coalesced, MC146818RtcState,2 ), -VMSTATE_UINT32_V (period, MC146818RtcState,2 ), -VMSTATE_UINT64_V (base_rtc, MC146818RtcState,3 ), -VMSTATE_UINT64_V (last_update, MC146818RtcState,3 ), -VMSTATE_INT64_V (offset, MC146818RtcState,3 ), -VMSTATE_TIMER_PTR_V (update_timer, MC146818RtcState,3 ), -VMSTATE_UINT64_V (next_alarm_time, MC146818RtcState,3 ), +VMSTATE_UINT32 (irq_coalesced, MC146818RtcState), +VMSTATE_UINT32 (period, MC146818RtcState), +VMSTATE_UINT64 (base_rtc, MC146818RtcState), +VMSTATE_UINT64 (last_update, MC146818RtcState), +VMSTATE_INT64 (offset, MC146818RtcState), +VMSTATE_TIMER_PTR (update_timer, MC146818RtcState), +VMSTATE_UINT64 (next_alarm_time, MC146818RtcState),VMSTATE_END_OF_LIST () }, .subsections = (const VMStateDescription * const []) {
@@ -929,8 +929,6 @@ static void rtc_realizefn(DeviceState *dev, Error **errp)memory_region_add_subregion (&s->io,0 , &s->coalesced_io);memory_region_add_coalescing (&s->coalesced_io,0 ,1 ); -qdev_set_legacy_instance_id (dev, s->io_base,3 ); -object_property_add_tm (OBJECT (s),"date" , rtc_get_date);qdev_init_gpio_out (dev, &s->irq,1 );
Signature · 1 line
2.49.0
The following changes since commit 73d29ea2417b58ca55fba1aa468ba38e3607b583:
Merge tag 'for-upstream' of https://repo.or.cz/qemu/kevin into staging (2025-04-27 12:47:23 -0400)
are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2025-04-30
for you to fetch changes up to dce324fa06b358ccb01bf35611b6fc53b1f56b96:
docs/devel/build-environment: enhance MSYS2 instructions (2025-04-30 20:44:20 +0200)
----------------------------------------------------------------
* Extend s390x diagnose call 308 subcode 10 to return more information
* Make valgrind support configurable
* Drop support for Python 3.8
* Some other misc cosmetic changes
----------------------------------------------------------------
Daniel P. Berrangé (1):
meson/configure: add 'valgrind' option & --{en, dis}able-valgrind flag
Gautam Gala (3):
target/s390x: Introduce constant when checking if PV header couldn't be decrypted
target/s390x: Introduce function when exiting PV
target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308 Subcode 10 fails to enter secure modePhilippe Mathieu-Daudé (1):
hw/rtc/mc146818rtc: Drop pre-v3 migration stream support
Pierrick Bouvier (1):
docs/devel/build-environment: enhance MSYS2 instructions
Thomas Huth (3):
Drop support for Python 3.8
tests/functional/test_ppc64_pseries: Skip test_ppc64_linux_smt_boot if necessary meson.build: Put the D-Bus summary into the UI section
docs/about/build-platforms.rst | 2 +- docs/devel/build-environment.rst | 4 +-- configure | 14 ++++---- meson.build | 15 ++++++-- hw/s390x/ipl.h | 6 ++-- target/s390x/kvm/pv.h | 26 ++++++++++---- hw/rtc/mc146818rtc.c | 18 +++++----- hw/s390x/ipl.c | 11 +++--- hw/s390x/s390-virtio-ccw.c | 14 ++++---- target/s390x/kvm/pv.c | 66 ++++++++++++++++++++++------------ meson_options.txt | 2 ++ python/Makefile | 8 ++--- python/setup.cfg | 7 ++-- python/tests/minreqs.txt | 2 +- scripts/meson-buildoptions.sh | 3 ++ scripts/qapi/mypy.ini | 2 +- tests/docker/dockerfiles/python.docker | 1 - tests/functional/test_ppc64_pseries.py | 1 + 18 files changed, 126 insertions(+), 76 deletions(-)
[PULL 5/9] Drop support for Python 3.8
From: Thomas Huth <[email protected]>
Python 3.8 went "end of life" in October 2024 and Fedora 42 dropped this version already, so the "python" CI job is currently failing. Thus it's time to drop support for this Python version in QEMU, too.
While we're at it, also look for "python3.13" in the configure script.
Message-ID: <[email protected]>
--- docs/about/build-platforms.rst | 2 +- configure | 14 +++++++------- python/Makefile | 8 ++++---- python/setup.cfg | 7 +++---- python/tests/minreqs.txt | 2 +- scripts/qapi/mypy.ini | 2 +- tests/docker/dockerfiles/python.docker | 1 - 7 files changed, 17 insertions(+), 19 deletions(-)
docs/about/build-platforms.rst +1 -1
@@ -101,7 +101,7 @@ Python runtime option of the ``configure`` script to point QEMU to a supported version of the Python runtime. - As of QEMU |version|, the minimum supported version of Python is 3.8. + As of QEMU |version|, the minimum supported version of Python is 3.9. Python build dependencies Some of QEMU's build dependencies are written in Python. Usually these
configure +7 -7
@@ -540,17 +540,17 @@ if test -n "$linux_arch" && ! test -d "$source_path/linux-headers/asm-$linux_arc fi check_py_version() { - # We require python >= 3.8. + # We require python >= 3.9. # NB: a True python conditional creates a non-zero return code (Failure) - "$1" -c 'import sys; sys.exit(sys.version_info < (3,8))' + "$1" -c 'import sys; sys.exit(sys.version_info < (3,9))' } first_python= if test -z "${PYTHON}"; then # A bare 'python' is traditionally python 2.x, but some distros # have it as python 3.x, so check in both places. - for binary in python3 python python3.12 python3.11 \ - python3.10 python3.9 python3.8; do + for binary in python3 python python3.13 python3.12 python3.11 \ + python3.10 python3.9 ; do if has "$binary"; then python=$(command -v "$binary") if check_py_version "$python"; then
@@ -933,7 +933,7 @@ then # If first_python is set, there was a binary somewhere even though # it was not suitable. Use it for the error message. if test -n "$first_python"; then - error_exit "Cannot use '$first_python', Python >= 3.8 is required." \ + error_exit "Cannot use '$first_python', Python >= 3.9 is required." \ "Use --python=/path/to/python to specify a supported Python." else error_exit "Python not found. Use --python=/path/to/python"
@@ -941,11 +941,11 @@ then fi if ! check_py_version "$python"; then - error_exit "Cannot use '$python', Python >= 3.8 is required." \ + error_exit "Cannot use '$python', Python >= 3.9 is required." \ "Use --python=/path/to/python to specify a supported Python." \ "Maybe try:" \ " openSUSE Leap 15.3+: zypper install python39" \ - " CentOS 8: dnf install python38" + " CentOS: dnf install python3.12" fi # Resolve PATH
python/Makefile +4 -4
@@ -9,13 +9,13 @@ help: @echo "make check-minreqs:" @echo " Run tests in the minreqs virtual environment." @echo " These tests use the oldest dependencies." - @echo " Requires: Python 3.8" - @echo " Hint (Fedora): 'sudo dnf install python3.8'" + @echo " Requires: Python 3.9" + @echo " Hint (Fedora): 'sudo dnf install python3.9'" @echo "" @echo "make check-tox:" @echo " Run tests against multiple python versions." @echo " These tests use the newest dependencies." - @echo " Requires: Python 3.8 - 3.11, and tox." + @echo " Requires: Python 3.9 - 3.11, and tox." @echo " Hint (Fedora): 'sudo dnf install python3-tox python3.11'" @echo " The variable QEMU_TOX_EXTRA_ARGS can be use to pass extra" @echo " arguments to tox".
@@ -59,7 +59,7 @@ PIP_INSTALL = pip install --disable-pip-version-check min-venv: $(QEMU_MINVENV_DIR) $(QEMU_MINVENV_DIR)/bin/activate $(QEMU_MINVENV_DIR) $(QEMU_MINVENV_DIR)/bin/activate: setup.cfg tests/minreqs.txt @echo "VENV $(QEMU_MINVENV_DIR)" - @python3.8 -m venv $(QEMU_MINVENV_DIR) + @python3.9 -m venv $(QEMU_MINVENV_DIR) @( \ echo "ACTIVATE $(QEMU_MINVENV_DIR)"; \ . $(QEMU_MINVENV_DIR)/bin/activate; \
python/setup.cfg +3 -4
@@ -14,7 +14,6 @@ classifiers = Natural Language :: English Operating System :: OS Independent Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11
@@ -23,7 +22,7 @@ classifiers = Typing :: Typed [options] -python_requires = >= 3.8 +python_requires = >= 3.9 packages = qemu.qmp qemu.machine
@@ -78,7 +77,7 @@ exclude = __pycache__, [mypy] strict = True -python_version = 3.8 +python_version = 3.9 warn_unused_configs = True namespace_packages = True warn_unused_ignores = False
@@ -186,7 +185,7 @@ multi_line_output=3 # of python available on your system to run this test. [tox:tox] -envlist = py38, py39, py310, py311, py312, py313 +envlist = py39, py310, py311, py312, py313 skip_missing_interpreters = true [testenv]
python/tests/minreqs.txt +1 -1
@@ -1,5 +1,5 @@ # This file lists the ***oldest possible dependencies*** needed to run -# "make check" successfully under ***Python 3.8***. It is used primarily +# "make check" successfully under ***Python 3.9***. It is used primarily # by GitLab CI to ensure that our stated minimum versions in setup.cfg # are truthful and regularly validated. #
scripts/qapi/mypy.ini +1 -1
@@ -1,4 +1,4 @@ [mypy] strict = True disallow_untyped_calls = False -python_version = 3.8 +python_version = 3.9
tests/docker/dockerfiles/python.docker +0 -1
@@ -15,7 +15,6 @@ ENV PACKAGES \ python3.11 \ python3.12 \ python3.13 \ - python3.8 \ python3.9 RUN dnf install -y $PACKAGES
Signature · 1 line
2.49.0
[PULL 1/9] target/s390x: Introduce constant when checking if PV header couldn't be decrypted
In reply to Thomas HuthFrom: Gautam Gala <[email protected]>
Introduce a named constant when checking the Set Secure Configuration parameters UV call return code for the case where no valid host key was found and therefore the PV header couldn't be decrypted (0x108).
Message-ID: <[email protected]>
--- target/s390x/kvm/pv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
target/s390x/kvm/pv.c +2 -1
@@ -147,6 +147,7 @@ bool s390_pv_vm_try_disable_async(S390CcwMachineState *ms)return true; } +#define UV_RC_SSC_INVAL_HOSTKEY 0x0108int s390_pv_set_sec_parms (uint64_t origin,uint64_t length,Error **errp) {int ret, pvrc;
@@ -158,7 +159,7 @@ int s390_pv_set_sec_parms(uint64_t origin, uint64_t length, Error **errp) ret =s390_pv_cmd_pvrc (KVM_PV_SET_SEC_PARMS , &args, &pvrc);if (ret) {error_setg (errp,"Failed to set secure execution parameters" ); -if (pvrc ==0x108 ) { +if (pvrc ==UV_RC_SSC_INVAL_HOSTKEY ) {error_append_hint (errp,"Please check whether the image is " "correctly encrypted for this host\n" ); }
Signature · 1 line
2.49.0
Stefan Hajnoczi
AppliedApplied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/10.0 for any user-visible changes.