[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PULL 1/9] s390x/sclp: fixup highest CPU address
From: |
Cornelia Huck |
Subject: |
[qemu-s390x] [PULL 1/9] s390x/sclp: fixup highest CPU address |
Date: |
Mon, 22 Jan 2018 13:00:37 +0100 |
From: Christian Borntraeger <address@hidden>
The highest cpu address is not the same as max_cpus. max_cpus
counts from 1 while the cpu address starts at 0.
Signed-off-by: Christian Borntraeger <address@hidden>
Reviewed-by: Jason J. Herne <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
hw/s390x/sclp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c
index 9be0cb80ad..21351ffffc 100644
--- a/hw/s390x/sclp.c
+++ b/hw/s390x/sclp.c
@@ -67,7 +67,7 @@ static void read_SCP_info(SCLPDevice *sclp, SCCB *sccb)
prepare_cpu_entries(sclp, read_info->entries, &cpu_count);
read_info->entries_cpu = cpu_to_be16(cpu_count);
read_info->offset_cpu = cpu_to_be16(offsetof(ReadInfo, entries));
- read_info->highest_cpu = cpu_to_be16(max_cpus);
+ read_info->highest_cpu = cpu_to_be16(max_cpus - 1);
read_info->ibc_val = cpu_to_be32(s390_get_ibc_val());
--
2.13.6
- [qemu-s390x] [PULL 0/9] s390x update, Cornelia Huck, 2018/01/22
- [qemu-s390x] [PULL 1/9] s390x/sclp: fixup highest CPU address,
Cornelia Huck <=
- [qemu-s390x] [PULL 3/9] s390x/sclp: fix missing be conversion, Cornelia Huck, 2018/01/22
- [qemu-s390x] [PULL 2/9] s390x/tcg: implement TEST PROTECTION, Cornelia Huck, 2018/01/22
- [qemu-s390x] [PULL 5/9] s390x: fix storage attributes migration for non-small guests, Cornelia Huck, 2018/01/22
- [qemu-s390x] [PULL 4/9] hw/s390x: Replace fprintf(stderr, "*\n" with qemu_log_mask(), Cornelia Huck, 2018/01/22
- [qemu-s390x] [PULL 6/9] s390x/tcg: fixup TEST PROTECTION, Cornelia Huck, 2018/01/22
- [qemu-s390x] [PULL 7/9] linux-headers: update, Cornelia Huck, 2018/01/22
- [qemu-s390x] [PULL 9/9] s390x/kvm: provide stfle.81, Cornelia Huck, 2018/01/22
- [qemu-s390x] [PULL 8/9] s390x/kvm: Handle bpb feature, Cornelia Huck, 2018/01/22
- Re: [qemu-s390x] [PULL 0/9] s390x update, Peter Maydell, 2018/01/24