Blame SOURCES/kvm-qapi-deprecate-CpuInfoFast.arch.patch

7711c0
From 1d06e4e316610a2ffc805d8cc122dab5494bb8e5 Mon Sep 17 00:00:00 2001
7711c0
From: Laszlo Ersek <lersek@redhat.com>
7711c0
Date: Tue, 13 Nov 2018 18:16:38 +0100
7711c0
Subject: [PATCH 19/22] qapi: deprecate CpuInfoFast.arch
7711c0
MIME-Version: 1.0
7711c0
Content-Type: text/plain; charset=UTF-8
7711c0
Content-Transfer-Encoding: 8bit
7711c0
7711c0
RH-Author: Laszlo Ersek <lersek@redhat.com>
7711c0
Message-id: <20181113181639.4999-6-lersek@redhat.com>
7711c0
Patchwork-id: 83006
7711c0
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 5/6] qapi: deprecate CpuInfoFast.arch
7711c0
Bugzilla: 1607406
7711c0
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
7711c0
RH-Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
7711c0
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
7711c0
7711c0
The TARGET_BASE_ARCH values from "configure" don't all map to the
7711c0
@CpuInfoArch enum constants; in particular "s390x" from the former does
7711c0
not match @s390 in the latter. Clients are known to rely on the @s390
7711c0
constant specifically, so we can't change it silently. Instead, deprecate
7711c0
the @CpuInfoFast.@arch member (in favor of @CpuInfoFast.@target) using the
7711c0
regular deprecation process.
7711c0
7711c0
(No deprecation reminder is added to sysemu_target_to_cpuinfo_arch(): once
7711c0
@CpuInfoFast.@arch is removed, the assignment expression that calls
7711c0
sysemu_target_to_cpuinfo_arch() from qmp_query_cpus_fast() will have to
7711c0
disappear; in turn the static function left without callers will also
7711c0
break the build, thus it'll have to go.)
7711c0
7711c0
Cc: "Daniel P. Berrange" <berrange@redhat.com>
7711c0
Cc: Eric Blake <eblake@redhat.com>
7711c0
Cc: Markus Armbruster <armbru@redhat.com>
7711c0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
7711c0
Message-Id: <20180427192852.15013-6-lersek@redhat.com>
7711c0
Reviewed-by: Eric Blake <eblake@redhat.com>
7711c0
Reviewed-by: Markus Armbruster <armbru@redhat.com>
7711c0
Signed-off-by: Markus Armbruster <armbru@redhat.com>
7711c0
(cherry picked from commit 6ffa3ab453b431ec047ff1fc87120059b5266014)
7711c0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
---
7711c0
 qapi/misc.json | 8 ++++----
7711c0
 qemu-doc.texi  | 5 +++++
7711c0
 2 files changed, 9 insertions(+), 4 deletions(-)
7711c0
7711c0
diff --git a/qapi/misc.json b/qapi/misc.json
7711c0
index d7fd8bd..e6291fd 100644
7711c0
--- a/qapi/misc.json
7711c0
+++ b/qapi/misc.json
7711c0
@@ -558,11 +558,11 @@
7711c0
 # @props: properties describing to which node/socket/core/thread
7711c0
 #         virtual CPU belongs to, provided if supported by board
7711c0
 #
7711c0
-# @arch: base architecture of the cpu
7711c0
+# @arch: base architecture of the cpu; deprecated since 2.13.0 in favor
7711c0
+#        of @target
7711c0
 #
7711c0
-# @target: the QEMU system emulation target, which is more specific than
7711c0
-#          @arch and determines which additional fields will be listed
7711c0
-#          (since 2.13)
7711c0
+# @target: the QEMU system emulation target, which determines which
7711c0
+#          additional fields will be listed (since 2.13)
7711c0
 #
7711c0
 # Since: 2.12
7711c0
 #
7711c0
diff --git a/qemu-doc.texi b/qemu-doc.texi
7711c0
index 985e0f2..88358be 100644
7711c0
--- a/qemu-doc.texi
7711c0
+++ b/qemu-doc.texi
7711c0
@@ -2955,6 +2955,11 @@ from qcow2 images.
7711c0
 
7711c0
 The ``query-cpus'' command is replaced by the ``query-cpus-fast'' command.
7711c0
 
7711c0
+@subsection query-cpus-fast "arch" output member (since 2.13.0)
7711c0
+
7711c0
+The ``arch'' output member of the ``query-cpus-fast'' command is
7711c0
+replaced by the ``target'' output member.
7711c0
+
7711c0
 @section System emulator devices
7711c0
 
7711c0
 @subsection ivshmem (since 2.6.0)
7711c0
-- 
7711c0
1.8.3.1
7711c0