Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp104851ybj; Mon, 4 May 2020 17:02:13 -0700 (PDT) X-Google-Smtp-Source: APiQypLgAjICdxMg+JBZO04zaBJ1pIuGn/Ym+WiNWYiiE+I/bPEGXnQUQ+Bb/dFkrCvDOMBjKonl X-Received: by 2002:a05:6402:3076:: with SMTP id bs22mr515653edb.112.1588636933208; Mon, 04 May 2020 17:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588636933; cv=none; d=google.com; s=arc-20160816; b=LiAcY289cu03Yd802VUODAs5tYOhIdRLG9Ys5AMmcKmSRHjaTYb6eaP1SrBtCQLamv uocEuM22tUlVfQN2IzkLpefdSktIYt8BveJsv4fVtkR6MBUoI2v2VsmGLicQb0CKVsmp glaSlTX6MES5Yh5q9wTkzbZgAwoScRZpdG+G6q3AkuqmimDzNKRt/KrcOA0vGAdKpcAn CBdTxG8GlMkZYOPG0cFUjXTmAwyGLabOUjfIfaSQbNnzb7ukIytBJV5AZvhXYmbUGzHX jlsSXV5lXBvvl9nFh1ywdr1OFKoA2h//UAU473+ACrn3R2T5zwHaGrWmsvNkiYinxAUa c3fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=WX1M6VeqSA9fkDJVIpinJdPOshocPJKtEbVXI5aATJ0=; b=Z1SKkHwLawxF8CdiKfG6mi3V93pEKEMl2/gj2yOf9UU8hvEiWrVUAYmM/Pk4Qpkh7B YugGyJotmIVSdfF8LssEZnsE1L5Ry234mqxA9zyMOd+lpQF31ny7VmhqFZxIB54wGmze JkBky7pWdW/3+kwYuMTc9vDETtAbiML5ghCx/bsaR0xSTUT8jXNnZzS2lk+Wt2Sg3KSH Up6DqBAUpi/NRpNx4vDtht3e+b3ActaXbzxy+mUi+I+8npz0bq1u7Q/GJ0KGyv03j6Au CKk3q+rCmE2YoWK+UNzfUNFFhQ2xMVGtIWV/sxEGT8U8FKOyGrXorflz9GFpEqijYdo0 +nKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si90220ejw.89.2020.05.04.17.01.36; Mon, 04 May 2020 17:02:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728376AbgEDX6B (ORCPT + 99 others); Mon, 4 May 2020 19:58:01 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:6564 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728297AbgEDX6B (ORCPT ); Mon, 4 May 2020 19:58:01 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 044NXW98126925; Mon, 4 May 2020 19:57:59 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 30s4r3epnp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 May 2020 19:57:59 -0400 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 044Nswgr168925; Mon, 4 May 2020 19:57:59 -0400 Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 30s4r3epnm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 May 2020 19:57:59 -0400 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 044NnjZ2003723; Mon, 4 May 2020 23:57:58 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma02dal.us.ibm.com with ESMTP id 30s0g69tdt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 May 2020 23:57:58 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 044Nvumw52691374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 May 2020 23:57:56 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BDF00AC059; Mon, 4 May 2020 23:57:56 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 63590AC05B; Mon, 4 May 2020 23:57:56 +0000 (GMT) Received: from cpe-172-100-175-116.stny.res.rr.com (unknown [9.85.179.113]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 4 May 2020 23:57:56 +0000 (GMT) Subject: Re: s390 KVM warning in handle_pqap() To: Christian Borntraeger , Qian Cai , Pierre Morel Cc: Vasily Gorbik , David Hildenbrand , Janosch Frank , kvm@vger.kernel.org, linux-s390@vger.kernel.org, LKML References: <57992d1f-434e-3900-1958-542cd830aad1@de.ibm.com> From: Tony Krowiak Message-ID: <4edb5a70-f416-37c3-a233-c278d4c664ea@linux.ibm.com> Date: Mon, 4 May 2020 19:57:56 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <57992d1f-434e-3900-1958-542cd830aad1@de.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-05-04_13:2020-05-04,2020-05-04 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxlogscore=700 clxscore=1015 priorityscore=1501 malwarescore=0 impostorscore=0 bulkscore=0 suspectscore=0 adultscore=0 phishscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005040179 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I'll check with the z/VM folks. On 5/4/20 4:59 AM, Christian Borntraeger wrote: > > On 02.05.20 04:38, Qian Cai wrote: >> This line, >> >> if (WARN_ON_ONCE(fc != 0x03)) >> >> qemu-kvm-2.12.0-99.module+el8.2.0+5827+8c39933c with this kernel config, >> >> https://raw.githubusercontent.com/cailca/linux-mm/master/s390.config >> >> # /usr/libexec/qemu-kvm -name ubuntu-18.04-server-cloudimg -cpu host -smp 2 -m 2G -hda ubuntu-18.04-server-cloudimg.qcow2 -cdrom ubuntu-18.04-server-cloudimg.iso -nic user,hostfwd=tcp::2222-:22 -nographic >> >> 00: [ 424.578896] WARNING: CPU: 0 PID: 1533 at arch/s390/kvm/priv.c:632 handle_ >> 00: pqap+0x2b6/0x468 [kvm] >> 00: [ 424.578934] Modules linked in: kvm ip_tables x_tables xfs dasd_fba_mod da >> 00: sd_eckd_mod dm_mirror dm_region_hash dm_log dm_mod >> 00: [ 424.579026] CPU: 0 PID: 1533 Comm: qemu-kvm Not tainted 5.7.0-rc3-next-20 >> 00: 200501 #2 >> 00: [ 424.579064] Hardware name: IBM 2964 N96 400 (z/VM 6.4.0) > You run nested unter z/VM (under LPAR). So it looks like z/VM behaves different to > LPAR regarding the interception of the PQAP instruction. > Tony, can you talk to your z/VM colleagues about this? I guess we might need to > remove the WARN_ON_ONCE(fc != 0x03) and simply return EOPNOTSUPP if our assumption > is not right. I guess z/VM has its ECA field set to 0 so the effective ECA field > is also 0. > > > >> 00: [ 424.579101] Krnl PSW : 0704d00180000000 000003ff80440dc2 (handle_pqap+0x2 >> 00: ba/0x468 [kvm]) >> 00: [ 424.579239] R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:3 CC:1 PM:0 >> 00: RI:0 EA:3 >> 00: [ 424.579282] Krnl GPRS: 0000000000000000 0000030000000000 0000030000000000 >> 00: 00000000e1ca6148 >> 00: [ 424.579320] 0000030000000000 000003ff80440c14 0000000000000000 >> 00: 00000000822e8520 >> 00: [ 424.579359] 00000000e1ca6000 000000009c79a000 00000000822e8008 >> 00: 0000007c00877e70 >> 00: [ 424.579399] 000003ff803f5000 000003ff80467528 000003ff80440c14 >> 00: 000003e0043bf2c8 >> 00: [ 424.579461] Krnl Code: 000003ff80440db6: a774ff5a brc 7,00 >> 00: 0003ff80440c6a >> 00: [ 424.579461] 000003ff80440dba: a7f4ff54 brc 15,0 >> 00: 00003ff80440c62 >> 00: [ 424.579461] #000003ff80440dbe: af000000 mc 0,0 >> 00: [ 424.579461] >000003ff80440dc2: a798ffa1 lhi %r9, >> 00: -95 >> 00: [ 424.579461] 000003ff80440dc6: a51d0300 llihl %r1, >> 00: 768 >> 00: [ 424.579461] 000003ff80440dca: b90800b1 agr %r11 >> 00: ,%r1 >> 00: [ 424.579461] 000003ff80440dce: d70bb000b000 xc 0(12 >> 00: ,%r11),0(%r11) >> 00: [ 424.579461] 000003ff80440dd4: b9140029 lgfr %r2, >> 00: %r9 >> 00: [ 424.586765] Call Trace: >> 00: [ 424.586894] [<000003ff80440dc2>] handle_pqap+0x2ba/0x468 [kvm] >> 00: [ 424.587026] [<000003ff80446fa6>] kvm_s390_handle_b2+0x2f6/0x950 [kvm] >> 00: [ 424.587156] [<000003ff8042d74c>] kvm_handle_sie_intercept+0x154/0x1db0 [ >> 00: kvm] >> 00: [ 424.587287] [<000003ff80426950>] __vcpu_run+0x1040/0x2150 [kvm] >> 00: [ 424.587414] [<000003ff8042941a>] kvm_arch_vcpu_ioctl_run+0x5fa/0x1338 [k >> 00: vm] >> 00: [ 424.587540] [<000003ff8040195e>] kvm_vcpu_ioctl+0x346/0xa10 [kvm] >> 00: [ 424.587590] [<00000001433fbd16>] ksys_ioctl+0x276/0xbb8 >> 00: [ 424.587630] [<00000001433fc682>] __s390x_sys_ioctl+0x2a/0x38 >> 00: [ 424.587674] [<000000014393c880>] system_call+0xd8/0x2b4 >> 00: [ 424.587715] 2 locks held by qemu-kvm/1533: >> 00: [ 424.587748] #0: 00000000822e80d0 (&vcpu->mutex){+.+.}-{3:3}, at: kvm_vcp >> 00: u_ioctl+0x170/0xa10 [kvm] >> 00: [ 424.587898] #1: 0000000081fe3980 (&kvm->srcu){....}-{0:0}, at: __vcpu_ru >> 00: n+0x60a/0x2150 [kvm] >> 00: [ 424.588045] Last Breaking-Event-Address: >> 00: [ 424.588169] [<000003ff80440c1e>] handle_pqap+0x116/0x468 [kvm] >> 00: [ 424.588204] irq event stamp: 23141 >> 00: [ 424.588246] hardirqs last enabled at (23149): [<000000014308f3de>] conso >> 00: le_unlock+0x766/0xa20 >> 00: [ 424.588287] hardirqs last disabled at (23156): [<000000014308ee40>] conso >> 00: le_unlock+0x1c8/0xa20 >> 00: [ 424.588536] softirqs last enabled at (22998): [<000000014393e162>] __do_ >> 00: softirq+0x6e2/0xa48 >> 00: [ 424.588583] softirqs last disabled at (22983): [<0000000142f652dc>] do_so >> 00: ftirq_own_stack+0xe4/0x100 >> 00: [ 424.588625] ---[ end trace e420441aa7c001ac ]--- >>