Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1772347ybb; Thu, 2 Apr 2020 07:07:57 -0700 (PDT) X-Google-Smtp-Source: APiQypKuKjc0EumFC7NpIErfCfW5XSEbfDJFdSwI1RDYbTuemwjUX+qFeRbmFQuYbEMVH/HBFyR0 X-Received: by 2002:a05:6830:1b68:: with SMTP id d8mr2493836ote.56.1585836477511; Thu, 02 Apr 2020 07:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585836477; cv=none; d=google.com; s=arc-20160816; b=BWvoCZQ1BZyS+yJgU/8mUYpGotKkh/7KBdXxfnjo8POcmBK5ZLPsXEBlnzqsZ4PTKl fmlMPK0qIxT7lKKtWYY2fbovtPGTBTn4pOUlJlqt2LYRz5P/Q3lzGMM2MLCPW7mqk3AW Ep+L6D1eTuJHXZypIFEdKwNcUjyuvOt0wV1RrUFIw6CrHlXyAKd0bcfc0LfUWqDV8Fgl zW84S3hwaPi5IY25PQo7/IZWdf4nfV/PGNszL5GdrkzPRtnb5fOglntf4qBtTnwzzY4W FAWjYgjm6OdnPdw2i4I0CERweDGh//PcWz8eRP/bFC0ZNGluEzcZMisKPMbGZ0FUOYPK Ss0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Ms8xH/kkDNV/mYEGuuCn0BeytjCFnFwImg1lHQcydx0=; b=K5jLLh1sqpVgAEy5Fs+VlBcamotkSQ8/ziqc54pql+LeSnKnQN2SUr705Qy4uFSbih RhMYxd0yC7R2AES7sdmM477QRgjXIKypAsjnkVBtR00hofKNCsqBwxyYPDa7V+6rrdrL RJDAG0xr4F/TZmJy50Be50BS2oEvss4bCPkqDJAbV4ZyT/4vwtykNnLYewzsvfmcPpWj nhkmOP/LyStIwz5eL1Ee24EWWjHnKstNH4Stkg127ZB/t+UNQH+HDe2WK3Dyfn+cIM9k lup3j0KuTZgvjRYiKTpS6B1YUm9WocsmJCnJUiIh3dHlMFoO8ULJIgrD/QEAD8wqTLnG Z+aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=Qj+MGh2Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si2684801oou.82.2020.04.02.07.07.34; Thu, 02 Apr 2020 07:07:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=Qj+MGh2Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388451AbgDBOF1 (ORCPT + 99 others); Thu, 2 Apr 2020 10:05:27 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:53728 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387798AbgDBOF1 (ORCPT ); Thu, 2 Apr 2020 10:05:27 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 032E3ctj138529; Thu, 2 Apr 2020 14:05:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=Ms8xH/kkDNV/mYEGuuCn0BeytjCFnFwImg1lHQcydx0=; b=Qj+MGh2QVdt0s1zM3nqOOUeFIFmKlgQV0gGRoc2uA7QEhsVL7ExBiFNFPs5YeuLCld3J GwXgNCQ9Ov4GDChQOpwtumQ8Zf1dfUbWctqbZyOaGB4ne0ViQn7TIAgF38HRL9idgCav q9S5PzQEyo/Ax0oCGRGbHgg5szy7PK3lvEKJ0bH/xvrZS9tCqAhUArIoOR4svusGxhgB jEZP6Auxi+enX34+x3yWqG9JLaXAIs7tGXVkcCe8JpiHLXTMx3KN6cBSExHJLPtco3vp v7gNcQ04ZQE1u2NrhIL1tt1qKpex39ytZpIaBhqcoegZ9gm0TR9b1ae6pxZy/norO1aa oA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 303yune7kd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 02 Apr 2020 14:05:00 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 032E2Ktx023326; Thu, 2 Apr 2020 14:05:00 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 302g4vkty5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 02 Apr 2020 14:05:00 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 032E4wSg013635; Thu, 2 Apr 2020 14:04:58 GMT Received: from [10.159.243.67] (/10.159.243.67) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 02 Apr 2020 07:04:58 -0700 Subject: Re: qemu-x86: kernel panic when host is loaded To: Thomas Gleixner , Corentin Labbe , qemu-discuss@nongnu.org, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org Cc: linux-kernel@vger.kernel.org References: <20200402093132.GA15839@Red> <87eet6nra7.fsf@nanos.tec.linutronix.de> From: Dongli Zhang Message-ID: <18354be1-8dba-84f1-bdf5-6821a5013d78@oracle.com> Date: Thu, 2 Apr 2020 07:04:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <87eet6nra7.fsf@nanos.tec.linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9579 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004020127 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9579 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 impostorscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004020127 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/2/20 2:57 AM, Thomas Gleixner wrote: > Corentin, > > Corentin Labbe writes: >> On our kernelci lab, each qemu worker pass an healtcheck job each day and after each job failure, so it is heavily used. >> The healtcheck job is a Linux boot with a stable release. >> >> Since we upgraded our worker to buster, the qemu x86_64 healthcheck randomly panic with: >> <0>[ 0.009000] Kernel panic - not syncing: IO-APIC + timer doesn't work! Boot with apic=debug and send a report. Then try booting with the 'noapic' option. >> >> After some test I found the source of this kernel panic, the host is >> loaded and qemu run "slower". Simply renicing all qemu removed this >> behavour. >> >> So now what can I do ? >> Appart renicing qemu process, does something could be done ? > > As the qemu timer/ioapic routing is actually sane, you might try to add > "no_timer_check" to the kernel command line. > The no_timer_check is already permanently disabled in below commit? commit a90ede7b17d1 ("KVM: x86: paravirt skip pit-through-ioapic boot check") In addition, hyperv and vmware also disabled that: commit ca3ba2a2f4a4 ("x86, hyperv: Bypass the timer_irq_works() check"). commit 854dd54245f7 ("x86/vmware: Skip timer_irq_works() check on VMware") Dongli Zhang