mbox series

[kvm-unit-tests,v3,0/2] lib: s390x: add PSW and PSW_WITH_CUR_MASK macros

Message ID 20221130154038.70492-1-imbrenda@linux.ibm.com (mailing list archive)
Headers show
Series lib: s390x: add PSW and PSW_WITH_CUR_MASK macros | expand

Message

Claudio Imbrenda Nov. 30, 2022, 3:40 p.m. UTC
Since a lot of code starts new CPUs using the current PSW mask, add two
macros to streamline the creation of generic PSWs and PSWs with the
current program mask.

Update the existing code to use the newly introduced macros.


v2->v3
* rename PSW_CUR_MASK to PSW_WITH_CUR_MASK

Claudio Imbrenda (2):
  lib: s390x: add PSW and PSW_WITH_CUR_MASK macros
  s390x: use the new PSW and PSW_WITH_CUR_MASK macros

 lib/s390x/asm/arch_def.h |  4 +++
 s390x/adtl-status.c      | 24 +++---------------
 s390x/firq.c             |  5 +---
 s390x/migration.c        |  6 +----
 s390x/skrf.c             |  7 +-----
 s390x/smp.c              | 53 +++++++++-------------------------------
 s390x/uv-host.c          |  5 +---
 7 files changed, 23 insertions(+), 81 deletions(-)

Comments

Janosch Frank Dec. 1, 2022, 10:09 a.m. UTC | #1
On 11/30/22 16:40, Claudio Imbrenda wrote:
> Since a lot of code starts new CPUs using the current PSW mask, add two
> macros to streamline the creation of generic PSWs and PSWs with the
> current program mask.
> 
> Update the existing code to use the newly introduced macros.

Series:
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>

> 
> 
> v2->v3
> * rename PSW_CUR_MASK to PSW_WITH_CUR_MASK
> 
> Claudio Imbrenda (2):
>    lib: s390x: add PSW and PSW_WITH_CUR_MASK macros
>    s390x: use the new PSW and PSW_WITH_CUR_MASK macros
> 
>   lib/s390x/asm/arch_def.h |  4 +++
>   s390x/adtl-status.c      | 24 +++---------------
>   s390x/firq.c             |  5 +---
>   s390x/migration.c        |  6 +----
>   s390x/skrf.c             |  7 +-----
>   s390x/smp.c              | 53 +++++++++-------------------------------
>   s390x/uv-host.c          |  5 +---
>   7 files changed, 23 insertions(+), 81 deletions(-)
>