Re: [PATCH v4 0/2] query-cpu-model-expansion: report deprecated features

2024-05-07 Thread Collin Walling
[...] Thanks everyone! The RFC for the analogous libvirt patches have been posted under the subject: [RFC PATCH 0/1] support deprecated-props from query-cpu-model-expansion Any and all feedback is welcome. -- Regards, Collin

Re: [PATCH v4 0/2] query-cpu-model-expansion: report deprecated features

2024-04-30 Thread Collin Walling
[...] Thank you all for the valuable feedback. Since the QEMU interface seems stable, I will rework my libvirt (not upstream) and post as an RFC. -- Regards, Collin

[PATCH v4 0/2] query-cpu-model-expansion: report deprecated features

2024-04-29 Thread Collin Walling
Changelog v4 - updated cover letter to show example output - deprecated features are now a subset of the full CPU model's list of features - value: 1. no longer listing the deprecated features for CPU models that

[PATCH v4 2/2] target/s390x: flag te and cte as deprecated

2024-04-29 Thread Collin Walling
Add the CONSTRAINT_TRANSACTIONAL_EXE (cte) and TRANSACTIONAL_EXE (te) to the list of deprecated features. Signed-off-by: Collin Walling --- target/s390x/cpu_features.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/s390x/cpu_features.c b/target/s390x/cpu_features.c index

[PATCH v4 1/2] target/s390x: report deprecated-props in cpu-model-expansion reply

2024-04-29 Thread Collin Walling
ey": false, "vxpdeh2": false } } } } It is recommended that s390 guests operate with these features explicitly disabled to ensure compatability with future hardware. Signed-off-by: Collin Walling --- qapi/machine-target.json |

Re: [PATCH v3 1/2] target/s390x: report deprecated-props in cpu-model-expansion reply

2024-04-26 Thread Collin Walling
On 4/26/24 13:35, Collin Walling wrote: > On 4/26/24 04:42, Markus Armbruster wrote: >> Collin Walling writes: >> >>> Retain a list of deprecated features disjoint from any particular >>> CPU model. A query-cpu-model-expansion reply will now provide a list

Re: [PATCH v3 1/2] target/s390x: report deprecated-props in cpu-model-expansion reply

2024-04-26 Thread Collin Walling
On 4/26/24 13:45, David Hildenbrand wrote: > On 26.04.24 19:44, David Hildenbrand wrote: >> On 24.04.24 23:56, Collin Walling wrote: >>> Retain a list of deprecated features disjoint from any particular >>> CPU model. A query-cpu-model-expansion reply will now provide a

Re: [PATCH v3 1/2] target/s390x: report deprecated-props in cpu-model-expansion reply

2024-04-26 Thread Collin Walling
On 4/26/24 04:42, Markus Armbruster wrote: > Collin Walling writes: > >> Retain a list of deprecated features disjoint from any particular >> CPU model. A query-cpu-model-expansion reply will now provide a list of >> properties (i.e. features) that are flagge

Re: [PATCH v2 1/3] cpu-models: add "disable-deprecated-feats" option to cpu model expansion

2024-04-25 Thread Collin Walling
On 4/25/24 02:31, Markus Armbruster wrote: > Collin Walling writes: > >> On 4/24/24 02:19, Markus Armbruster wrote: >>> Collin Walling writes: >>> >>>> This optional parameter for query-cpu-model-expansion enables CPU >>>> model fea

Re: [PATCH v2 2/3] target/s390x: add support for "disable-deprecated-feats" expansion option

2024-04-25 Thread Collin Walling
On 4/25/24 04:10, David Hildenbrand wrote: > On 24.04.24 20:33, Collin Walling wrote: >> On 4/24/24 03:24, David Hildenbrand wrote: >>> On 23.04.24 23:06, Collin Walling wrote: >>>> Retain a list of deprecated features disjoint from any particular >>>> C

Re: [PATCH v2 1/3] cpu-models: add "disable-deprecated-feats" option to cpu model expansion

2024-04-25 Thread Collin Walling
On 4/25/24 09:35, Daniel P. Berrangé wrote: > On Wed, Apr 24, 2024 at 03:12:42PM -0400, Collin Walling wrote: >> On 4/24/24 13:51, Collin Walling wrote: >>> On 4/24/24 04:20, Daniel P. Berrangé wrote: >>>> On Tue, Apr 23, 2024 at 05:06:53PM -0400, Collin Wall

[PATCH v3 2/2] target/s390x: flag te and cte as deprecated

2024-04-24 Thread Collin Walling
Add the CONSTRAINT_TRANSACTIONAL_EXE (cte) and TRANSACTIONAL_EXE (te) to the list of deprecated features. Signed-off-by: Collin Walling --- target/s390x/cpu_features.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/s390x/cpu_features.c b/target/s390x/cpu_features.c index

[PATCH v3 1/2] target/s390x: report deprecated-props in cpu-model-expansion reply

2024-04-24 Thread Collin Walling
ey": false, "vxpdeh2": false } } } } It is recommended that s390 guests operate with these features explicitly disabled to ensure compatability with future hardware. Signed-off-by: Collin Walling --- qapi/machine-target.json

Re: [PATCH v3 0/2] query-cpu-model-expansion: report deprecated features

2024-04-24 Thread Collin Walling
On 4/24/24 17:56, Collin Walling wrote: > > Check patch #2 description for an example output. > I meant patch #1, sorry. Forgot I dropped a patch in this series. -- Regards, Collin

[PATCH v3 0/2] query-cpu-model-expansion: report deprecated features

2024-04-24 Thread Collin Walling
Previous version here (different subject line): https://mail.gnu.org/archive/html/qemu-devel/2024-04/msg03200.html Changelog v3 - removed optional disable-deprecated-feats argument - added deprecated-props array to CpuModelInfo struct - amended cover letter language

Re: [PATCH v2 1/3] cpu-models: add "disable-deprecated-feats" option to cpu model expansion

2024-04-24 Thread Collin Walling
On 4/24/24 13:51, Collin Walling wrote: > On 4/24/24 04:20, Daniel P. Berrangé wrote: >> On Tue, Apr 23, 2024 at 05:06:53PM -0400, Collin Walling wrote: >>> This optional parameter for query-cpu-model-expansion enables CPU >>> model features flagged as deprecated

Re: [PATCH v2 2/3] target/s390x: add support for "disable-deprecated-feats" expansion option

2024-04-24 Thread Collin Walling
On 4/24/24 03:24, David Hildenbrand wrote: > On 23.04.24 23:06, Collin Walling wrote: >> Retain a list of deprecated features disjoint from any particular >> CPU model. When a query-cpu-model-expansion is provided with the >> "disable-deprecated-feats" option set

Re: [PATCH v2 1/3] cpu-models: add "disable-deprecated-feats" option to cpu model expansion

2024-04-24 Thread Collin Walling
On 4/24/24 04:20, Daniel P. Berrangé wrote: > On Tue, Apr 23, 2024 at 05:06:53PM -0400, Collin Walling wrote: >> This optional parameter for query-cpu-model-expansion enables CPU >> model features flagged as deprecated to appear in the resulting >> list of properties. &

Re: [PATCH v2 1/3] cpu-models: add "disable-deprecated-feats" option to cpu model expansion

2024-04-24 Thread Collin Walling
On 4/24/24 02:19, Markus Armbruster wrote: > Collin Walling writes: > >> This optional parameter for query-cpu-model-expansion enables CPU >> model features flagged as deprecated to appear in the resulting >> list of properties. >> >> This commit does not add

[PATCH v2 2/3] target/s390x: add support for "disable-deprecated-feats" expansion option

2024-04-23 Thread Collin Walling
uot;bpb": false, "csske": false, ...} It is recommended that s390 guests operate with these features explicitly disabled to ensure compatability with future hardware. Signed-off-by: Collin Walling --- target/s390x/cpu_features.c | 14 ++ target/s390x/cpu_featur

[PATCH v2 3/3] target/s390x: flag te and cte as deprecated

2024-04-23 Thread Collin Walling
Add the CONSTRAINT_TRANSACTIONAL_EXE (cte) and TRANSACTIONAL_EXE (te) to the list of deprecated features. Signed-off-by: Collin Walling --- target/s390x/cpu_features.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/s390x/cpu_features.c b/target/s390x/cpu_features.c index

[PATCH v2 0/3] query-cpu-model-expansion: add disable-deprecated-feats arg

2024-04-23 Thread Collin Walling
The current implementation of query-cpu-model-expansion is lacking a way to conditionally retrieve CPU models with properties (i.e. features) that are flagged as deprecated set to disabled. To remedy this, a new optional boolean "disable-deprecated-feats" argument has been added to the query.

[PATCH v2 1/3] cpu-models: add "disable-deprecated-feats" option to cpu model expansion

2024-04-23 Thread Collin Walling
this option is not supported. Signed-off-by: Collin Walling --- qapi/machine-target.json | 7 ++- target/arm/arm-qmp-cmds.c| 7 +++ target/i386/cpu-sysemu.c | 7 +++ target/s390x/cpu_models_sysemu.c | 7 +++ 4 files changed, 27 insertions(+), 1 deletion

Re: [PATCH v1 1/2] target/s390x: introduce "host-recommended" option for model expansion

2023-09-14 Thread Collin Walling
On 9/12/23 02:57, David Hildenbrand wrote: > On 11.09.23 22:52, Collin Walling wrote: > > Patch subject is wrong (should contain "static-recommended") > >> Newer S390 machines may drop support for features completely, rendering >> guests operating with old

[PATCH v1 2/2] target/s390x: flag te and cte as deprecated

2023-09-11 Thread Collin Walling
Add the CONSTRAINT_TRANSACTIONAL_EXE (cte) and TRANSACTIONAL_EXE (te) under the list of deprecated features. Signed-off-by: Collin Walling --- target/s390x/cpu_features.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/s390x/cpu_features.c b/target/s390x/cpu_features.c index

[PATCH v1 1/2] target/s390x: introduce "host-recommended" option for model expansion

2023-09-11 Thread Collin Walling
ned within QEMU, and a new "static-recommended" CPU model expansion type has been created to allow a query of the host-model with deprecated features explicitly disabled. Signed-off-by: Collin Walling --- qapi/machine-target.json | 8 +++- target/s390x/cpu_

Re: [RFC PATCH] s390: kvm: reduce frequency of CPU syncs of diag318 info

2021-12-02 Thread Collin Walling
On 11/23/21 01:14, Christian Borntraeger wrote: > > Am 22.11.21 um 23:33 schrieb Collin Walling: >> DIAGNOSE 0318 is invoked only once during IPL. As such, the >> diag318 info will only change once initially and during resets. >> Let's only sync the register t

Re: [PATCH v4] s390: kvm: adjust diag318 resets to retain data

2021-12-02 Thread Collin Walling
On 12/2/21 04:23, Thomas Huth wrote: > On 01/12/2021 19.45, Collin Walling wrote: >> Polite ping. I may have missed if this patch was picked already. Thanks! > > I've already queued it to my s390x-next branch: > >  https://gitlab.com/thuth/qemu/-/commits/s390x-next/ >

Re: [PATCH v4] s390: kvm: adjust diag318 resets to retain data

2021-12-01 Thread Collin Walling
Polite ping. I may have missed if this patch was picked already. Thanks! -- Regards, Collin Stay safe and stay healthy

Re: [RFC PATCH] s390: kvm: reduce frequency of CPU syncs of diag318 info

2021-11-22 Thread Collin Walling
On 11/22/21 17:33, Collin Walling wrote: > DIAGNOSE 0318 is invoked only once during IPL. As such, the > diag318 info will only change once initially and during resets. > Let's only sync the register to convey the info to KVM if and > only if the diag318 info has changed. Only set t

[RFC PATCH] s390: kvm: reduce frequency of CPU syncs of diag318 info

2021-11-22 Thread Collin Walling
. The migration handler will invoke the set_diag318 helper on post_load to ensure the info is set on the destination machine. Signed-off-by: Collin Walling --- target/s390x/kvm/kvm.c | 5 - target/s390x/machine.c | 14 ++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git

Re: [PATCH v3] s390: kvm: adjust diag318 resets to retain data

2021-11-17 Thread Collin Walling
On 11/17/21 02:43, Christian Borntraeger wrote: > Am 09.11.21 um 21:56 schrieb Collin Walling: >> The CPNC portion of the diag 318 data is erroneously reset during an >> initial CPU reset caused by SIGP. Let's go ahead and relocate the >> diag318_info field within the

[PATCH v4] s390: kvm: adjust diag318 resets to retain data

2021-11-17 Thread Collin Walling
in the configuration after the diag318 instruction has been invoked. The s390_machine_reset code already takes care of zeroing the diag318 data on VM resets, which also cover resets caused by diag308. Signed-off-by: Collin Walling Fixes: fabdada9357b ("s390: guest support for diagnose 0x318"

Re: [PATCH v3] s390: kvm: adjust diag318 resets to retain data

2021-11-10 Thread Collin Walling
On 11/10/21 07:42, Janosch Frank wrote: > On 11/9/21 21:56, Collin Walling wrote: >> The CPNC portion of the diag 318 data is erroneously reset during an >> initial CPU reset caused by SIGP. Let's go ahead and relocate the >> diag318_info field within the

[PATCH v3] s390: kvm: adjust diag318 resets to retain data

2021-11-09 Thread Collin Walling
in the configuration after the diag 318 instruction has been invoked. Signed-off-by: Collin Walling Fixes: fabdada9357b ("s390: guest support for diagnose 0x318") Reported-by: Christian Borntraeger --- Changelog: v2 - handler uses run_on_cpu again - reworded commit message slightly

Re: [PATCH v2] s390x: kvm: adjust diag318 resets to retain data

2021-11-09 Thread Collin Walling
On 11/9/21 12:01, Janosch Frank wrote: > On 11/9/21 16:58, Collin Walling wrote: >> On 11/9/21 05:48, Janosch Frank wrote: >>> On 11/9/21 08:32, Christian Borntraeger wrote: >>>> >>>> >>>> Am 08.11.21 um 22:13 schrieb Collin Walling: >>&g

Re: [PATCH v2] s390x: kvm: adjust diag318 resets to retain data

2021-11-09 Thread Collin Walling
On 11/9/21 05:48, Janosch Frank wrote: > On 11/9/21 08:32, Christian Borntraeger wrote: >> >> >> Am 08.11.21 um 22:13 schrieb Collin Walling: >>> The CPNC portion of the diag 318 data is erroneously reset during an >>> initial CPU reset caus

[PATCH v2] s390x: kvm: adjust diag318 resets to retain data

2021-11-08 Thread Collin Walling
in the configuration after the diag 318 instruction has been invoked. Additionally, the diag 318 data reset is handled via the CPU reset code during a clear reset. This means some of the diag 318-specific reset code can now be removed. Signed-off-by: Collin Walling Fixes: fabdada9357b ("s390: guest su

Re: [PATCH] s390x: kvm: adjust diag318 resets to retain data

2021-11-08 Thread Collin Walling
On 11/8/21 12:40, Christian Borntraeger wrote: > > > Am 08.11.21 um 18:02 schrieb Janosch Frank: >> On 11/5/21 23:46, Collin Walling wrote: >>> The CPNC portion of the diag 318 data is erroneously reset during an >>> initial CPU reset caused by

Re: [PATCH] s390x: kvm: adjust diag318 resets to retain data

2021-11-08 Thread Collin Walling
On 11/8/21 12:02, Janosch Frank wrote: > On 11/5/21 23:46, Collin Walling wrote: >> The CPNC portion of the diag 318 data is erroneously reset during an >> initial CPU reset caused by SIGP. Let's go ahead and relocate the >> diag318_info field within the

Re: [PATCH] s390x: kvm: adjust diag318 resets to retain data

2021-11-08 Thread Collin Walling
On 11/8/21 03:07, Christian Borntraeger wrote: > > > Am 05.11.21 um 23:46 schrieb Collin Walling: >> The CPNC portion of the diag 318 data is erroneously reset during an >> initial CPU reset caused by SIGP. Let's go ahead and relocate the >> diag318_info field with

Re: [PATCH] s390x: kvm: adjust diag318 resets to retain data

2021-11-05 Thread Collin Walling
On 11/5/21 18:46, Collin Walling wrote: > The CPNC portion of the diag 318 data is erroneously reset during an > initial CPU reset caused by SIGP. Let's go ahead and relocate the > diag318_info field within the CPUS390XState struct such that it is > only zeroed during a clear res

[PATCH] s390x: kvm: adjust diag318 resets to retain data

2021-11-05 Thread Collin Walling
in the configuration after the diag 318 instruction has been invoked by the kernel. Additionally, the diag 318 data reset is handled via the CPU reset code. The set_diag318 code can be merged into the handler function and the helper functions can consequently be removed. Signed-off-by: Collin Walling --- hw

Re: [PATCH v3] s390/kvm: fix diag318 propagation and reset functionality

2020-11-16 Thread Collin Walling
On 11/16/20 7:12 AM, Cornelia Huck wrote: > On Fri, 13 Nov 2020 17:10:22 -0500 > Collin Walling wrote: > > [please remember to put qemu-devel on cc: as well] > >> The Control Program Name Code (CPNC) portion of the diag318 >> info must be set within

Re: [PATCH v2 0/2] s390x: pv: Diag318 fixes

2020-10-22 Thread Collin Walling
eletions(-) > Thanks for correcting this. You've certainly received plenty of reviews and ack's, but since this touches code I worked on: Reviewed-by: Collin Walling -- Regards, Collin Stay safe and stay healthy

Re: [PATCH v6 0/8] s390: Extended-Length SCCB & DIAGNOSE 0x318

2020-09-25 Thread Collin Walling
On 9/16/20 1:15 PM, Collin Walling wrote: > On 9/16/20 11:53 AM, Cornelia Huck wrote: > > [...] > >>> >> >> Thanks, applied. >> >> > > Thanks Conny. > > Much appreciated for everyone's patience and review. The only thing I'd > like t

Re: [PATCH v6 0/8] s390: Extended-Length SCCB & DIAGNOSE 0x318

2020-09-16 Thread Collin Walling
On 9/16/20 11:53 AM, Cornelia Huck wrote: [...] >> > > Thanks, applied. > > Thanks Conny. Much appreciated for everyone's patience and review. The only thing I'd like to hold out on for now is for someone to take a peek at patch #3 with respect to the protected virtualization stuff. I don't

Re: [PATCH v6 2/8] s390/sclp: rework sclp boundary checks

2020-09-16 Thread Collin Walling
On 9/16/20 3:10 AM, Thomas Huth wrote: > On 15/09/2020 21.44, Collin Walling wrote: >> Rework the SCLP boundary check to account for different SCLP commands >> (eventually) allowing different boundary sizes. >> >> Signed-off-by: Collin Walling >> Acked-by: Janosc

Re: [PATCH v6 7/8] s390/kvm: header sync for diag318

2020-09-16 Thread Collin Walling
On 9/16/20 11:52 AM, Cornelia Huck wrote: > On Tue, 15 Sep 2020 15:44:15 -0400 > Collin Walling wrote: > >> Signed-off-by: Collin Walling >> --- >> linux-headers/asm-s390/kvm.h | 7 +-- >> linux-headers/linux/kvm.h| 1 + >> 2 files changed, 6

[PATCH v6 6/8] s390/sclp: add extended-length sccb support for kvm guest

2020-09-15 Thread Collin Walling
ilable CPU entries after migration (such as during re-ipl). Signed-off-by: Collin Walling Acked-by: Cornelia Huck Reviewed-by: Thomas Huth --- hw/s390x/sclp.c | 43 + include/hw/s390x/sclp.h | 1 + target/s390x/cpu_features_def.

[PATCH v6 7/8] s390/kvm: header sync for diag318

2020-09-15 Thread Collin Walling
Signed-off-by: Collin Walling --- linux-headers/asm-s390/kvm.h | 7 +-- linux-headers/linux/kvm.h| 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h index 0138ccb0d8..f053b8304a 100644 --- a/linux-headers/asm

[PATCH v6 2/8] s390/sclp: rework sclp boundary checks

2020-09-15 Thread Collin Walling
Rework the SCLP boundary check to account for different SCLP commands (eventually) allowing different boundary sizes. Signed-off-by: Collin Walling Acked-by: Janosch Frank Reviewed-by: Cornelia Huck --- hw/s390x/sclp.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion

[PATCH v6 4/8] s390/sclp: check sccb len before filling in data

2020-09-15 Thread Collin Walling
a macro. Fixes: 832be0d8a3bb ("s390x: sclp: Report insufficient SCCB length") Signed-off-by: Collin Walling Reviewed-by: Janosch Frank Reviewed-by: David Hildenbrand Reviewed-by: Cornelia Huck Reviewed-by: Thomas Huth --- hw/s390x/sclp.c | 26 ++ 1 file c

[PATCH v6 5/8] s390/sclp: use cpu offset to locate cpu entries

2020-09-15 Thread Collin Walling
away. Read CPU Info is unlikely to ever change, so let's not bother accounting for the offset there. Signed-off-by: Collin Walling Reviewed-by: Thomas Huth Reviewed-by: Cornelia Huck --- hw/s390x/sclp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/s390x/sclp.c b

[PATCH v6 1/8] s390/sclp: get machine once during read scp/cpu info

2020-09-15 Thread Collin Walling
Functions within read scp/cpu info will need access to the machine state. Let's make a call to retrieve the machine state once and pass the appropriate data to the respective functions. Signed-off-by: Collin Walling Reviewed-by: David Hildenbrand Reviewed-by: Thomas Huth Reviewed-by: Janosch

[PATCH v6 8/8] s390: guest support for diagnose 0x318

2020-09-15 Thread Collin Walling
an extended-length SCCB. This feature is not supported in protected virtualization mode. Signed-off-by: Collin Walling Acked-by: Janosch Frank --- hw/s390x/sclp.c | 5 include/hw/s390x/sclp.h | 8 ++ target/s390x/cpu.h | 2 ++ target

[PATCH v6 0/8] s390: Extended-Length SCCB & DIAGNOSE 0x318

2020-09-15 Thread Collin Walling
Changelog: v6 • sccb_verify_boundary function: • s/len/sccb_len • removed the endian check/conversion of the sccb_len from within this function (caller is now responsible) • proper endian conversion when using header length to malloc • use g_autofree

[PATCH v6 3/8] s390/sclp: read sccb from mem based on provided length

2020-09-15 Thread Collin Walling
length is sufficent to store a full response and that the length does not cross any explicitly-set boundaries. Signed-off-by: Collin Walling --- hw/s390x/event-facility.c | 2 +- hw/s390x/sclp.c | 55 ++- include/hw/s390x/sclp.h | 2 +- 3 files

Re: [PATCH v5 8/8] s390: guest support for diagnose 0x318

2020-09-15 Thread Collin Walling
On 9/11/20 11:08 AM, Thomas Huth wrote: > On 10/09/2020 11.36, Collin Walling wrote: >> DIAGNOSE 0x318 (diag318) is an s390 instruction that allows the storage >> of diagnostic information that is collected by the firmware in the case >> of hardware/firmware service event

Re: [PATCH v5 3/8] s390/sclp: read sccb from mem based on provided length

2020-09-15 Thread Collin Walling
On 9/12/20 2:28 AM, Thomas Huth wrote: > On 11/09/2020 20.16, Collin Walling wrote: >> On 9/10/20 1:56 PM, Collin Walling wrote: >>> On 9/10/20 1:50 PM, Thomas Huth wrote: >>>> On 10/09/2020 11.36, Collin Walling wrote: >>>>> The header contained wi

Re: [PATCH v5 3/8] s390/sclp: read sccb from mem based on provided length

2020-09-11 Thread Collin Walling
On 9/10/20 1:56 PM, Collin Walling wrote: > On 9/10/20 1:50 PM, Thomas Huth wrote: >> On 10/09/2020 11.36, Collin Walling wrote: >>> The header contained within the SCCB passed to the SCLP service call >>> contains the actual length of the SCCB. Instead of allo

Re: [PATCH v5 6/8] s390/sclp: add extended-length sccb support for kvm guest

2020-09-11 Thread Collin Walling
On 9/11/20 9:54 AM, Thomas Huth wrote: > On 11/09/2020 15.41, Thomas Huth wrote: >> On 10/09/2020 11.36, Collin Walling wrote: >>> As more features and facilities are added to the Read SCP Info (RSCPI) >>> response, more space is required to store them. The space

Re: [PATCH v5 2/8] s390/sclp: rework sclp boundary checks

2020-09-11 Thread Collin Walling
On 9/11/20 6:24 AM, Cornelia Huck wrote: > On Thu, 10 Sep 2020 19:45:01 +0200 > Thomas Huth wrote: > >> On 10/09/2020 11.36, Collin Walling wrote: >>> Rework the SCLP boundary check to account for different SCLP commands >>> (eventually) allowing different b

Re: [PATCH v5 3/8] s390/sclp: read sccb from mem based on provided length

2020-09-10 Thread Collin Walling
On 9/10/20 1:50 PM, Thomas Huth wrote: > On 10/09/2020 11.36, Collin Walling wrote: >> The header contained within the SCCB passed to the SCLP service call >> contains the actual length of the SCCB. Instead of allocating a static >> 4K size for the work sccb, let's allo

[PATCH v5 8/8] s390: guest support for diagnose 0x318

2020-09-10 Thread Collin Walling
an extended-length SCCB. This feature is not supported in protected virtualization mode. Signed-off-by: Collin Walling Acked-by: Janosch Frank --- hw/s390x/sclp.c | 5 + include/hw/s390x/sclp.h | 3 +++ target/s390x/cpu.h | 2 ++ target

[PATCH v5 6/8] s390/sclp: add extended-length sccb support for kvm guest

2020-09-10 Thread Collin Walling
ilable CPU entries after migration (such as during re-ipl). Signed-off-by: Collin Walling --- hw/s390x/sclp.c | 43 + include/hw/s390x/sclp.h | 1 + target/s390x/cpu_features_def.h.inc | 1 + target/s390x/gen-features.c | 1

[PATCH v5 4/8] s390/sclp: check sccb len before filling in data

2020-09-10 Thread Collin Walling
a macro. Fixes: 832be0d8a3bb ("s390x: sclp: Report insufficient SCCB length") Signed-off-by: Collin Walling Reviewed-by: Janosch Frank Reviewed-by: David Hildenbrand Reviewed-by: Cornelia Huck Reviewed-by: Thomas Huth --- hw/s390x/sclp.c | 26 ++ 1 file c

[PATCH v5 3/8] s390/sclp: read sccb from mem based on provided length

2020-09-10 Thread Collin Walling
length is sufficent to store a full response and that the length does not cross any explicitly-set boundaries. Signed-off-by: Collin Walling --- hw/s390x/event-facility.c | 2 +- hw/s390x/sclp.c | 58 ++- include/hw/s390x/sclp.h | 2 +- 3 files

[PATCH v5 7/8] s390/kvm: header sync for diag318

2020-09-10 Thread Collin Walling
Signed-off-by: Collin Walling --- linux-headers/asm-s390/kvm.h | 7 +-- linux-headers/linux/kvm.h| 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h index 0138ccb0d8..f053b8304a 100644 --- a/linux-headers/asm

[PATCH v5 1/8] s390/sclp: get machine once during read scp/cpu info

2020-09-10 Thread Collin Walling
Functions within read scp/cpu info will need access to the machine state. Let's make a call to retrieve the machine state once and pass the appropriate data to the respective functions. Signed-off-by: Collin Walling Reviewed-by: David Hildenbrand Reviewed-by: Thomas Huth Reviewed-by: Janosch

[PATCH v5 2/8] s390/sclp: rework sclp boundary checks

2020-09-10 Thread Collin Walling
Rework the SCLP boundary check to account for different SCLP commands (eventually) allowing different boundary sizes. Signed-off-by: Collin Walling Acked-by: Janosch Frank Reviewed-by: Cornelia Huck --- hw/s390x/sclp.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion

[PATCH v5 5/8] s390/sclp: use cpu offset to locate cpu entries

2020-09-10 Thread Collin Walling
away. Read CPU Info is unlikely to ever change, so let's not bother accounting for the offset there. Signed-off-by: Collin Walling --- hw/s390x/sclp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c index 12829bdd05..803fdd5ed4 100644

[PATCH v5 0/8] s390: Extended-Length SCCB & DIAGNOSE 0x318

2020-09-10 Thread Collin Walling
Janosch, Thomas, Conny: I've removed your r-b's from patch #3 since I added some g_mallocs in place and I'd like to make sure things are done properly there (explained in changelog, but let me know if further explanation is necessary). Janosch, please let me know if the changes to #3 are safe

Re: [PATCH v4 0/8] s390: Extended-Length SCCB & DIAGNOSE 0x318

2020-09-10 Thread Collin Walling
On 9/10/20 2:38 AM, Cornelia Huck wrote: > On Wed, 9 Sep 2020 14:13:55 -0400 > Collin Walling wrote: > >> Has this been merged yet? There is one patch that I neglected to include >> in this series (I didn't realize it until now) that properly sets the >> SCCB size

Re: [PATCH v4 0/8] s390: Extended-Length SCCB & DIAGNOSE 0x318

2020-09-09 Thread Collin Walling
On 9/9/20 5:43 AM, Cornelia Huck wrote: > On Wed, 9 Sep 2020 10:46:23 +0200 > Cornelia Huck wrote: > >> On Wed, 9 Sep 2020 09:54:40 +0200 >> Christian Borntraeger wrote: >> >>> On 16.07.20 14:02, Cornelia Huck wrote: >>>> On Wed, 15 Ju

Re: [PATCH v4 3/8] s390/sclp: rework sclp boundary and length checks

2020-07-24 Thread Collin Walling
On 7/23/20 2:26 AM, Cornelia Huck wrote: > On Tue, 21 Jul 2020 14:40:14 -0400 > Collin Walling wrote: > >> On 7/21/20 4:41 AM, David Hildenbrand wrote: > >>> The options I would support are >>> >>> 1. "sccb_boundary_is_valid" which returns

Re: [PATCH v4 3/8] s390/sclp: rework sclp boundary and length checks

2020-07-21 Thread Collin Walling
On 7/21/20 4:41 AM, David Hildenbrand wrote: > [...] > +switch (code & SCLP_CMD_CODE_MASK) { +default: +if (sccb_max_addr < sccb_boundary) { +return true; +} +} >>> >>> ^ what is that? >>> >>> if ((code &

Re: [PATCH v4 3/8] s390/sclp: rework sclp boundary and length checks

2020-07-20 Thread Collin Walling
On 7/20/20 4:17 AM, David Hildenbrand wrote: > On 24.06.20 22:23, Collin Walling wrote: >> Rework the SCLP boundary check to account for different SCLP commands >> (eventually) allowing different boundary sizes. >> >> Move the length check code into a separate funct

Re: [PATCH v4 4/8] s390/sclp: read sccb from mem based on sccb length

2020-07-20 Thread Collin Walling
On 7/20/20 4:19 AM, David Hildenbrand wrote: > On 24.06.20 22:23, Collin Walling wrote: >> The header of the SCCB contains the actual length of the SCCB. Instead >> of using a static 4K size, let's allow for a variable size determined >> by the value set in the head

Re: [PATCH v4 0/8] s390: Extended-Length SCCB & DIAGNOSE 0x318

2020-07-15 Thread Collin Walling
On 7/15/20 12:04 PM, Cornelia Huck wrote: > On Wed, 15 Jul 2020 11:36:35 -0400 > Collin Walling wrote: > >> Polite ping. Patches have been sitting on the list for a few weeks now, >> and it doesn't look like any further changes are requested (hopefully I >> didn't mis

Re: [PATCH v4 0/8] s390: Extended-Length SCCB & DIAGNOSE 0x318

2020-07-15 Thread Collin Walling
Polite ping. Patches have been sitting on the list for a few weeks now, and it doesn't look like any further changes are requested (hopefully I didn't miss something). Thanks for everyone's time and patience. Stay safe out there. - Collin

Re: [PATCH v4 6/8] s390/sclp: add extended-length sccb support for kvm guest

2020-07-15 Thread Collin Walling
On 6/26/20 6:01 AM, Cornelia Huck wrote: > On Wed, 24 Jun 2020 16:23:10 -0400 > Collin Walling wrote: > >> As more features and facilities are added to the Read SCP Info (RSCPI) >> response, more space is required to store them. The space used to store >> these new fea

[PATCH v4 3/8] s390/sclp: rework sclp boundary and length checks

2020-06-24 Thread Collin Walling
the CPU entries should begin). The format of read CPU info is unlikely to change in the future, so we do not require a separate function to calculate its length. Signed-off-by: Collin Walling Acked-by: Janosch Frank Reviewed-by: Cornelia Huck --- hw/s390x/sclp.c | 54

[PATCH v4 0/8] s390: Extended-Length SCCB & DIAGNOSE 0x318

2020-06-24 Thread Collin Walling
Changelog: v4 • added r-b's and ack's (thanks, everyone!) • renamed boundary and length function • updated header sync to reflect a change discussed in the respective KVM patches • s/data_len/offset_cpu • added /* fallthrough */ comment in boundary check

[PATCH v4 6/8] s390/sclp: add extended-length sccb support for kvm guest

2020-06-24 Thread Collin Walling
ilable CPU entries after migration (such as during re-ipl). Signed-off-by: Collin Walling --- hw/s390x/sclp.c | 24 +++- include/hw/s390x/sclp.h | 1 + target/s390x/cpu_features_def.inc.h | 1 + target/s390x/gen-features.c | 1 + ta

[PATCH v4 1/8] s390/sclp: get machine once during read scp/cpu info

2020-06-24 Thread Collin Walling
Functions within read scp/cpu info will need access to the machine state. Let's make a call to retrieve the machine state once and pass the appropriate data to the respective functions. Signed-off-by: Collin Walling Reviewed-by: David Hildenbrand Reviewed-by: Thomas Huth Reviewed-by: Janosch

[PATCH v4 2/8] s390/sclp: check sccb len before filling in data

2020-06-24 Thread Collin Walling
The SCCB must be checked for a sufficient length before it is filled with any data. If the length is insufficient, then the SCLP command is suppressed and the proper response code is set in the SCCB header. Fixes: 832be0d8a3bb ("s390x: sclp: Report insufficient SCCB length") Signed-off-

[PATCH v4 4/8] s390/sclp: read sccb from mem based on sccb length

2020-06-24 Thread Collin Walling
does not cross any explicitly-set boundaries. Signed-off-by: Collin Walling Reviewed-by: Thomas Huth Reviewed-by: Janosch Frank Reviewed-by: Cornelia Huck --- hw/s390x/sclp.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c

[PATCH v4 8/8] s390: guest support for diagnose 0x318

2020-06-24 Thread Collin Walling
an extended-length SCCB. This feature is not supported in protected virtualization mode. Signed-off-by: Collin Walling Acked-by: Janosch Frank --- hw/s390x/sclp.c | 5 + include/hw/s390x/sclp.h | 3 +++ target/s390x/cpu.h | 2 ++ target

[PATCH v4 5/8] s390/sclp: use cpu offset to locate cpu entries

2020-06-24 Thread Collin Walling
of when Read SCP Info inevitably introduces new bytes that push the start of the CPUEntry field further away. Read CPU Info is unlikely to ever change, so let's not bother accounting for the offset there. Signed-off-by: Collin Walling Reviewed-by: Thomas Huth Reviewed-by: Janosch Frank Reviewed

[PATCH v4 7/8] s390/kvm: header sync for diag318

2020-06-24 Thread Collin Walling
Signed-off-by: Collin Walling --- linux-headers/asm-s390/kvm.h | 7 +-- linux-headers/linux/kvm.h| 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h index 0138ccb0d8..f053b8304a 100644 --- a/linux-headers/asm

Re: [PATCH v3 6/8] s390/sclp: add extended-length sccb support for kvm guest

2020-06-24 Thread Collin Walling
On 6/24/20 8:55 AM, Cornelia Huck wrote: > On Wed, 24 Jun 2020 14:40:58 +0200 > Thomas Huth wrote: > >> On 24/06/2020 14.36, Cornelia Huck wrote: >>> On Thu, 18 Jun 2020 18:22:56 -0400 >>> Collin Walling wrote: >>> >>>> As more feature

Re: [PATCH v3 3/8] s390/sclp: rework sclp boundary and length checks

2020-06-22 Thread Collin Walling
On 6/22/20 11:22 AM, Christian Borntraeger wrote: > > > On 19.06.20 00:22, Collin Walling wrote: >> Rework the SCLP boundary check to account for different SCLP commands >> (eventually) allowing different boundary sizes. >> >> Move the length check code into a

[PATCH v3 6/8] s390/sclp: add extended-length sccb support for kvm guest

2020-06-18 Thread Collin Walling
ilable CPU entries after migration (such as during re-ipl). Signed-off-by: Collin Walling --- hw/s390x/sclp.c | 21 - include/hw/s390x/sclp.h | 1 + target/s390x/cpu_features_def.inc.h | 1 + target/s390x/gen-features.c | 1 + target/s

[PATCH v3 5/8] s390/sclp: use cpu offset to locate cpu entries

2020-06-18 Thread Collin Walling
of when Read SCP Info inevitably introduces new bytes that push the start of the CPUEntry field further away. Read CPU Info is unlikely to ever change, so let's not bother accounting for the offset there. Signed-off-by: Collin Walling Reviewed-by: Thomas Huth --- hw/s390x/sclp.c | 3 ++- 1 file

[PATCH v3 8/8] s390: guest support for diagnose 0x318

2020-06-18 Thread Collin Walling
an extended-length SCCB. This feature is not supported in protected virtualization mode. Signed-off-by: Collin Walling --- hw/s390x/sclp.c | 5 + include/hw/s390x/sclp.h | 3 +++ target/s390x/cpu.h | 3 ++- target/s390x/cpu_features.h

[PATCH v3 7/8] s390/kvm: header sync for diag318

2020-06-18 Thread Collin Walling
Signed-off-by: Collin Walling --- linux-headers/asm-s390/kvm.h | 5 - linux-headers/linux/kvm.h| 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h index 0138ccb0d8..98665dff19 100644 --- a/linux-headers/asm-s390

[PATCH v3 1/8] s390/sclp: get machine once during read scp/cpu info

2020-06-18 Thread Collin Walling
Functions within read scp/cpu info will need access to the machine state. Let's make a call to retrieve the machine state once and pass the appropriate data to the respective functions. Signed-off-by: Collin Walling Reviewed-by: David Hildenbrand Reviewed-by: Thomas Huth --- hw/s390x/sclp.c

[PATCH v3 4/8] s390/sclp: read sccb from mem based on sccb length

2020-06-18 Thread Collin Walling
does not cross any explicitly-set boundaries. Signed-off-by: Collin Walling Reviewed-by: Thomas Huth --- hw/s390x/sclp.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c index 0710138f91..772b7b3b01 100644 --- a/hw/s390x/sclp.c

[PATCH v3 3/8] s390/sclp: rework sclp boundary and length checks

2020-06-18 Thread Collin Walling
the CPU entries should begin). The format of read CPU info is unlikely to change in the future, so we do not require a separate function to calculate its length. Signed-off-by: Collin Walling --- hw/s390x/sclp.c | 59 - 1 file changed, 49

  1   2   3   >