s390x update
Peter,
here is the non-tcg subset of the s390x updates.
The following changes since commit 4300b7c2cd9f3f273804e8cca325842ccb93b1ad:
Merge remote-tracking branch 'remotes/cleber/tags/python-next-pull-request' into staging (2019-09-20 17:28:43 +0100)
are available in the Git repository at:
git://github.com/borntraeger/qemu.git tags/s390x-20190923
for you to fetch changes up to 7505deca0bfa859136ec6419dbafc504f22fcac2:
s390x/cpumodel: Add the z15 name to the description of gen15a (2019-09-23 09:15:28 +0200)
----------------------------------------------------------------
- bugfixes in ccw bios
- gen15a is called z15
- officially require a 3.15 kernel or later for kvm
----------------------------------------------------------------
Christian Borntraeger (2):
Merge tag 's390-ccw-bios-2019-09-18' of https://gitlab.com/huth/qemu into s390-next s390x/cpumodel: Add the z15 name to the description of gen15a
Thomas Huth (3):
pc-bios/s390-ccw: Do not pre-initialize empty array pc-bios/s390-ccw: Rebuild the s390-netboot.img firmware image s390x/kvm: Officially require at least kernel 3.15
Yifan Luo (1):
pc-bios/s390-ccw/net: fix a possible memory leak in get_uuid()
hw/intc/s390_flic_kvm.c | 6 ------ hw/intc/trace-events | 1 - pc-bios/s390-ccw/main.c | 2 +- pc-bios/s390-ccw/netmain.c | 1 + pc-bios/s390-netboot.img | Bin 67232 -> 67232 bytes target/s390x/cpu_models.c | 2 +- target/s390x/kvm.c | 7 +++++++ 7 files changed, 10 insertions(+), 9 deletions(-)
[PULL 1/5] pc-bios/s390-ccw: Do not pre-initialize empty array
From: Thomas Huth <[email protected]>
Since commit 339686a358b11a231aa5b6d1424e7a1460d7f277 ("pc-bios/s390-ccw:
zero out bss section"), we are clearing now the BSS in start.S, so there is no need to pre-initialize the loadparm_str array with zeroes anymore.
--- pc-bios/s390-ccw/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
pc-bios/s390-ccw/main.c +1 -1
@@ -17,7 +17,7 @@ char stack[PAGE_SIZE * 8] __attribute__((__aligned__(PAGE_SIZE)));static SubChannelId blk_schid = { .one =1 }; -static char loadparm_str[LOADPARM_LEN +1 ] = {0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 }; +static char loadparm_str[LOADPARM_LEN +1 ];QemuIplParameters qipl; IplParameterBlock iplb __attribute__((__aligned__(PAGE_SIZE)));static bool have_iplb;
Signature · 1 line
2.21.0
[PULL 2/5] pc-bios/s390-ccw/net: fix a possible memory leak in get_uuid()
In reply to Christian BorntraegerFrom: Yifan Luo <[email protected]>
There is a possible memory leak in get_uuid(). Should free allocated mem before
return NULL.
Message-Id: <[email protected]>
--- pc-bios/s390-ccw/netmain.c | 1 + 1 file changed, 1 insertion(+)
pc-bios/s390-ccw/netmain.c +1 -0
@@ -269,6 +269,7 @@ static const char *get_uuid(void) : "d" (r0), "d" (r1), [addr] "a" (buf) : "cc", "memory");if (cc) { +free (mem);return NULL ; }
Signature · 1 line
2.21.0
[PULL 5/5] s390x/cpumodel: Add the z15 name to the description of gen15a
In reply to Christian BorntraegerWe now know that gen15a is called z15.
--- target/s390x/cpu_models.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_models.c +1 -1
@@ -84,7 +84,7 @@ static S390CPUDef s390_cpu_defs[] = {CPUDEF_INIT (0x3906 ,14 ,1 ,47 ,0x08000000U ,"z14" ,"IBM z14 GA1" ),CPUDEF_INIT (0x3906 ,14 ,2 ,47 ,0x08000000U ,"z14.2" ,"IBM z14 GA2" ),CPUDEF_INIT (0x3907 ,14 ,1 ,47 ,0x08000000U ,"z14ZR1" ,"IBM z14 Model ZR1 GA1" ), -CPUDEF_INIT (0x8561 ,15 ,1 ,47 ,0x08000000U ,"gen15a" ,"IBM 8561 GA1" ), +CPUDEF_INIT (0x8561 ,15 ,1 ,47 ,0x08000000U ,"gen15a" ,"IBM z15 GA1" ), CPUDEF_INIT(0x8562, 15, 1, 47, 0x08000000U, "gen15b", "IBM 8562 GA1"), };
Signature · 1 line
2.21.0
[PULL 4/5] s390x/kvm: Officially require at least kernel 3.15
In reply to Christian BorntraegerFrom: Thomas Huth <[email protected]>
Since QEMU v2.10, the KVM acceleration does not work on older kernels anymore since the code accidentally requires the KVM_CAP_DEVICE_CTRL capability now - it should have been optional instead. Instead of fixing the bug, we asked in the ChangeLog of QEMU 2.11 - 3.0 that people should speak up if they still need support of QEMU running with KVM on older kernels, but seems like nobody really complained. Thus let's make this official now and turn it into a proper error message, telling the users to use at least kernel 3.15 now.
Message-Id: <[email protected]>
--- hw/intc/s390_flic_kvm.c | 6 ------ hw/intc/trace-events | 1 - target/s390x/kvm.c | 7 +++++++ 3 files changed, 7 insertions(+), 7 deletions(-)
hw/intc/s390_flic_kvm.c +0 -6
@@ -589,12 +589,6 @@ static void kvm_s390_flic_realize(DeviceState *dev, Error **errp) goto fail; } flic_state->fd =-1 ; -if (!kvm_check_extension (kvm_state,KVM_CAP_DEVICE_CTRL )) { -error_setg_errno (&errp_local, errno,"KVM is missing capability" -" KVM_CAP_DEVICE_CTRL" ); -trace_flic_no_device_api (errno); - goto fail; - } cd.type =KVM_DEV_TYPE_FLIC ; ret =kvm_vm_ioctl (kvm_state,KVM_CREATE_DEVICE , &cd);
hw/intc/trace-events +0 -1
@@ -75,7 +75,6 @@ xics_ics_simple_eoi(int nr) "ics_eoi: irq 0x%x" # s390_flic_kvm.c flic_create_device(int err) "flic: create device failed %d" -flic_no_device_api(int err) "flic: no Device Contral API support %d" flic_reset_failed(int err) "flic: reset failed %d" # s390_flic.c
target/s390x/kvm.c +7 -0
@@ -316,6 +316,13 @@ int kvm_arch_init(MachineState *ms, KVMState *s)MachineClass *mc =MACHINE_GET_CLASS (ms); mc->default_cpu_type =S390_CPU_TYPE_NAME ("host" ); + +if (!kvm_check_extension (kvm_state,KVM_CAP_DEVICE_CTRL )) { +error_report ("KVM is missing capability KVM_CAP_DEVICE_CTRL - " +"please use kernel 3.15 or newer" ); +return -1 ; + } + cap_sync_regs =kvm_check_extension (s,KVM_CAP_SYNC_REGS ); cap_async_pf =kvm_check_extension (s,KVM_CAP_ASYNC_PF ); cap_mem_op =kvm_check_extension (s,KVM_CAP_S390_MEM_OP );
Signature · 1 line
2.21.0
[PULL 3/5] pc-bios/s390-ccw: Rebuild the s390-netboot.img firmware image
In reply to Christian BorntraegerFrom: Thomas Huth <[email protected]>
The new image now contains the "pc-bios/s390-ccw/net: fix a possible memory leak in get_uuid()" patch.
--- pc-bios/s390-netboot.img | Bin 67232 -> 67232 bytes 1 file changed, 0 insertions(+), 0 deletions(-)
pc-bios/s390-netboot.img binary +0 -0
Signature · 1 line
2.21.0
Peter Maydell
AppliedQuoted 14 lines · Christian Borntraeger
Peter,
here is the non-tcg subset of the s390x updates.
The following changes since commit
4300b7c2cd9f3f273804e8cca325842ccb93b1ad:Merge remote-tracking branch 'remotes/cleber/tags/python-next-pull-request' into staging (2019-09-20 17:28:43 +0100)
are available in the Git repository at:
git://github.com/borntraeger/qemu.gittags/s390x-20190923
Quoted 9 lines
for you to fetch changes up to
7505deca0bfa859136ec6419dbafc504f22fcac2:s390x/cpumodel: Add the z15 name to the description of gen15a (2019-09-23 09:15:28 +0200)
----------------------------------------------------------------
- bugfixes in ccw bios
- gen15a is called z15
- officially require a 3.15 kernel or later for kvm
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2
for any user-visible changes.
-- PMM