From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB8F3C4707A for ; Sun, 23 May 2021 12:24:58 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 184BD61166 for ; Sun, 23 May 2021 12:24:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 184BD61166 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:60944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lknA8-0007pZ-Uk for qemu-devel@archiver.kernel.org; Sun, 23 May 2021 08:24:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkn96-00078W-Ma for qemu-devel@nongnu.org; Sun, 23 May 2021 08:23:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:46230) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkn92-00028Q-Pg for qemu-devel@nongnu.org; Sun, 23 May 2021 08:23:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621772625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cO5/AcHi93cRobJvM+S0QZjVNSXUo8BjKi/Yjvbxcyw=; b=WRK12syvU0YwFxWIdu73iacIwiw2nEPVtCBbiNk+1hoIUfSa6Kk5xXXReeAkj32x4sR/q4 tUAFYWua89RXus1krnx/hGxZFeN7dIgwKknfHk2u6DttUMND3c9xDvAgspt9qN67ll4chs b6OTCdAklxkDwr2egcmSJ9cfKGclD3U= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-327-ZysF1m6xOmCoIVFUG4JHwg-1; Sun, 23 May 2021 08:23:43 -0400 X-MC-Unique: ZysF1m6xOmCoIVFUG4JHwg-1 Received: by mail-ed1-f71.google.com with SMTP id q18-20020a0564025192b02903888712212fso14013279edd.19 for ; Sun, 23 May 2021 05:23:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cO5/AcHi93cRobJvM+S0QZjVNSXUo8BjKi/Yjvbxcyw=; b=Qs8dkaehCTo9NKF0sKioOEs0GgzJEdBJqqXFhcoi7M4TXSc6qzzPSMgmpa727tbCdV XqyoOpVBptwAYOR27KuyE6ZHSga9kny8wmoBPpMhAMZm1sYYEz3RM7M36N5CYbj6jhIk B8mSrFWTtBcts3dXaTbn8waCmEBVTgaTuerbmfsoZYjuYnKUQFxgePCyFHjl0kvfi4XZ bkhZJv1faFTXbRWwxijqT1QXQa8pycFUFEVRc6ra+BD45GOvZMgsFAfFomS/RaLZ1GXU RibO8zm0GS+zyBg7UAkKBNvATqvHFmjlADUTBoqzmNPxZZgxLtE/oBZY+kVNKhOxwbwX VSMw== X-Gm-Message-State: AOAM5307zlIBn206f9/ZFSpLv43GlDwSWpCJnYJgukFEx6NQFu9i06CW pCd3r20kQEXtXKUx6MtzsdpKm4hkYF/hgclwbYcSmZrDiragfHS9BhF24tC+753/AKteYCP4rWr Ro77QoAbn6GbTh5Z9BNScAIKNeskd0z4= X-Received: by 2002:aa7:d455:: with SMTP id q21mr20361783edr.2.1621772621846; Sun, 23 May 2021 05:23:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaWdOv2bnU+aZCHitc9jdlbLGchMr8uWtUxwGZY5lw/5ry+R66+p3GMfo2vfeyCTmVlKMiAisnPS+AFAWatzA= X-Received: by 2002:aa7:d455:: with SMTP id q21mr20361770edr.2.1621772621672; Sun, 23 May 2021 05:23:41 -0700 (PDT) MIME-Version: 1.0 References: <20210520080652.GA16421@yangzhon-Virtual> In-Reply-To: <20210520080652.GA16421@yangzhon-Virtual> From: Gal Hammer Date: Sun, 23 May 2021 15:23:30 +0300 Message-ID: Subject: Re: The latest Qemu release can't bootup VM with latest guest kernel. To: Yang Zhong Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ghammer@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="0000000000000582f805c2fe5df2" Received-SPF: pass client-ip=216.205.24.124; envelope-from=ghammer@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.373, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , richard.henderson@linaro.org, qemu-devel@nongnu.org, cfontana@suse.de Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --0000000000000582f805c2fe5df2 Content-Type: text/plain; charset="UTF-8" Hi Yang, On Thu, 20 May 2021 at 11:27, Yang Zhong wrote: > Hello all, > > I found the latest Qemu release can't bootup the VM with latest guest > kernel(>5.13). > > The normal v6.0.0 release is good to bootup the latest guest kernel. > > There are two issues were found > 1. Guest kernel panic. > 2. kvm disabled by bios > > The panic log as below: > [ 2.250024] BUG: unable to handle page fault for address: > ffffffffac06c55f > [ 2.252226] #PF: supervisor write access in kernel mode > [ 2.253892] #PF: error_code(0x0003) - permissions violation > [ 2.255671] PGD 5940e067 P4D 5940f067 PUD 59410063 PMD 580001e1 > [ 2.257567] Oops: 0003 [#1] SMP NOPTI > [ 2.258738] CPU: 2 PID: 313 Comm: systemd-udevd Not tainted 5.13.0-rc1+ > #1 > [ 2.260899] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS > 0.0.0 02/06/2015 > [ 2.263375] RIP: 0010:__send_ipi_mask+0x1bf/0x240 > [ 2.264855] Code: c0 48 c7 44 24 18 00 00 00 00 e9 48 ff ff ff 48 89 d0 > 4c 09 c8 74 1b 49 63 d7 48 63 74 24 0c b8 0a 00 00 00 4c 89 cb 4c 89 d1 > <0f> 01 d9 48 85 c0 78 4a 48 f7 04 24 00 02 00 00 0f 84 80 fe ff ff > [ 2.270643] RSP: 0018:ff591a62c0193ab0 EFLAGS: 00010006 > [ 2.272277] RAX: 000000000000000a RBX: 0000000000000009 RCX: > 0000000000000000 > [ 2.274482] RDX: 0000000000000000 RSI: 00000000000000fc RDI: > ff13a83dc003c830 > [ 2.276663] RBP: ff591a62c0193b08 R08: 0000000000000004 R09: > 0000000000000009 > [ 2.278866] R10: 0000000000000000 R11: 0000000000000000 R12: > 0000000000000000 > [ 2.281065] R13: ff13a83dc003c830 R14: 0000000000011580 R15: > 0000000000000000 > [ 2.283272] FS: 00007f23ebd07940(0000) GS:ff13a83e3bd00000(0000) > knlGS:0000000000000000 > [ 2.285794] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 2.287574] CR2: ffffffffac06c55f CR3: 0000000106ce2003 CR4: > 0000000000771ee0 > [ 2.289757] DR0: 0000000000000000 DR1: 0000000000000000 DR2: > 0000000000000000 > [ 2.291972] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: > 0000000000000400 > [ 2.294177] PKRU: 55555554 > [ 2.295043] Call Trace: > [ 2.295820] kvm_smp_send_call_func_ipi+0xe/0x60 > [ 2.297220] smp_call_function_many_cond+0x25d/0x2a0 > [ 2.298772] ? flush_tlb_one_kernel+0x20/0x20 > [ 2.300145] on_each_cpu_cond_mask+0x1e/0x20 > [ 2.301514] flush_tlb_kernel_range+0x8d/0x90 > [ 2.302799] __purge_vmap_area_lazy+0xc1/0x6a0 > [ 2.304097] ? cpumask_next+0x1f/0x20 > [ 2.305160] ? purge_fragmented_blocks_allcpus+0x3d/0x210 > [ 2.306686] _vm_unmap_aliases+0xf1/0x120 > [ 2.307861] change_page_attr_set_clr+0x95/0x280 > [ 2.309203] set_memory_ro+0x26/0x30 > [ 2.310259] ? 0xffffffffc00f7000 > [ 2.311214] module_enable_ro.part.58+0x62/0xc0 > [ 2.312417] do_init_module+0x17a/0x230 > [ 2.313460] load_module+0x1a30/0x1b00 > [ 2.314463] ? __do_sys_finit_module+0xad/0x110 > [ 2.315702] __do_sys_finit_module+0xad/0x110 > [ 2.316890] do_syscall_64+0x39/0x80 > [ 2.317868] entry_SYSCALL_64_after_hwframe+0x44/0xae > [ 2.319226] RIP: 0033:0x7f23ea8f32bd > > > I also used the bisect to get the bad commit id: > f5cc5a5c168674f84bf061cdb307c2d25fba5448 > > This issue is known issue? or some fixs are ready to fix those issues? > thanks! > What's your qemu command line? I'm also having a kernel crash (although I think mine is with a different call stack) when using "-cpu host". The crash doesn't occur when I use "kvm64" cpu type. Gal. > > Regards, > > Yang > > > > --0000000000000582f805c2fe5df2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Yang,

On Thu, 20 May 2021 at 11:27= , Yang Zhong <yang.zhong@intel.c= om> wrote:
What's your qemu command line?
=

<= /div>
= I'm also having a kernel crash (although I think mine is with a differe= nt call stack) when using "-cpu host". The crash doesn't occu= r when I use "kvm64" cpu type.

=C2= =A0=C2=A0=C2=A0 Gal.
=C2=A0

Regards,

Yang



--0000000000000582f805c2fe5df2--