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=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 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 9F6A3C433E0 for ; Thu, 14 May 2020 15:33:28 +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 6C54E206A5 for ; Thu, 14 May 2020 15:33:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="jFjwQEYD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6C54E206A5 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]:33348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZFrT-0003SE-Ej for qemu-devel@archiver.kernel.org; Thu, 14 May 2020 11:33:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZFpj-0001cJ-Pl for qemu-devel@nongnu.org; Thu, 14 May 2020 11:31:39 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:44733 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jZFph-0002hY-Rl for qemu-devel@nongnu.org; Thu, 14 May 2020 11:31:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589470296; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PawMKXT3yUDmpgOrenVqnfNRcSxIo+BufxdLLcivY2k=; b=jFjwQEYDeGuTCT2IbOmHWxcSvFwZmd8bcAm1ZGekjXaNI1qDdsC8KaJRTZlSfIw+Ioafjp 7x4IbJF+yJ78c/r1puH7yAhqkI93yS4S15ySjDpNjinWZ872HJztfPDGZtJ7rgM4AfUcNb i9XQMQ7MbIs3GBYaDOI/keBXWAzvGZQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-406-UVZbLNZLOEa1QDfPv6X5BA-1; Thu, 14 May 2020 11:31:34 -0400 X-MC-Unique: UVZbLNZLOEa1QDfPv6X5BA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7F6FEEC1A2; Thu, 14 May 2020 15:31:33 +0000 (UTC) Received: from work-vm (ovpn-114-247.ams2.redhat.com [10.36.114.247]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 397855C220; Thu, 14 May 2020 15:31:32 +0000 (UTC) Date: Thu, 14 May 2020 16:31:29 +0100 From: "Dr. David Alan Gilbert" To: Li Feng Subject: Re: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed. Message-ID: <20200514153129.GP2787@work-vm> References: <55b6466c-0769-6652-a237-c6bc18704064@redhat.com> <20200514125220.GJ2787@work-vm> <20200514151600.GO2787@work-vm> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.13.4 (2020-02-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline Received-SPF: pass client-ip=205.139.110.120; envelope-from=dgilbert@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 11:31:36 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_HK_NAME_DR=0.01, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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 , vkuznets@redhat.com, Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , "open list:All patches CC here" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" * Li Feng (fengli@smartx.com) wrote: > Dr. David Alan Gilbert 于2020年5月14日周四 下午11:16写道: > > > > * Li Feng (fengli@smartx.com) wrote: > > > EXSi CPU is : Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz > > > This is my vm, I run qemu in it. > > > > Do you know what the real hardware is? > What information do you need? I could send it out. > The EXSi version: VMware ESXi, 6.5.0, 5969303 VMWare is saying to the guest it's an E5-2640 v3; is that what your real CPU is? Dave > > > > Dave > > > > > (base) 20-05-14 15:32:50 root@31_216:~ lscpu > > > Architecture: x86_64 > > > CPU op-mode(s): 32-bit, 64-bit > > > Byte Order: Little Endian > > > CPU(s): 16 > > > On-line CPU(s) list: 0-15 > > > Thread(s) per core: 1 > > > Core(s) per socket: 1 > > > Socket(s): 16 > > > NUMA node(s): 1 > > > Vendor ID: GenuineIntel > > > CPU family: 6 > > > Model: 63 > > > Model name: Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz > > > Stepping: 2 > > > CPU MHz: 2599.998 > > > BogoMIPS: 5199.99 > > > Virtualization: VT-x > > > Hypervisor vendor: VMware > > > Virtualization type: full > > > L1d cache: 32K > > > L1i cache: 32K > > > L2 cache: 256K > > > L3 cache: 20480K > > > NUMA node0 CPU(s): 0-15 > > > 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 syscall > > > nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology > > > tsc_reliable nonstop_tsc cpuid pni pclmulqdq vmx ssse3 fma cx16 pcid > > > sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx > > > f16c rdrand hypervisor lahf_lm abm cpuid_fault invpcid_single > > > tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 > > > invpcid xsaveopt arat > > > > > > Thanks, > > > > > > Feng Li > > > > > > Dr. David Alan Gilbert 于2020年5月14日周四 下午8:52写道: > > > > > > > > * Philippe Mathieu-Daudé (philmd@redhat.com) wrote: > > > > > Cc'ing David/Paolo in case they have a clue... > > > > > > > > > > On 5/14/20 1:27 PM, Li Feng wrote: > > > > > > Dear all, > > > > > > > > > > > > I have encountered a weird crash. > > > > > > I remember before a few days it works well and I rebase my code from upstream. > > > > > > > > > > > > This is the command: > > > > > > /root/qemu-master/x86_64-softmmu/qemu-system-x86_64 -enable-kvm > > > > > > -device virtio-balloon -cpu host -smp 4 -m 2G -drive > > > > > > file=/root/html/fedora-10g.img,format=raw,cache=none,aio=native,if=none,id=drive-virtio-disk1 > > > > > > -device virtio-blk-pci,scsi=off,drive=drive-virtio-disk1,id=virtio-disk1,bootindex=1 > > > > > > -device virtio-net,netdev=nw1,mac=00:11:22:EE:EE:10 -netdev > > > > > > tap,id=nw1,script=no,downscript=no,ifname=tap0 -serial mon:stdio > > > > > > -nographic -object > > > > > > memory-backend-file,id=mem0,size=2G,mem-path=/dev/hugepages,share=on > > > > > > -numa node,memdev=mem0 -vnc 0.0.0.0:100 -machine usb=on,nvdimm -device > > > > > > usb-tablet -monitor unix:///tmp/a.socket,server,nowait -device > > > > > > virtio-serial-pci,id=virtio-serial0,max_ports=16 -chardev > > > > > > socket,id=channel1,path=/tmp/helloworld1,server,nowait -device > > > > > > virtserialport,chardev=channel1,name=com.redhat.rhevm.vdsm1,bus=virtio-serial0.0,id=port1 > > > > > > -qmp tcp:0.0.0.0:2234,server,nowait > > > > > > qemu-system-x86_64: error: failed to set MSR 0x48f to 0x7fefff00036dfb > > > > > > qemu-system-x86_64: /root/qemu-master/target/i386/kvm.c:2695: > > > > > > kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed. > > > > > > > > 48f is MSR_IA32_VMX_TRUE_EXIT_CTLS > > > > I've not got a note of seeing that one before. > > > > > > > > > > This is the commit record: > > > > > > * c88f1ffc19 - (origin/master, origin/HEAD) Merge remote-tracking > > > > > > branch 'remotes/kevin/tags/for-upstream' into staging (3 days ago) > > > > > > > > > > > > |\ > > > > > > | * 47e0b38a13 - block: Drop unused .bdrv_has_zero_init_truncate (3 > > > > > > days ago) > > > > > > | * dbc636e791 - vhdx: Rework truncation logic (3 days ago) > > > > > > | * bda4cdcbb9 - parallels: Rework truncation logic (3 days ago) > > > > > > | * be9c9404db - ssh: Support BDRV_REQ_ZERO_WRITE for truncate (3 days > > > > > > ago) > > > > > > | * fec00559e7 - sheepdog: Support BDRV_REQ_ZERO_WRITE for truncate (3 > > > > > > days ago) > > > > > > | * 2f98910d5b - rbd: Support BDRV_REQ_ZERO_WRITE for truncate (3 days > > > > > > ago) > > > > > > > > > > > > I run this qemu in a VM base on EXSi. > > > > > > > > > > > > Does anyone have the same issue? > > > > > > > > cc'ing in Vitaly since he knows VMWare stuff. > > > > > > > > What's your host CPU? > > > > > > > > Dave > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Feng Li > > > > > > > > > > > > > > > -- > > > > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK > > > > > > > > > -- > > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK > > > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK