[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 3/4] scripts: helper to generate x86_64 CPU ABI compat inf
From: |
Eduardo Habkost |
Subject: |
Re: [PATCH v3 3/4] scripts: helper to generate x86_64 CPU ABI compat info |
Date: |
Mon, 7 Jun 2021 14:11:44 -0300 |
On Mon, Jun 07, 2021 at 02:58:42PM +0100, Daniel P. Berrangé wrote:
[...]
> +# Assumes externally launched process such as
> +#
> +# qemu-system-x86_64 -qmp unix:/tmp/qmp,server,nowait -display none -accel
> kvm
> +#
> +# Note different results will be obtained with TCG, as
> +# TCG masks out certain features otherwise present in
> +# the CPU model definitions, as does KVM.
> +
> +
> +sock = sys.argv[1]
> +cmd = sys.argv[2]
> +shell = qmp.QEMUMonitorProtocol(sock)
> +shell.connect()
> +
> +models = shell.cmd("query-cpu-definitions")
I would make the script launch QEMU itself, using the QEMUMachine
class.
But life is too short for polishing a quick utility script, so:
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
I plan to queue this once I review the rest of the series.
--
Eduardo
- [PATCH v3 0/4] target/i386/cpu: introduce new CPU models for x86-64 ABI levels, Daniel P . Berrangé, 2021/06/07
- [PATCH v3 1/4] docs: add a table showing x86-64 ABI compatibility levels, Daniel P . Berrangé, 2021/06/07
- [PATCH v3 2/4] target/i386: define CPU models to model x86-64 ABI levels, Daniel P . Berrangé, 2021/06/07
- [PATCH v3 3/4] scripts: helper to generate x86_64 CPU ABI compat info, Daniel P . Berrangé, 2021/06/07
- [PATCH v3 4/4] NOT FOR MERGE target/i386: use x86-64-abi1 CPU model as default on x86_64, Daniel P . Berrangé, 2021/06/07
- Re: [PATCH v3 0/4] target/i386/cpu: introduce new CPU models for x86-64 ABI levels, Eduardo Habkost, 2021/06/07