[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/6] target/i386: display deprecation status in '-cpu help'
From: |
Daniel P . Berrangé |
Subject: |
[PULL 3/6] target/i386: display deprecation status in '-cpu help' |
Date: |
Fri, 5 Aug 2022 16:20:11 +0100 |
When the user queries CPU models via QMP there is a 'deprecated' flag
present, however, this is not done for the CLI '-cpu help' command.
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
target/i386/cpu.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 194b5a31af..1db1278a59 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -4837,6 +4837,11 @@ static void x86_cpu_list_entry(gpointer data, gpointer
user_data)
desc = g_strdup_printf("%s", model_id);
}
+ if (cc->model && cc->model->cpudef->deprecation_note) {
+ g_autofree char *olddesc = desc;
+ desc = g_strdup_printf("%s (deprecated)", olddesc);
+ }
+
qemu_printf("x86 %-20s %s\n", name, desc);
}
--
2.37.1
- [PULL 0/6] Misc next patches, Daniel P . Berrangé, 2022/08/05
- [PULL 1/6] docs: build-platforms: Clarify stance on minor releases and backports, Daniel P . Berrangé, 2022/08/05
- [PULL 2/6] QIOChannelSocket: Add support for MSG_ZEROCOPY + IPV6, Daniel P . Berrangé, 2022/08/05
- [PULL 3/6] target/i386: display deprecation status in '-cpu help',
Daniel P . Berrangé <=
- [PULL 4/6] target/s390x: display deprecation status in '-cpu help', Daniel P . Berrangé, 2022/08/05
- [PULL 5/6] target/arm: display deprecation status in '-cpu help', Daniel P . Berrangé, 2022/08/05
- [PULL 6/6] util/qemu-sockets: Replace the call to close a socket with closesocket(), Daniel P . Berrangé, 2022/08/05