]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/s390x: Simplify S390_ADAPTER_SUPPRESSIBLE definition
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 7 Jan 2026 13:08:02 +0000 (14:08 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 12 Jan 2026 12:56:28 +0000 (13:56 +0100)
commit901e2eb325efe91cd3e5b4368b9f2e2818adfcc4
tree64c2d66a8d29500f011c096a1f2d04ccf87d84c1
parent11d65ecf6e8382b8a64374c6d394bffe290498c0
target/s390x: Simplify S390_ADAPTER_SUPPRESSIBLE definition

Commit 1497c160661 ("s390x: add flags field for registering I/O
adapter") defined S390_ADAPTER_SUPPRESSIBLE twice, one when
KVM is available and another when it isn't. However both
definitions expand to the same value. Unify them, adding an
extra safety check in KVM-specific file.

This allows removing the target-specific 'CONFIG_KVM'
definition in "cpu.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20260107130807.69870-15-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/hw/s390x/css.h
target/s390x/cpu.h
target/s390x/kvm/kvm.c