Skip to contentSkip to conversation

KVM: s390: introduce defines for control registers

PATCH Cornelia Huck 2 participants 2 messages Apr 30, 2018 – May 2, 2018 1 message not in the archive s390

lore
Share & tools
lore

Cornelia Huck

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 8 lines · On Mon, 30 Apr 2018 17:55:24 +0200 David Hildenbrand <[email protected]> wrote:

In KVM code we use masks to test/set control registers.

Let's define the ones we use in arch/s390/include/asm/ctl_reg.h and replace all occurrences in KVM code.

As we will be needing the define for Clock-comparator sign control soon, let's also add it.

Quoted 8 lines
---
 arch/s390/include/asm/ctl_reg.h | 12 ++++++++++++
 arch/s390/kvm/guestdbg.c        |  2 +-
 arch/s390/kvm/interrupt.c       | 20 ++++++++++----------
 arch/s390/kvm/kvm-s390.c        | 10 +++++++---
 4 files changed, 30 insertions(+), 14 deletions(-)
#2 lore raw
Quoted 8 lines · David Hildenbrand

In KVM code we use masks to test/set control registers.

Let's define the ones we use in arch/s390/include/asm/ctl_reg.h and replace all occurrences in KVM code.

As we will be needing the define for Clock-comparator sign control soon, let's also add it.

Quoted 8 lines
---
 arch/s390/include/asm/ctl_reg.h | 12 ++++++++++++
 arch/s390/kvm/guestdbg.c        |  2 +-
 arch/s390/kvm/interrupt.c       | 20 ++++++++++----------
 arch/s390/kvm/kvm-s390.c        | 10 +++++++---
 4 files changed, 30 insertions(+), 14 deletions(-)

If you need an ack for the non-KVM part: