qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Li Feng <fengli@smartx.com>
Cc: vkuznets@redhat.com, "Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.
Date: Wed, 20 May 2020 12:26:59 +0200	[thread overview]
Message-ID: <c1a3a26b-7ce1-9be6-836e-cf5ff1f10a2c@redhat.com> (raw)
In-Reply-To: <CAHckoCxFGTgPwTXvf6H4AeGDmDyy2dfQRtEHD51QojZpv-0E+Q@mail.gmail.com>

On 20/05/20 12:15, Li Feng wrote:
> /root/qemu-master/x86_64-softmmu/qemu-system-x86_64 -enable-kvm
> -device virtio-balloon -cpu
> host,-vmx-exit-nosave-debugctl,-vmx-exit-ack-intr,-vmx-exit-save-pat,-vmx-exit-load-pat,-vmx-exit-save-efer,-vmx-exit-load-efer,-vmx-exit-save-preemption-timer
> -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 tcp:0.0.0.0:1234,server,nowait -qmp
> tcp:0.0.0.0:2234,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
> 
> The CentOS version(qemu-kvm-ev-2.12.0-33.1.el7) works well on my VM.
> So I guess this is an issue in the upstream master codebase.

I don't know, it's really weird that KVM rejects bit 9.  It should be
fine as long as KVM_SET_CPUID2 is called before kvm_init_msrs (which is
true, it's some 30 lines earlier in kvm_arch_init_vcpu).

Thanks,

Paolo



  reply	other threads:[~2020-05-20 10:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHckoCymFfuVd=tKV-hk+PHn2fk6ydWjSxwKVorj9Qe5KV6nGQ@mail.gmail.com>
2020-05-14 11:27 ` kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed Li Feng
2020-05-14 12:09   ` Philippe Mathieu-Daudé
2020-05-14 12:52     ` Dr. David Alan Gilbert
2020-05-14 13:15       ` Vitaly Kuznetsov
2020-05-14 15:10       ` Li Feng
2020-05-14 15:12         ` Li Feng
2020-05-14 15:16         ` Dr. David Alan Gilbert
2020-05-14 15:19           ` Li Feng
2020-05-14 15:31             ` Dr. David Alan Gilbert
2020-05-14 15:49               ` Li Feng
2020-05-20  3:50                 ` Li Feng
2020-05-20  7:28                   ` Paolo Bonzini
2020-05-20  8:22                     ` Li Feng
2020-05-20  8:32                       ` Paolo Bonzini
2020-05-20  8:55                         ` Li Feng
2020-05-20  9:34                           ` Paolo Bonzini
2020-05-20  9:36                             ` Li Feng
2020-05-20 10:10                               ` Paolo Bonzini
2020-05-20 10:15                                 ` Li Feng
2020-05-20 10:26                                   ` Paolo Bonzini [this message]
2020-05-21  8:10                                     ` Li Feng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c1a3a26b-7ce1-9be6-836e-cf5ff1f10a2c@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=fengli@smartx.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=vkuznets@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).