[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 17:07:27 -0300 |
On Mon, Jun 07, 2021 at 02:11:44PM -0300, Eduardo Habkost wrote:
> 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.
I'm queueing patch 1/4 and this one.
I'm not sure about the lowest common denominator approach for
generating the CPU models in patch 2/4, but I need to read your
the cover letter more carefully, to be able to comment.
--
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