mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 05:43:53 -06:00

This removes the TARGET_S390X and CONFIG_KVM conditions from the CPU commands that are conceptually specific to s390x. Top level stubs are provided to cope with non-s390x targets, or builds without KVM. The removal of CONFIG_KVM is justified by the fact there is no conceptual difference between running 'qemu-system-s390x -accel tcg' on a build with and without KVM built-in, so apps only using TCG can't rely on the CONFIG_KVM in the schema. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20250522190542.588267-11-pierrick.bouvier@linaro.org> Reviewed-by: Markus Armbruster <armbru@redhat.com>
22 lines
788 B
C
22 lines
788 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qapi/error.h"
|
|
#include "qapi/qapi-commands-machine-s390x.h"
|
|
|
|
void qmp_set_cpu_topology(uint16_t core,
|
|
bool has_socket, uint16_t socket,
|
|
bool has_book, uint16_t book,
|
|
bool has_drawer, uint16_t drawer,
|
|
bool has_entitlement, S390CpuEntitlement entitlement,
|
|
bool has_dedicated, bool dedicated,
|
|
Error **errp)
|
|
{
|
|
error_setg(errp, "CPU topology change is not supported on this target");
|
|
}
|
|
|
|
CpuPolarizationInfo *qmp_query_s390x_cpu_polarization(Error **errp)
|
|
{
|
|
error_setg(errp, "CPU polarization is not supported on this target");
|
|
return NULL;
|
|
}
|