Your message dated Mon, 11 Aug 2025 10:47:44 +0300
with message-id <[email protected]>
and subject line Re: Bug#1010026: qemu-system-x86: fails to start VM with
"host" cpu missing features
has caused the Debian Bug report #1010026,
regarding qemu-system-x86: fails to start: kvm_buf_set_msrs: Assertion `ret ==
cpu->kvm_msr_buf->nmsrs' failed.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1010026: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010026
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: qemu-system-x86
Version: 1:7.0+dfsg-1
Severity: normal
Dear Maintainer,
VMs controlled by libvirt failed to start when using "host" cpu type with kvm
acceleration
libvirt log gives:
2022-04-21T17:07:40.354354Z qemu-system-x86_64: warning: This feature depends
on other features that were not requested: CPUID.8000000AH:EDX.npt [bit 0]
2022-04-21T17:07:40.354467Z qemu-system-x86_64: warning: This feature depends
on other features that were not requested: CPUID.8000000AH:EDX.nrip-save [bit
3]
2022-04-21T17:07:40.354476Z qemu-system-x86_64: warning: This feature depends
on other features that were not requested: CPUID.8000000AH:EDX.vmcb-clean [bit
5]
2022-04-21T17:07:40.354482Z qemu-system-x86_64: warning: This feature depends
on other features that were not requested: CPUID.8000000AH:EDX.svme-addr-chk
[bit 28]
2022-04-21T17:07:40.355818Z qemu-system-x86_64: warning: This feature depends
on other features that were not requested: CPUID.8000000AH:EDX.npt [bit 0]
2022-04-21T17:07:40.355850Z qemu-system-x86_64: warning: This feature depends
on other features that were not requested: CPUID.8000000AH:EDX.nrip-save [bit
3]
2022-04-21T17:07:40.355857Z qemu-system-x86_64: warning: This feature depends
on other features that were not requested: CPUID.8000000AH:EDX.vmcb-clean [bit
5]
2022-04-21T17:07:40.355864Z qemu-system-x86_64: warning: This feature depends
on other features that were not requested: CPUID.8000000AH:EDX.svme-addr-chk
[bit 28]
2022-04-21T17:07:40.419616Z qemu-system-x86_64: error: failed to set MSR
0xc0000104 to 0x100000000
qemu-system-x86_64: ../../target/i386/kvm/kvm.c:2996: kvm_buf_set_msrs:
Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.
Reverting to qemu-system-x86 6.2+dfsg-3 and the VMs start-up perfectly fine
using the same libvirt xml.
host cpu flags from /proc/cpuinfo :
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid
extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy
abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate
vmmcall npt lbrv svm_lock nrip_save
Cheers,
Adrian
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.16.0-5-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages qemu-system-x86 depends on:
ii ipxe-qemu 1.0.0+git-20190125.36a4c85-5.1
ii libaio1 0.3.113-2
ii libbpf0 1:0.7.0-2
ii libc6 2.33-7
ii libcapstone4 4.0.2-5
ii libfdt1 1.6.1-1
ii libfuse3-3 3.10.5-1
ii libgcc-s1 12-20220319-1
ii libglib2.0-0 2.72.1-1
ii libgnutls30 3.7.4-2
ii libibverbs1 39.0-1+b1
ii libjpeg62-turbo 1:2.1.2-1
ii libnettle8 3.7.3-1
ii libnuma1 2.0.14-3
ii libpixman-1-0 0.40.0-1
ii libpmem1 1.11.1-3
ii libpng16-16 1.6.37-3
ii librdmacm1 39.0-1+b1
ii libsasl2-2 2.1.28+dfsg-4
ii libseccomp2 2.5.3-2
ii libslirp0 4.6.1-1
ii libudev1 250.4-1
ii liburing2 2.1-2
ii libvdeplug2 4.0.1-3
ii libxendevicemodel1 4.16.0+51-g0941d6cb-1+b1
ii libxenevtchn1 4.16.0+51-g0941d6cb-1+b1
ii libxenforeignmemory1 4.16.0+51-g0941d6cb-1+b1
ii libxengnttab1 4.16.0+51-g0941d6cb-1+b1
ii libxenmisc4.16 4.16.0+51-g0941d6cb-1+b1
ii libxenstore4 4.16.0+51-g0941d6cb-1+b1
ii libxentoolcore1 4.16.0+51-g0941d6cb-1+b1
ii libzstd1 1.5.2+dfsg-1
ii qemu-system-common 1:7.0+dfsg-1
ii qemu-system-data 1:7.0+dfsg-1
ii seabios 1.15.0-1
ii zlib1g 1:1.2.11.dfsg-4
Versions of packages qemu-system-x86 recommends:
ii ovmf 2022.02-3
pn qemu-block-extra <none>
pn qemu-system-gui <none>
ii qemu-utils 1:7.0+dfsg-1
Versions of packages qemu-system-x86 suggests:
ii samba 2:4.16.0+dfsg-6
pn vde2 <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 1:7.2+dfsg-1
On Sun, 29 May 2022 15:01:40 +0300 Michael Tokarev <[email protected]> wrote:
28.05.2022 01:28, Bob Weber wrote:
> I have this same problem when I upgraded a testing system on May 24. I also
installed:
>
> linux-image-5.17.0-2-amd64 from unstable
>
> This is the error from a (all) VM:
>
> vm: error: failed to set MSR 0xc0000104 to 0x100000000
>
> kvm: ../../target/i386/kvm/kvm.c:2996: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.
>
> When I downgraded the kernel to:
>
> linux-image-5.15.0-3-amd64/now 5.15.15-2 amd64 (my previous kernel)
Does it work with later kernels?
It looks like this problem doesn't occur in bookworm already
(yes I remember seeing this message with some earlier
qemu+kernel combination, but not in bookworm).
Let's close this bug report with bookworm version of qemu.
Thanks,
/mjt
--- End Message ---