Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484508 - app-emulation/qemu - guests with sys-kernel/gentoo-sources-3.10.7 fail to boot with "-cpu host" enabled - swapper/0 (1) used greatest stack depth: 6664 bytes left
Summary: app-emulation/qemu - guests with sys-kernel/gentoo-sources-3.10.7 fail to boo...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 483760
Blocks:
  Show dependency tree
 
Reported: 2013-09-10 18:40 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2014-05-04 13:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
screenshot (snapshot12.png,44.63 KB, image/png)
2013-09-10 18:40 UTC, Michael Mair-Keimberger (iamnr3)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (iamnr3) 2013-09-10 18:40:33 UTC
Created attachment 358432 [details]
screenshot

Host system is a stable gentoo with qemu-1.4.2 and gentoo-sources-3.10.7.

When i'm trying to boot a qemu guest (also a stable gentoo system) which has gentoo-sources-3.10.7 i'll get an kernel panic if i'm enable "-cpu host". (see screenshot)
Previous stable sources (gentoo-sources-3.8.13) works flawless.
After searching on google i also found this bug [1], which suggest disabling pmu emulation via "-cpu host,level=9". With this gentoo boot normal but still crash when i'm trying to shutdown the guest via acpi event "system_powerdown".
Guest still work if i'm using "-cpu qemu64"

This happens on amd64 and x86 guests.

The full start command for qemu guest:
/usr/bin/qemu-system-x86_64 -name gkde86 -runas kvm -monitor unix:/var/run/kvm/gkde86.sock,server,nowait -pidfile /var/run/kvm/gkde86.pid -m 2048 -smp 2 -k de -cpu host -enable-kvm -daemonize -device virtio-serial -chardev spicevmc,id=vdagent,name=vdagent -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -drive file=/dev/vms/gkde86,if=virtio,cache=none,aio=threads -netdev type=tap,id=gkde86_5,vhost=on,ifname=qtap5,script=no,downscript=no -device virtio-net-pci,netdev=gkde86_5,mac=DE:AD:CA:5E:0C:CF -spice port=5805,addr=192.168.2.60,password="",disable-ticketing -usb -usbdevice tablet -vga qxl

emerge --info                                                                                                                                                                                       
Portage 2.2.1 (default/linux/amd64/13.0/no-multilib, gcc-4.6.3, glibc-2.15-r3, 3.10.7-gentoo x86_64)                                                                                                                    
=================================================================                                                                                                                                                       
System uname: Linux-3.10.7-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5405_@_2.00GHz-with-gentoo-2.2                                                                                                                           
KiB Mem:    24740020 total,   7722476 free                                                                                                                                                                              
KiB Swap:    2047996 total,   2047996 free                                                                                                                                                                              
Timestamp of tree: Tue, 10 Sep 2013 04:45:01 +0000                                                                                                                                                                      
ld GNU ld (GNU Binutils) 2.23.1                                                                                                                                                                                         
app-shells/bash:          4.2_p45                                                                                                                                                                                       
dev-lang/python:          2.7.5-r2, 3.2.5-r2                                                                                                                                                                            
dev-util/cmake:           2.8.10.2-r2                                                                                                                                                                                   
dev-util/pkgconfig:       0.28                                                                                                                                                                                          
sys-apps/baselayout:      2.2                                                                                                                                                                                           
sys-apps/openrc:          0.11.8                                                                                                                                                                                        
sys-apps/sandbox:         2.6-r1                                                                                                                                                                                        
sys-devel/autoconf:       2.69                                                                                                                                                                                          
sys-devel/automake:       1.12.6, 1.13.4                                                                                                                                                                                
sys-devel/binutils:       2.23.1                                                                                                                                                                                        
sys-devel/gcc:            4.6.3                                                                                                                                                                                         
sys-devel/gcc-config:     1.7.3                                                                                                                                                                                         
sys-devel/libtool:        2.4-r1                                                                                                                                                                                        
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo local x11 sunrise virtualization squeezebox
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA logitechmediaserver-bin"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="        http://gentoo.supp.name/                                http://ftp.fi.muni.cz/pub/linux/gentoo/                         http://gentoo.mirror.web4u.cz/                          http://gentoo.mirror.dkm.cz/pub/gentoo/                         http://gentoo.ynet.sk/pub"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/data/public/overlays/local /mnt/data/public/overlays/layman/x11 /mnt/data/public/overlays/layman/sunrise /mnt/data/public/overlays/layman/virtualization /mnt/data/public/overlays/layman/squeezebox"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage/"
USE="acl acpi amd64 berkdb bzip2 cli cracklib crypt cups cxx dbus dri fortran gdbm gif iconv ipv6 mmx modules mudflap ncurses nls nptl openmp pam pbm pcre png readline session sqlite sse sse2 ssl ssse3 tcpd threads unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64 mips arm ppc ppc64 alpha sparc sparc64" QEMU_USER_TARGETS="i386 x86_64 mips arm ppc ppc64 alpha sparc sparc64" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="niash" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


[1] https://bugs.launchpad.net/qemu/+bug/1037675
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2013-09-11 01:37:41 UTC
At this moment I can't recall if we've backported something for qemu-1.5.3 or not but you might have more success there. But since you mentioned that bug, please attach the following output:

grep CONFIG_KVM /usr/src/linux-3.10.7-gentoo/.config
grep CONFIG_PARAVIRT /usr/src/linux-3.10.7-gentoo/.config
grep CONFIG_VIRT /usr/src/linux-3.10.7-gentoo/.config
Comment 2 Michael Mair-Keimberger (iamnr3) 2013-09-11 15:50:36 UTC
(In reply to Doug Goldstein from comment #1)
> At this moment I can't recall if we've backported something for qemu-1.5.3
> or not but you might have more success there. But since you mentioned that
> bug, please attach the following output:
> 
> grep CONFIG_KVM /usr/src/linux-3.10.7-gentoo/.config
> grep CONFIG_PARAVIRT /usr/src/linux-3.10.7-gentoo/.config
> grep CONFIG_VIRT /usr/src/linux-3.10.7-gentoo/.config

Below are my config settings (from the host):

grep CONFIG_KVM /usr/src/linux-3.10.7-gentoo/.config
CONFIG_KVM_GUEST=y
CONFIG_KVM_APIC_ARCHITECTURE=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
# CONFIG_KVM_AMD is not set

grep CONFIG_PARAVIRT /usr/src/linux-3.10.7-gentoo/.config
CONFIG_PARAVIRT=y
# CONFIG_PARAVIRT_DEBUG is not set
# CONFIG_PARAVIRT_SPINLOCKS is not set
CONFIG_PARAVIRT_TIME_ACCOUNTING=y
CONFIG_PARAVIRT_CLOCK=y

grep CONFIG_VIRT /usr/src/linux-3.10.7-gentoo/.config
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
CONFIG_VIRT_TO_BUS=y
CONFIG_VIRTIO_BLK=m
CONFIG_VIRTIO_NET=m
CONFIG_VIRTIO_CONSOLE=m
CONFIG_VIRT_DRIVERS=y
CONFIG_VIRTIO=m
CONFIG_VIRTIO_PCI=m
CONFIG_VIRTIO_BALLOON=m
# CONFIG_VIRTIO_MMIO is not set
CONFIG_VIRTUALIZATION=y

Later on i'll going to test qemu-1.5.3 and see if i have more luck.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2013-09-11 18:55:50 UTC
(In reply to Michael Mair-Keimberger (iamnr3) from comment #2)
> (In reply to Doug Goldstein from comment #1)
> > At this moment I can't recall if we've backported something for qemu-1.5.3
> > or not but you might have more success there. But since you mentioned that
> > bug, please attach the following output:
> > 
> > grep CONFIG_KVM /usr/src/linux-3.10.7-gentoo/.config
> > grep CONFIG_PARAVIRT /usr/src/linux-3.10.7-gentoo/.config
> > grep CONFIG_VIRT /usr/src/linux-3.10.7-gentoo/.config
> 
> Below are my config settings (from the host):

Sorry. I meant your guest. Or is it not Gentoo as well?
Comment 4 Michael Mair-Keimberger (iamnr3) 2013-09-11 19:27:39 UTC
(In reply to Doug Goldstein from comment #3)
> (In reply to Michael Mair-Keimberger (iamnr3) from comment #2)
> > (In reply to Doug Goldstein from comment #1)
> > > At this moment I can't recall if we've backported something for qemu-1.5.3
> > > or not but you might have more success there. But since you mentioned that
> > > bug, please attach the following output:
> > > 
> > > grep CONFIG_KVM /usr/src/linux-3.10.7-gentoo/.config
> > > grep CONFIG_PARAVIRT /usr/src/linux-3.10.7-gentoo/.config
> > > grep CONFIG_VIRT /usr/src/linux-3.10.7-gentoo/.config
> > 
> > Below are my config settings (from the host):
> 
> Sorry. I meant your guest. Or is it not Gentoo as well?

Ah, ok. I wasn't sure about from which sys you wanted those info :)

From the guest: (it's also gentoo)
gkde64 ltu # grep CONFIG_KVM /usr/src/linux-3.10.7-gentoo/.config
gkde64 ltu # grep CONFIG_PARAVIRT /usr/src/linux-3.10.7-gentoo/.config
gkde64 ltu # grep CONFIG_VIRT /usr/src/linux-3.10.7-gentoo/.config
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
CONFIG_VIRT_TO_BUS=y
CONFIG_VIRTIO_BLK=y
CONFIG_VIRTIO_NET=m
CONFIG_VIRTIO_CONSOLE=m
CONFIG_VIRT_DRIVERS=y
CONFIG_VIRTIO=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_BALLOON=m
# CONFIG_VIRTIO_MMIO is not set
CONFIG_VIRTUALIZATION=y
Comment 5 Michael Mair-Keimberger (iamnr3) 2013-09-12 16:19:49 UTC
Just tested qemu-1.5.3 which fixes the problem for me. I'll guess i'll gonna stay with 1.5.3 so this problem is actually solved for me. However, don't know if you wanna keep the bug open.
Comment 6 Michael Mair-Keimberger (iamnr3) 2014-05-04 13:44:10 UTC
I'm closing this bug as qemu-1.5* is already stable for quite some time.