Re: [PATCH v1 2/9] qemu: capabilities: add static-recommended capability

2023-09-14 Thread Collin Walling
On 9/12/23 03:13, Peter Krempa wrote: > On Mon, Sep 11, 2023 at 17:07:09 -0400, Collin Walling wrote: >> Check for the QEMU capability to query for a static-recommended CPU >> model via CPU model expansion. Cache this capability for later. >> >> Signed-off-by: Collin Wal

Re: [PATCH v1 0/9] query & cache host-recommended CPU model

2023-09-14 Thread Collin Walling
On 9/12/23 03:58, Peter Krempa wrote: > On Mon, Sep 11, 2023 at 17:07:07 -0400, Collin Walling wrote: >> Notes: >> https://lists.gnu.org/archive/html/qemu-devel/2023-09/msg02518.html >> - For information regarding the QEMU "static-recommended" (aka >> host

[PATCH v1 8/9] qemu_driver: report feature policy when baselining

2023-09-11 Thread Collin Walling
to VIR_CPU_TYPE_GUEST so that the XML formatter will consider the feature policies. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/qemu/qemu_driver.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c

[PATCH v1 5/9] cpu: conf: add cpu mode for host-recommended

2023-09-11 Thread Collin Walling
Add VIR_CPU_MODE_HOST_RECOMMENDED for host-recommended CPU models and satisfy all switch cases. For the most part, host-recommended will follow similar paths as host-model, aside from touching any architecture specifics. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/conf

[PATCH v1 6/9] domain: capabilities: report host-recommended CPU model

2023-09-11 Thread Collin Walling
Report the host-recommended CPU definition in the domaincapabilities. Currently, only s390x supports this model, but the formatting remains open if other archs decide to support this as well. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/conf/domain_capabilities.c

[PATCH v1 2/9] qemu: capabilities: add static-recommended capability

2023-09-11 Thread Collin Walling
Check for the QEMU capability to query for a static-recommended CPU model via CPU model expansion. Cache this capability for later. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/qemu/qemu_capabilities.c| 2 ++ src/qemu/qemu_capabilities.h

[PATCH v1 7/9] qemu: process: allow guest to use host-recommended CPU model

2023-09-11 Thread Collin Walling
CPU model definitions. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/cpu/cpu.c | 1 + src/qemu/qemu_command.c | 4 +++ src/qemu/qemu_process.c | 9 -- src/qemu/qemu_validate.c

[PATCH v1 9/9] qemu_driver: expand baselined model to static_recommended for s390x

2023-09-11 Thread Collin Walling
In order for the CPU model expansion command to consider any deprecated CPU features, s390x will need to use the special static recommended expansion type after baselining. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/qemu/qemu_driver.c | 8 ++-- 1 file changed, 6

[PATCH v1 4/9] qemu: capabilities: query and cache host-recommended CPU model

2023-09-11 Thread Collin Walling
): ... Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/conf/schemas/cputypes.rng | 1 + src/qemu/qemu_capabilities.c | 108 +++--- src/qemu/qemu_capabilities.h | 3 + src/qemu/qemu_capspriv.h | 6

[PATCH v1 1/9] qemu: monitor: enable query for static-recommended CPU model

2023-09-11 Thread Collin Walling
in a mixed environment. To circumvent this issue, a "host-recommended" CPU model has been introduced, which is the host-model with delta changes that disable features that have been flagged as deprecated. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/qemu/qemu_monitor.

[PATCH v1 0/9] query & cache host-recommended CPU model

2023-09-11 Thread Collin Walling
# virsh hypervisor-cpu-baseline host-model.xml z14.2-base Collin Walling (9): qemu: monitor: enable query for static-recommended CPU model qemu: capabilities: add static-recommended capability qemu: capabilities: refactor virQEMUCapsLoadHostCPUModelInfo

[PATCH v1 3/9] qemu: capabilities: refactor virQEMUCapsLoadHostCPUModelInfo

2023-09-11 Thread Collin Walling
This will be used to load the host recommended CPU model, introduced in a subsequent patch. Also move ctxt auto restore to end of variable declarations to avoid a compiler warning. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/qemu/qemu_capabilities.c | 22

Re: Revisiting the virsh hypervisor-cpu-models/definitions commands

2023-05-30 Thread Collin Walling
On 5/26/23 7:35 AM, Daniel P. Berrangé wrote: On Wed, May 17, 2023 at 05:34:46PM -0400, Collin Walling wrote: Daniel, Tim, (and others on the upstream list that'd like to chime in) Harken back to a few months ago when I presented a few patches to introduce the virsh hypervisor-cpu-models

Revisiting the virsh hypervisor-cpu-models/definitions commands

2023-05-17 Thread Collin Walling
Daniel, Tim, (and others on the upstream list that'd like to chime in) Harken back to a few months ago when I presented a few patches to introduce the virsh hypervisor-cpu-models command. The proposal was turned down, and I was pointed to a patch-set/discussion that Tim introduced almost a year

Re: [PATCH v1 0/4] Introduce virsh hypervisor-cpu-models

2023-03-27 Thread Collin Walling
On 3/22/23 2:11 PM, Collin Walling wrote: On 3/22/23 1:00 PM, Tim Wiederhake wrote: On Wed, 2023-03-22 at 11:39 -0400, Collin Walling wrote: Allows for the query of hypervisor-known CPU models via the simple command: virsh hypervisor-cpu-models. For the QEMU driver, the models are queried via

Re: [PATCH v1 0/4] Introduce virsh hypervisor-cpu-models

2023-03-22 Thread Collin Walling
On 3/22/23 1:00 PM, Tim Wiederhake wrote: On Wed, 2023-03-22 at 11:39 -0400, Collin Walling wrote: Allows for the query of hypervisor-known CPU models via the simple command: virsh hypervisor-cpu-models. For the QEMU driver, the models are queried via the capabilities file. Each model

[PATCH v1 2/4] remote: Implement virConnectGetHypervisorCPUNames

2023-03-22 Thread Collin Walling
Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/remote/remote_driver.c | 1 + src/remote/remote_protocol.x | 20 +++- src/remote_protocol-structs | 11 +++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b

[PATCH v1 3/4] virsh: Introduce new hypervisor-cpu-models command

2023-03-22 Thread Collin Walling
This command is a virsh wrapper for virConnectGetHypervisorCPUNames. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- docs/manpages/virsh.rst | 20 tools/virsh-host.c | 70 + 2 files changed, 90 insertions(+) diff --git

[PATCH v1 4/4] qemu_driver: Implement qemuConnectGetHypervisorCPUNames

2023-03-22 Thread Collin Walling
This function is hooked into the virsh hypervisor-cpu-models command. The CPU models are read directly from the QEMU capabilities file, which contains a list of all models queried from the hypervisor. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- src/qemu/qemu_driver.c | 62

[PATCH v1 0/4] Introduce virsh hypervisor-cpu-models

2023-03-22 Thread Collin Walling
to the listing. The models "qemu", "host", and "max" have been excluded from this list since they are not architecture specific. The code can be easily modified to include them if desired. Collin Walling (4): Introduce virConnectGetHypervisorCPUNames

[PATCH v1 1/4] Introduce virConnectGetHypervisorCPUNames public API

2023-03-22 Thread Collin Walling
The new API collects a list of CPU model names supported by the specified hypervisor. This is a more useful version of virConnectGetCPUNames, which does not consider any hypervisor capabilities when querying model names. Signed-off-by: Collin Walling Reviewed-by: Boris Fiuczynski --- include

Re: [PATCH RFC 0/1] s390x CPU Model Feature Deprecation

2022-03-20 Thread Collin Walling
On 3/18/22 14:33, David Hildenbrand wrote: > On 18.03.22 18:23, Collin Walling wrote: >> On 3/15/22 15:08, David Hildenbrand wrote: >>> On 15.03.22 18:40, Boris Fiuczynski wrote: >>>> On 3/15/22 4:58 PM, David Hildenbrand wrote: >>>>> O

Re: [PATCH RFC 0/1] s390x CPU Model Feature Deprecation

2022-03-18 Thread Collin Walling
On 3/15/22 15:08, David Hildenbrand wrote: > On 15.03.22 18:40, Boris Fiuczynski wrote: >> On 3/15/22 4:58 PM, David Hildenbrand wrote: >>> On 11.03.22 13:44, Christian Borntraeger wrote: >>>> >>>> >>>> Am 11.03.22 um 10:30 schrieb David Hild

[PATCH RFC 1/1] qemu: capabilities: disable csske for host cpu

2022-03-10 Thread Collin Walling
CPU models past gen16a will no longer support the csske feature. In order to secure migration of guests running on machines that still support this feature to machines that do not, let's disable csske in the host-model. Signed-off-by: Collin Walling --- src/qemu/qemu_capabilities.c

[PATCH RFC 0/1] s390x CPU Model Feature Deprecation

2022-03-10 Thread Collin Walling
list = query_deprecated_features() for each feat in list set feat to disabled for host-model Then, any new features that are flagged for deprecated in the future may simply be added to this "deprecated features" list in QEMU alongside a new CPU definition. Please let me know your

Re: [PATCH v2 0/5] Hypervisor CPU Baseline Cleanups and Fixes

2020-11-24 Thread Collin Walling
On 11/24/20 3:05 PM, Jiri Denemark wrote: > On Mon, Oct 26, 2020 at 12:12:40 -0400, Collin Walling wrote: >> Polite ping. Have there been relevant updates elsewhere that I might've >> missed? Thanks! > > Oops, sorry about the delay. I replaced the for loop with > v

Re: [PATCH v2 0/5] Hypervisor CPU Baseline Cleanups and Fixes

2020-10-26 Thread Collin Walling
Polite ping. Have there been relevant updates elsewhere that I might've missed? Thanks! On 9/24/20 8:22 PM, Collin Walling wrote: > The following patches provide some TLC to the hypervisor CPU baseline > handler within the qemu_driver code. > > #1 checks for the cpu-model-expansio

Re: [PATCH v2 5/5] qemu: fix error message when baselining with a single cpu

2020-09-24 Thread Collin Walling
his will also ensure the CPU model's feature set is sane if any were provided in the file. Signed-off-by: Collin Walling On 9/24/20 8:22 PM, Collin Walling wrote: > When executing the hypervisor-cpu-baseline command and if there is > only a single CPU definition present in the XML file,

[PATCH v2 3/5] qemu: report error if missing model name when baselining

2020-09-24 Thread Collin Walling
of a model name. This code is copied from virCPUBaseline. Signed-off-by: Collin Walling --- src/qemu/qemu_driver.c | 13 + 1 file changed, 13 insertions(+) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 92684a9876..1c5b1dcfee 100644 --- a/src/qemu/qemu_driver.c +++ b

[PATCH v2 2/5] qemu: fix one instance of rc check styling in baseline

2020-09-24 Thread Collin Walling
Signed-off-by: Collin Walling --- src/qemu/qemu_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 0b68b33af8..92684a9876 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -12470,7 +12470,7

[PATCH v2 5/5] qemu: fix error message when baselining with a single cpu

2020-09-24 Thread Collin Walling
quot;, since the API expects at least two CPU models. Let's fix this by performing a CPU model expansion on the single CPU definition and returning the result to the caller. This will also ensure the CPU model is sane. Signed-off-by: Collin Walling --- src/qemu/qemu_driver.c | 9 ++--- 1 file c

[PATCH v2 0/5] Hypervisor CPU Baseline Cleanups and Fixes

2020-09-24 Thread Collin Walling
models known to the hypervisor prior to baselining / expanding (which were retrieved at some point previously during libvirt init). Collin Walling (5): qemu: check for model-expansion cap before baselining qemu: fix one instance of rc check styling in baseline qemu: report error if missing mo

[PATCH v2 1/5] qemu: check for model-expansion cap before baselining

2020-09-24 Thread Collin Walling
Hypervisor-cpu-baseline requires the cpu-model-expansion capability when expanding CPU model features if the --features flag is provided. Signed-off-by: Collin Walling --- src/qemu/qemu_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_driver.c b/src

[PATCH v2 4/5] qemu: check if cpu model is supported before baselining

2020-09-24 Thread Collin Walling
Check the provided CPU models against the CPU models known by the hypervisor before baselining and print an error if an unrecognized model is found. Signed-off-by: Collin Walling --- src/qemu/qemu_driver.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v1 2/2] qemu: driver: perform CPU model expansion on single CPU during baseline

2020-09-24 Thread Collin Walling
On 9/24/20 3:30 AM, Jiri Denemark wrote: > On Wed, Sep 23, 2020 at 22:26:29 -0400, Collin Walling wrote: >> When executing the hypervisor-cpu-baseline command and if there is only >> a single CPU definition present in the XML file, then libvirt will >> print an unhelpful

[PATCH v1 1/2] qemu: driver: use model name "host" for mode "host-passthrough"

2020-09-23 Thread Collin Walling
the CPU definition has been converted from XML. If these conditions are matched, then the CPU definition's model name will be set to "host". Signed-off-by: Collin Walling --- src/qemu/qemu_driver.c | 41 +++-- 1 file changed, 31 insertions(+), 10

[PATCH v1 2/2] qemu: driver: perform CPU model expansion on single CPU during baseline

2020-09-23 Thread Collin Walling
quot;, since the API expects at least two CPU models. Let's fix this by performing a CPU model expansion on the single CPU definition and returning the result to the caller. Signed-off-by: Collin Walling --- src/qemu/qemu_driver.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(

Re: [libvirt PATCH v2] qemu: substitute missing model name for host-passthrough

2020-09-23 Thread Collin Walling
On 9/23/20 5:01 PM, Jiri Denemark wrote: > On Wed, Sep 23, 2020 at 16:17:04 -0400, Collin Walling wrote: >> On 9/23/20 2:52 PM, Collin Walling wrote: >>> On 9/23/20 10:18 AM, Jiri Denemark wrote: >>>> On Wed, Sep 23, 2020 at 09:26:58 +0200, Tim Wiederhake wro

Re: [libvirt PATCH v2] qemu: substitute missing model name for host-passthrough

2020-09-23 Thread Collin Walling
On 9/23/20 2:52 PM, Collin Walling wrote: > On 9/23/20 10:18 AM, Jiri Denemark wrote: >> On Wed, Sep 23, 2020 at 09:26:58 +0200, Tim Wiederhake wrote: >>> From: Collin Walling >>> >>> Before: >>> $ uname -m >>> s390x >>> $ cat

Re: [PATCH v1] qemu: monitor: substitute missing model name for host-passthrough

2020-09-23 Thread Collin Walling
On 9/23/20 9:50 AM, Jiri Denemark wrote: > Collin, I apologize for not getting to you earlier. > > On Wed, Sep 16, 2020 at 12:11:08 -0400, Collin Walling wrote: >> On 9/16/20 3:03 AM, Michal Privoznik wrote: >>> On 9/15/20 10:25 PM, Collin Walling wrote: >>>

Re: [libvirt PATCH v2] qemu: substitute missing model name for host-passthrough

2020-09-23 Thread Collin Walling
On 9/23/20 10:18 AM, Jiri Denemark wrote: > On Wed, Sep 23, 2020 at 09:26:58 +0200, Tim Wiederhake wrote: >> From: Collin Walling >> >> Before: >> $ uname -m >> s390x >> $ cat passthrough-cpu.xml >> >> $ virsh hypervisor-cpu-compar

Re: [PATCH v1] qemu: monitor: substitute missing model name for host-passthrough

2020-09-16 Thread Collin Walling
On 9/16/20 3:03 AM, Michal Privoznik wrote: > On 9/15/20 10:25 PM, Collin Walling wrote: >> One more ping in attempt to get this in the right direction. Otherwise >> I'll post my next idea and we can go from there :) > > I agree with Peter that while the idea might look

Re: [PATCH v1] qemu: monitor: substitute missing model name for host-passthrough

2020-09-15 Thread Collin Walling
migration" would be sufficient for this? Thanks again. Hope all is well. On 8/19/20 11:05 AM, Collin Walling wrote: > Polite ping to the mailing list regarding this bug. I recall the logic I > proposed belongs elsewhere, but I'd like to kindly request a followup > from the

Re: [PATCH v1] qemu: monitor: substitute missing model name for host-passthrough

2020-08-19 Thread Collin Walling
Polite ping to the mailing list regarding this bug. I recall the logic I proposed belongs elsewhere, but I'd like to kindly request a followup from the respective maintainer(s) for a direction. Thanks! On 6/26/20 2:31 PM, Collin Walling wrote: > On 6/26/20 3:22 AM, Peter Krempa wrote: >&g

Re: [PATCH v1] qemu: monitor: substitute missing model name for host-passthrough

2020-06-26 Thread Collin Walling
On 6/26/20 3:22 AM, Peter Krempa wrote: > On Thu, Jun 25, 2020 at 17:58:46 -0400, Collin Walling wrote: >> When executing the hypervisor-cpu-compare/baseline commands and >> the XML file contains a CPU definition using host-passthrough >> and no model name, the commands

[PATCH v1] qemu: monitor: substitute missing model name for host-passthrough

2020-06-25 Thread Collin Walling
converting a CPU definition to a JSON object. If these conditions are matched, then the JSON object will be constructed using "host" as the model name. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1850680 Signed-off-by: Collin Walling --- src/qemu/qemu_monitor_j

[PATCH v1 2/3] qemumonitorjsontest: add tests for cpu comparison

2020-02-20 Thread Collin Walling
Signed-off-by: Collin Walling --- tests/qemumonitorjsontest.c | 50 + 1 file changed, 50 insertions(+) diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c index cd7fa1f..5568af5 100644 --- a/tests/qemumonitorjsontest.c +++ b/tests

[PATCH v1 3/3] qemumonitorjsontest: add test for cpu baseline

2020-02-20 Thread Collin Walling
Signed-off-by: Collin Walling --- tests/qemumonitorjsontest.c | 77 + 1 file changed, 77 insertions(+) diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c index 5568af5..e9f95e3 100644 --- a/tests/qemumonitorjsontest.c +++ b/tests

[PATCH v1 0/3] qemumonitorjson tests for cpu compare and baseline

2020-02-20 Thread Collin Walling
the x86 capabilities were loaded for the qemu_monitor_json tests. By accepting a string denoting which architecture's QEMU capabilities we'd like to load, we can now test the comparison and baseline code that is currently only supported on s390. Collin Walling (3): qemumonitorjsontest: load schema

[PATCH v1 1/3] qemumonitorjsontest: load schema based on specified arch

2020-02-20 Thread Collin Walling
There are some architectures that support capabilities that others do not (e.g. s390x supports cpu comparison and baseline via QEMU). Let's make testQEMUSchemaLoad accept a string to specify the schema to load based on the specified arch. Signed-off-by: Collin Walling --- tests/qemublocktest.c

Re: Questions about using qemuProcess API within a libvirt test

2020-02-14 Thread Collin Walling
Much appreciated to you both for the well-written explanations. I'll keep my libvirt tests to mock input/output responses and find an alternative test suite for using libvirt with a real QEMU instance. Thank you for your time! -- Respectfully, - Collin Walling

Questions about using qemuProcess API within a libvirt test

2020-02-10 Thread Collin Walling
and a QEMU binary? I afraid to say that I am at a loss how to repair this or perhaps how to use the API properly. I appreciate anyone's help with looking into this. Note: in case I am not clear, by "libvirt test" I am referring to a test implemented in the tests directory of the libvirt project. -- Respectfully, - Collin Walling

Re: [libvirt] [PATCH 0/4] qemu: Use host-model CPU on s390 by default

2019-11-25 Thread Collin Walling
ine s390-ccw-virtio-4.2 Migrated between a weird mixed environment I'm chaotically working with :) Perhaps the testing was a bit over-extensive, but it's good to make sure. Tested-by: Collin Walling -- Respectfully, - Collin Walling -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH v1] qemu_driver: improve comparison/baseline error reporting

2019-10-16 Thread Collin Walling
. An internal error will still appear for other messages originating from QEMU e.g. if a newer feature is not available for an older CPU model. Signed-off-by: Collin Walling --- src/qemu/qemu_driver.c | 57 ++ 1 file changed, 57 insertions(+) diff

Re: [libvirt] [PATCH v5 00/15] CPU Model Baseline and Comparison for s390x

2019-10-02 Thread Collin Walling
On 10/2/19 11:48 AM, Jiri Denemark wrote: > On Thu, Sep 19, 2019 at 16:24:51 -0400, Collin Walling wrote: >> Note: since I've made some changes to a lot of these patches / split >> up some patches, I've decided to hold off on adding any r-b's in case >> there is a specific cha

Re: [libvirt] [PATCH v5 09/15] qemu_driver: hook up query-cpu-model-baseline

2019-10-02 Thread Collin Walling
On 10/2/19 9:52 AM, Jiri Denemark wrote: > On Thu, Sep 19, 2019 at 16:25:00 -0400, Collin Walling wrote: >> This command is hooked into the virsh hypervisor-cpu-baseline command. >> The CPU models provided in the XML sent to the command will be baselined >> via the query-c

[libvirt] [PATCH v5 04/15] qemu_monitor: add features to CPU model for QMP command

2019-09-19 Thread Collin Walling
(-1), then set the property value to true. Otherwise (optional, disabled) set the value to false. Signed-off-by: Collin Walling --- src/qemu/qemu_monitor_json.c | 30 +- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_monitor_json.c b/src

[libvirt] [PATCH v5 14/15] qemu_driver: hook up query-cpu-model-comparison

2019-09-19 Thread Collin Walling
ble to run on the hypervisor. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza Reviewed-by: Boris Fiuczynski --- src/qemu/qemu_driver.c | 52 ++ 1 file changed, 52 insertions(+) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c ind

[libvirt] [PATCH v5 09/15] qemu_driver: hook up query-cpu-model-baseline

2019-09-19 Thread Collin Walling
This command is hooked into the virsh hypervisor-cpu-baseline command. The CPU models provided in the XML sent to the command will be baselined via the query-cpu-model-baseline QMP command. The resulting CPU model will be reported. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique

[libvirt] [PATCH v5 06/15] qemu_monitor: make qemuMonitorJSONParseCPUModelData command-agnostic

2019-09-19 Thread Collin Walling
Modify the error messages in qemuMonitorJSONParseCPUModelData to print the command name provided to the function. Signed-off-by: Collin Walling --- src/qemu/qemu_monitor_json.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/qemu/qemu_monitor_json.c b/src

[libvirt] [PATCH v5 10/15] qemu_driver: expand cpu features after baseline

2019-09-19 Thread Collin Walling
Perform a full CPU model expansion on the result of the baselined model name when the features flag is present. Signed-off-by: Collin Walling --- src/qemu/qemu_driver.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu

[libvirt] [PATCH v5 02/15] qemu_monitor: expansion cleanups

2019-09-19 Thread Collin Walling
With refactoring most of the expansion function, let's take care of some additional cleanups. Signed-off-by: Collin Walling --- src/qemu/qemu_monitor_json.c | 37 ++--- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/src/qemu/qemu_monitor_json.c b

[libvirt] [PATCH v5 11/15] qemu_monitor: implement query-cpu-model-comparison

2019-09-19 Thread Collin Walling
, superset, subset, incompatible). The list of properties (aka CPU features) that is returned from the QMP response is ignored. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_monitor.c | 14 ++ src/qemu/qemu_monitor.h | 5 + src/qemu

[libvirt] [PATCH v5 08/15] qemu_capabilities: introduce QEMU_CAPS_QUERY_CPU_MODEL_BASELINE

2019-09-19 Thread Collin Walling
This capability enables baselining of CPU models via QMP. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza Reviewed-by: Boris Fiuczynski Reviewed-by: Jiri Denemark --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h

[libvirt] [PATCH v5 01/15] qemu_monitor: refactor cpu model expansion

2019-09-19 Thread Collin Walling
Refactor some code in qemuMonitorJSONGetCPUModelExpansion to be later used for the comparison and baseline functions. Signed-off-by: Collin Walling Reviewed-by: Bjoern Walk Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_monitor_json.c | 143

[libvirt] [PATCH v5 05/15] qemu_monitor: allow cpu props to be optional

2019-09-19 Thread Collin Walling
Some older s390 CPU models (e.g. z900) will not report props as a response from query-cpu-model-expansion. As such, we should make the props field optional when parsing the return data from the QMP response. Signed-off-by: Collin Walling --- src/qemu/qemu_capabilities.c | 10 -- src

[libvirt] [PATCH v5 13/15] cpu_conf: xml to cpu definition parse helper

2019-09-19 Thread Collin Walling
Implement an XML to virCPUDefPtr helper that handles the ctxt prerequisite for virCPUDefParseXML. This does not alter any functionality. Signed-off-by: Collin Walling Reviewed-by: Bjoern Walk Reviewed-by: Daniel Henrique Barboza --- src/conf/cpu_conf.c | 29

[libvirt] [PATCH v5 12/15] qemu_capabilities: introduce QEMU_CAPS_QUERY_CPU_MODEL_COMPARISON

2019-09-19 Thread Collin Walling
This capability enables comparison of CPU models via QMP. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza Reviewed-by: Boris Fiuczynski Reviewed-by: Jiri Denemark --- src/qemu/qemu_capabilities.c | 4 src/qemu/qemu_capabilities.h

[libvirt] [PATCH v5 07/15] qemu_monitor: implement query-cpu-model-baseline

2019-09-19 Thread Collin Walling
to run on both A and B. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_monitor.c | 14 ++ src/qemu/qemu_monitor.h | 5 + src/qemu/qemu_monitor_json.c | 42 ++ src/qemu/qemu_monitor_json.h | 6

[libvirt] [PATCH v5 03/15] qemu_monitor: use cpu def instead of char for expansion

2019-09-19 Thread Collin Walling
to the expansion function in preparation for taking features into consideration. Signed-off-by: Collin Walling --- src/qemu/qemu_capabilities.c | 9 +++-- src/qemu/qemu_monitor.c | 7 +++ src/qemu/qemu_monitor.h | 2 +- src/qemu/qemu_monitor_json.c | 8 src/qemu

[libvirt] [PATCH v5 00/15] CPU Model Baseline and Comparison for s390x

2019-09-19 Thread Collin Walling
. Thanks. Collin Walling (15): qemu_monitor: refactor cpu model expansion qemu_monitor: expansion cleanups qemu_monitor: use cpu def instead of char for expansion qemu_monitor: add features to CPU model for QMP command qemu_monitor: allow cpu props to be optional qemu_monitor: make

[libvirt] [PATCH v5 15/15] qemu_driver: improve comparison/baseline error reporting

2019-09-19 Thread Collin Walling
. Signed-off-by: Collin Walling --- src/qemu/qemu_driver.c | 62 ++ 1 file changed, 62 insertions(+) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 153b2f2..6298c48 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c

Re: [libvirt] [PATCH v4 0/8] CPU Model Baseline and Comparison for s390x

2019-09-10 Thread Collin Walling
On 9/10/19 11:38 AM, David Hildenbrand wrote: On 10.09.19 17:22, Jiri Denemark wrote: On Tue, Sep 03, 2019 at 15:32:34 -0400, Collin Walling wrote: On 8/20/19 10:06 AM, Jiri Denemark wrote: First, let me apologize for such a late review. I'll try my best to review your series earlier next

Re: [libvirt] [PATCH v4 0/8] CPU Model Baseline and Comparison for s390x

2019-09-03 Thread Collin Walling
ts rather than discussion pieces. I'm working through them. > On Wed, Jul 17, 2019 at 10:03:21 -0400, Collin Walling wrote: >> When baselining CPU models and the user appends the --features argument >> to the command, s390x will only report back features that supersede the

Re: [libvirt] [PATCH v4 1/8] qemu_monitor: helper functions for CPU models

2019-07-25 Thread Collin Walling
Thanks for taking the time to review these! On 7/24/19 12:18 PM, Boris Fiuczynski wrote: Reviewed-by: Boris Fiuczynski On 7/17/19 4:03 PM, Collin Walling wrote: [...] -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH v4 8/8] qemu_driver: hook up query-cpu-model-comparison

2019-07-25 Thread Collin Walling
[...] + +virCPUCompareResult +virQEMUCapsCPUModelComparison(virQEMUCapsPtr qemuCaps, +  const char *libDir, +  uid_t runUid, +  gid_t runGid, +  virCPUDefPtr cpu_a, +  

Re: [libvirt] [PATCH v4 5/8] qemu_monitor: implement query-cpu-model-comparison

2019-07-25 Thread Collin Walling
On 7/24/19 12:18 PM, Boris Fiuczynski wrote: On 7/17/19 4:03 PM, Collin Walling wrote: [...] diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index b599ee6..3c33c63 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -5875,6 +5875,101

[libvirt] [PATCH v4 8/8] qemu_driver: hook up query-cpu-model-comparison

2019-07-17 Thread Collin Walling
domcapabilities). s390x can report that the first model (A) is a subset of the second (B). If A is the hypervisor CPU and a subset of B (the CPU contained in the XML), then B would not be able to run on this machine and thus we will report that CPU model B is incompatible. Signed-off-by: Collin Walling

[libvirt] [PATCH v4 2/8] qemu_monitor: implement query-cpu-model-baseline

2019-07-17 Thread Collin Walling
to run on both A and B. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_monitor.c | 22 src/qemu/qemu_monitor.h | 9 +++ src/qemu/qemu_monitor_json.c | 61 src/qemu/qemu_monitor_json.h

[libvirt] [PATCH v4 6/8] qemu_capabilities: introduce QEMU_CAPS_QUERY_CPU_MODEL_COMPARISON

2019-07-17 Thread Collin Walling
This capability enables CPU model comparison between two CPU definitions via QMP. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata

[libvirt] [PATCH v4 0/8] CPU Model Baseline and Comparison for s390x

2019-07-17 Thread Collin Walling
oduce capability and update test files - hook up monitor functions to virsh command Patch 7 pulls out some code from the CPUDef XML parser to be reused in the comparison hookup. Thanks. x86 and Power review by Daniel Henrique Barboza (thanks!) Collin Walling (8): qemu_monitor: helper function

[libvirt] [PATCH v4 7/8] cpu_conf: xml to cpu definition parse helper

2019-07-17 Thread Collin Walling
Implement an XML to virCPUDefPtr helper that handles the ctxt prerequisite for virCPUDefParseXML. This does not alter any functionality. Signed-off-by: Collin Walling Reviewed-by: Bjoern Walk Reviewed-by: Daniel Henrique Barboza --- src/conf/cpu_conf.c | 30

[libvirt] [PATCH v4 5/8] qemu_monitor: implement query-cpu-model-comparison

2019-07-17 Thread Collin Walling
, superset, subset, incompatible) as well as a list of properties (aka CPU features) responsible for the subset or superset result. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_monitor.c | 22 ++ src/qemu/qemu_monitor.h | 9 + src/qemu

[libvirt] [PATCH v4 1/8] qemu_monitor: helper functions for CPU models

2019-07-17 Thread Collin Walling
Refactor some code in qemuMonitorJSONGetCPUModelExpansion to be later used for the comparison and baseline functions. This does not alter any functionality. Signed-off-by: Collin Walling Reviewed-by: Bjoern Walk Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_monitor_json.c | 173

[libvirt] [PATCH v4 4/8] qemu_driver: hook up query-cpu-model-baseline

2019-07-17 Thread Collin Walling
domcapabilities). Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 84 src/qemu/qemu_capabilities.h | 7 src/qemu/qemu_driver.c | 27 ++ 3 files changed, 118 insertions

[libvirt] [PATCH v4 3/8] qemu_capabilities: introduce QEMU_CAPS_QUERY_CPU_MODEL_BASELINE

2019-07-17 Thread Collin Walling
This capability enables CPU model baselining between two CPU definitions via QMP. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata

Re: [libvirt] [PATCH v3 0/8] CPU Model Baseline and Comparison for s390x

2019-06-12 Thread Collin Walling
Polite ping. I'd like to at least make sure these patches are on the right track with what libvirt expects for these commands. :) On 5/30/19 10:23 AM, Collin Walling wrote: Changelog: v2 - numerous cleanups - removed "policy fix function" and now prop

[libvirt] [PATCH v3 7/8] cpu_conf: xml to cpu definition parse helper

2019-05-30 Thread Collin Walling
Implement an XML to virCPUDefPtr helper that handles the ctxt prerequisite for virCPUDefParseXML. This does not alter any functionality. Signed-off-by: Collin Walling Reviewed-by: Bjoern Walk Reviewed-by: Daniel Henrique Barboza --- src/conf/cpu_conf.c | 30

[libvirt] [PATCH v3 6/8] qemu_capabilities: introduce QEMU_CAPS_QUERY_CPU_MODEL_COMPARISON

2019-05-30 Thread Collin Walling
This capability enables CPU model comparison between two CPU definitions via QMP. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 4 src/qemu/qemu_capabilities.h | 3 +++ tests

[libvirt] [PATCH v3 3/8] qemu_capabilities: introduce QEMU_CAPS_QUERY_CPU_MODEL_BASELINE

2019-05-30 Thread Collin Walling
This capability enables CPU model baselining between two CPU definitions via QMP. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata

[libvirt] [PATCH v3 8/8] qemu_driver: hook up query-cpu-model-comparison

2019-05-30 Thread Collin Walling
domcapabilities). s390x can report that the first model (A) is a subset of the second (B). If A is the hypervisor CPU and a subset of B (the CPU contained in the XML), then B would not be able to run on this machine and thus we will report that CPU model B is incompatible. Signed-off-by: Collin Walling

[libvirt] [PATCH v3 1/8] qemu_monitor: helper functions for CPU models

2019-05-30 Thread Collin Walling
Refactor some code in qemuMonitorJSONGetCPUModelExpansion to be later used for the comparison and baseline functions. This does not alter any functionality. Signed-off-by: Collin Walling Reviewed-by: Bjoern Walk --- src/qemu/qemu_monitor_json.c | 173

[libvirt] [PATCH v3 2/8] qemu_monitor: implement query-cpu-model-baseline

2019-05-30 Thread Collin Walling
to run on both A and B. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_monitor.c | 22 src/qemu/qemu_monitor.h | 9 +++ src/qemu/qemu_monitor_json.c | 61 src/qemu/qemu_monitor_json.h

[libvirt] [PATCH v3 4/8] qemu_driver: hook up query-cpu-model-baseline

2019-05-30 Thread Collin Walling
domcapabilities). Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_capabilities.c | 84 src/qemu/qemu_capabilities.h | 7 src/qemu/qemu_driver.c | 27 ++ 3 files changed, 118 insertions

[libvirt] [PATCH v3 0/8] CPU Model Baseline and Comparison for s390x

2019-05-30 Thread Collin Walling
es - hook up monitor functions to virsh command Patch 7 pulls out some code from the CPUDef XML parser to be reused in the comparison hookup. Thanks. x86 and Power review by Daniel Henrique Barboza (thanks!) Collin Walling (8): qemu_monitor: helper functions for CPU models qemu_monitor:

[libvirt] [PATCH v3 5/8] qemu_monitor: implement query-cpu-model-comparison

2019-05-30 Thread Collin Walling
, superset, subset, incompatible) as well as a list of properties (aka CPU features) responsible for the subset or superset result. Signed-off-by: Collin Walling Reviewed-by: Daniel Henrique Barboza --- src/qemu/qemu_monitor.c | 22 ++ src/qemu/qemu_monitor.h | 9 + src/qemu

Re: [libvirt] [PATCH v2 1/8] qemu_monitor: helper functions for CPU models

2019-05-02 Thread Collin Walling
On 4/29/19 10:08 AM, Daniel Henrique Barboza wrote: On 4/26/19 5:22 PM, wall...@linux.ibm.com wrote: From: Collin Walling Refactor some code in qemuMonitorJSONGetCPUModelExpansion to be later used for the comparison and baseline functions. This does not alter any functionality. Signed-off

Re: [libvirt] [PATCH v1 4/4] qemu: monitor: implement query-cpu-model-comparison

2019-04-18 Thread Collin Walling
On 4/17/19 4:19 PM, Daniel Henrique Barboza wrote: On 4/15/19 5:59 PM, Collin Walling wrote: Interfaces with QEMU to compare CPU models. The command takes two CPU models, A and B, that are given a model name and an optional list of CPU features. Through the query-cpu-model-comparison command

Re: [libvirt] [PATCH v1 0/4] RFC CPU Model Comparison via QMP

2019-04-18 Thread Collin Walling
On 4/17/19 4:25 PM, Daniel Henrique Barboza wrote: On 4/15/19 5:59 PM, Collin Walling wrote: This is a preview of the CPU comparison (and soon baseline) patches. Comments are welcome on all aspects, as they will help guide the development of the baseline implementation. The first couple

[libvirt] [PATCH v1 4/4] qemu: monitor: implement query-cpu-model-comparison

2019-04-15 Thread Collin Walling
s a subset of the second (B). If A is the hypervisor CPU and a subset of B (the CPU contained in the XML), then B would not be able to run on this machine and thus we will report that CPU model B is incompatible. Signed-off-by: Collin Walling --- src/qemu/qemu_capabilities.c | 47 +++

  1   2   >