qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: "Montes, Julio" <julio.montes@intel.com>,
	qemu-devel <qemu-devel@nongnu.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	Eduardo Habkost <ehabkost@redhat.com>
Subject: Re: qemu-4.2: failed to set MSR 0x48b to 0x1582e00000000: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.
Date: Sat, 14 Dec 2019 02:31:33 +0100	[thread overview]
Message-ID: <2c28287e-1869-751d-f7c8-04605ef4b337@redhat.com> (raw)
In-Reply-To: <DM6PR11MB4089A0B695CB84FB288068B89A540@DM6PR11MB4089.namprd11.prod.outlook.com>

Hi Julio,

On 12/13/19 9:53 PM, Montes, Julio wrote:
> Hi folks
> 
> I'm trying to run qemu 4.2.0 in azure VMs, unfourtunately qemu fails:
> 
> failed to launch qemu: exit status 1, error messages from qemu log: 
> qemu-system-x86_64: error: failed to set MSR 0x48b to 0x1582e00000000
> qemu-system-x86_64: /root/qemu/target/i386/kvm.c:2947: kvm_put_msrs: 
> Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.
> 
> I'm using the following command line:
> 
> qemu-system-x86_64 -machine pc,accel=kvm,kernel_irqchip,nvdimm -cpu 
> host,pmu=off \
> -qmp unix:qmp.sock,server,nowait -m 2048M,slots=10,maxmem=8977M -device 
> pci-bridge,bus=pci.0,id=pci-bridge-0,chassis_nr=1,shpc=on,addr=2,romfile= \
> -device virtio-serial-pci,disable-modern=true,id=serial0,romfile= 
> -device virtconsole,chardev=charconsole0,id=console0 \
> -chardev socket,id=charconsole0,path=console.sock,server,nowait -device 
> nvdimm,id=nv0,memdev=mem0 \
> -object 
> memory-backend-file,id=mem0,mem-path=kata-containers.img,size=134217728 
> -device virtio-scsi-pci,id=scsi0,disable-modern=true,romfile= \
> -object rng-random,id=rng0,filename=/dev/urandom -device 
> virtio-rng,rng=rng0,romfile= -device 
> virtserialport,chardev=charch0,id=channel0,name=agent.channel.0 \
> -chardev socket,id=charch0,path=kata.sock,server,nowait -device 
> virtio-9p-pci,disable-modern=true,fsdev=extra-9p-kataShared,mount_tag=kataShared,romfile= 
> \
> -fsdev 
> local,id=extra-9p-kataShared,path=/run/kata-containers/shared/sandboxes,security_model=none 
> -netdev tap,id=network-0,vhost=on,vhostfds=3,fds=4 \
> -device 
> driver=virtio-net-pci,netdev=network-0,mac=ea:4a:b6:1a:92:72,disable-modern=true,mq=on,vectors=4,romfile= 
> \
> -global kvm-pit.lost_tick_policy=discard -vga none -no-user-config 
> -nodefaults -nographic -daemonize -object 
> memory-backend-ram,id=dimm1,size=2048M \
> -numa node,memdev=dimm1 -kernel 
> /usr/share/kata-containers/vmlinuz-4.19.86-60 \
> -append "tsc=reliable no_timer_check rcupdate.rcu_expedited=1 
> i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 i8042.noaux=1 noreplace-smp 
> reboot=k \
> console=hvc0 console=hvc1 iommu=off cryptomgr.notests net.ifnames=0 
> pci=lastbus=0 root=/dev/pmem0p1 
> rootflags=dax,data=ordered,errors=remount-ro \
> ro rootfstype=ext4 debug systemd.show_status=true 
> systemd.log_level=debug panic=1 nr_cpus=2 agent.use_vsock=false 
> systemd.unit=kata-containers.target \
> systemd.mask=systemd-networkd.service 
> systemd.mask=systemd-networkd.socket agent.log=debug agent.log=debug" \
> -pidfile pid -D qemu.log -smp 1,cores=1,threads=1,sockets=2,maxcpus=2
> 
> Qemu 4.1.0 works fine
> Qemu 4.2.0 **only** fails in azure VMs, in my workstation it works fine
> 
> any thoughts?

Are you running also nested on your workstation?

> 
> 
> Information about the VM:
> 
> $ cat /sys/module/kvm_intel/parameters/nested
> Y
> 
> $ cat /proc/cpuinfo
> processor : 0
> vendor_id : GenuineIntel
> cpu family : 6
> model : 79
> model name : Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
> stepping : 1
> microcode : 0xffffffff
> cpu MHz : 2294.685
> cache size : 51200 KB
> physical id : 0
> siblings : 2
> core id : 0
> cpu cores : 1
> apicid : 0
> initial apicid : 0
> fpu : yes
> fpu_exception : yes
> cpuid level : 20
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
> pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm 
> constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq vmx ssse3 fma 
> cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand 
> hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti tpr_shadow vnmi 
> ept vpid fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx 
> smap xsaveopt md_clear
> bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds 
> swapgs taa itlb_multihit
> bogomips : 4589.37
> clflush size : 64
> cache_alignment : 64
> address sizes : 44 bits physical, 48 bits virtual
> power management:
> 
> processor : 1
> vendor_id : GenuineIntel
> cpu family : 6
> model : 79
> model name : Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
> stepping : 1
> microcode : 0xffffffff
> cpu MHz : 2294.685
> cache size : 51200 KB
> physical id : 0
> siblings : 2
> core id : 0
> cpu cores : 1
> apicid : 1
> initial apicid : 1
> fpu : yes
> fpu_exception : yes
> cpuid level : 20
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
> pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm 
> constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq vmx ssse3 fma 
> cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand 
> hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti tpr_shadow vnmi 
> ept vpid fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx 
> smap xsaveopt md_clear
> bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds 
> swapgs taa itlb_multihit
> bogomips : 4589.37
> clflush size : 64
> cache_alignment : 64
> address sizes : 44 bits physical, 48 bits virtual
> power management:
> 
> $ uname -a
> Linux testcrio1 5.0.0-1027-azure #29~18.04.1-Ubuntu SMP Mon Nov 25 
> 21:18:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
> 
> Thanks
> 
> -
> Julio
> 
> 



  reply	other threads:[~2019-12-14  1:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-13 20:53 qemu-4.2: failed to set MSR 0x48b to 0x1582e00000000: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed Montes, Julio
2019-12-14  1:31 ` Philippe Mathieu-Daudé [this message]
2019-12-14  7:30   ` Paolo Bonzini
2019-12-16 19:16     ` Montes, Julio
2019-12-16 19:23       ` Paolo Bonzini
2019-12-16 19:27         ` Montes, Julio

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=2c28287e-1869-751d-f7c8-04605ef4b337@redhat.com \
    --to=philmd@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=julio.montes@intel.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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).