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=-8.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham 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 26F65C352A3 for ; Tue, 11 Feb 2020 15:57:23 +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 F040220714 for ; Tue, 11 Feb 2020 15:57:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F040220714 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:52180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1Xuc-000477-5y for qemu-devel@archiver.kernel.org; Tue, 11 Feb 2020 10:57:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48624) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1XtM-0002Jm-US for qemu-devel@nongnu.org; Tue, 11 Feb 2020 10:56:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1XtL-0006Hu-4c for qemu-devel@nongnu.org; Tue, 11 Feb 2020 10:56:04 -0500 Received: from indium.canonical.com ([91.189.90.7]:38988) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1XtK-0006Gl-Uv for qemu-devel@nongnu.org; Tue, 11 Feb 2020 10:56:03 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1j1XtI-0003lE-Lx for ; Tue, 11 Feb 2020 15:56:00 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 87AE82E8679 for ; Tue, 11 Feb 2020 15:56:00 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 11 Feb 2020 15:43:25 -0000 From: "Matwey V. Kornilov" To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=Incomplete; importance=Undecided; assignee=None; X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: bonzini dgilbert-h matwey-kornilov th-huth X-Launchpad-Bug-Reporter: Matwey V. Kornilov (matwey-kornilov) X-Launchpad-Bug-Modifier: Matwey V. Kornilov (matwey-kornilov) References: <20170202204510.26617.69309.malonedeb@wampee.canonical.com> <158143216740.3624.3045704956517936916.malone@soybean.canonical.com> Message-Id: Subject: Re: [Bug 1661386] Re: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="0a62c17273454a1313f81a74a2198ec30b44c7b6"; Instance="production-secrets-lazr.conf" X-Launchpad-Hash: 7f5270d709d00d0b6e1c5dfcd8934508f31133bc X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 91.189.90.7 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1661386 <1661386@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, Thank you for your reply. I've checked that this commit fixed my issue. =D0=B2=D1=82, 11 =D1=84=D0=B5=D0=B2=D1=80. 2020 =D0=B3. =D0=B2 17:50, Thoma= s Huth <1661386@bugs.launchpad.net>: > > There was a fix for this assertion message wrt PMU registers in December = 2017 already: > https://git.qemu.org/?p=3Dqemu.git;a=3Dcommitdiff;h=3D0b368a10c71af96f6cf > Thus, can you still reproduce this issue with the latest version of QEMU,= or is the problem gone now? > > ** Changed in: qemu > Status: New =3D> Incomplete > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1661386 > > Title: > Assertion `ret =3D=3D cpu->kvm_msr_buf->nmsrs' failed > > Status in QEMU: > Incomplete > > Bug description: > Hello, > > > I see the following when try to run qemu from master as the following: > > # ./x86_64-softmmu/qemu-system-x86_64 --version > QEMU emulator version 2.8.50 (v2.8.0-1006-g4e9f524) > Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers > # ./x86_64-softmmu/qemu-system-x86_64 -machine accel=3Dkvm -nodefaults > -no-reboot -nographic -cpu host -vga none -kernel .build.kernel.kvm > -initrd .build.initrd.kvm -append 'panic=3D1 no-kvmclock console=3DttyS0 > loglevel=3D7' -m 1024 -serial stdio > qemu-system-x86_64: /home/matwey/lab/qemu/target/i386/kvm.c:1849: > kvm_put_msrs: Assertion `ret =3D=3D cpu->kvm_msr_buf->nmsrs' failed. > > First broken commit has been bisected: > > commit 48e1a45c3166d659f781171a47dabf4a187ed7a5 > Author: Paolo Bonzini > Date: Wed Mar 30 22:55:29 2016 +0200 > > target-i386: assert that KVM_GET/SET_MSRS can set all requested MSRs > > This would have caught the bug in the previous patch. > > Signed-off-by: Paolo Bonzini > > My cpuinfo is the following: > > processor : 0 > vendor_id : GenuineIntel > cpu family : 6 > model : 44 > model name : Intel(R) Xeon(R) CPU X5675 @ 3.07GHz > stepping : 2 > microcode : 0x14 > cpu MHz : 3066.775 > cache size : 12288 KB > physical id : 0 > siblings : 2 > core id : 0 > cpu cores : 2 > apicid : 0 > initial apicid : 0 > fpu : yes > fpu_exception : yes > cpuid level : 11 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge = mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm= constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc= aperfmperf pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 popcnt aes hyperviso= r lahf_lm ida arat epb dtherm tpr_shadow vnmi ept vpid > bugs : > bogomips : 6133.55 > clflush size : 64 > cache_alignment : 64 > address sizes : 40 bits physical, 48 bits virtual > power management: > > To manage notifications about this bug go to: > https://bugs.launchpad.net/qemu/+bug/1661386/+subscriptions -- = With best regards, Matwey V. Kornilov -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1661386 Title: Assertion `ret =3D=3D cpu->kvm_msr_buf->nmsrs' failed Status in QEMU: Incomplete Bug description: Hello, = I see the following when try to run qemu from master as the following: # ./x86_64-softmmu/qemu-system-x86_64 --version QEMU emulator version 2.8.50 (v2.8.0-1006-g4e9f524) Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers # ./x86_64-softmmu/qemu-system-x86_64 -machine accel=3Dkvm -nodefaults -no-reboot -nographic -cpu host -vga none -kernel .build.kernel.kvm -initrd .build.initrd.kvm -append 'panic=3D1 no-kvmclock console=3DttyS0 loglevel=3D7' -m 1024 -serial stdio qemu-system-x86_64: /home/matwey/lab/qemu/target/i386/kvm.c:1849: kvm_put_msrs: Assertion `ret =3D=3D cpu->kvm_msr_buf->nmsrs' failed. First broken commit has been bisected: commit 48e1a45c3166d659f781171a47dabf4a187ed7a5 Author: Paolo Bonzini Date: Wed Mar 30 22:55:29 2016 +0200 target-i386: assert that KVM_GET/SET_MSRS can set all requested MSRs = This would have caught the bug in the previous patch. = Signed-off-by: Paolo Bonzini My cpuinfo is the following: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 44 model name : Intel(R) Xeon(R) CPU X5675 @ 3.07GHz stepping : 2 microcode : 0x14 cpu MHz : 3066.775 cache size : 12288 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mc= a cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm c= onstant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc a= perfmperf pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor = lahf_lm ida arat epb dtherm tpr_shadow vnmi ept vpid bugs : bogomips : 6133.55 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1661386/+subscriptions