Package: qemu-system-x86_64

root@libvirt-debian-9:/home/qemu# qemu-system-x86_64 -version
QEMU emulator version 2.8.1(Debian 1:2.8+dfsg-6+deb9u5)

While host is in load, (repoduced 100% while doing kernel compilation) if I try
to run qemu with tcg mode it crashes consistently:

ex: Set guest startup RAM size to X megs with: 
 
root@libvirt-debian-9:/home/qemu# gdb --args qemu-system-x86_64 -machine 
accel=tcg -m 1000000
(gdb) bt
#0  tcg_out_opc (opc=opc@entry=85, r=r@entry=0, rm=<optimized out>, x=x@entry=0,
    s=<optimized out>) at ./tcg/i386/tcg-target.inc.c:460
#1  0x0000555555829ed4 in tcg_out_push (reg=<optimized out>, s=0x5555561c6440 
<tcg_ctx>)
    at ./tcg/i386/tcg-target.inc.c:703
#2  tcg_target_qemu_prologue (s=0x5555561c6440 <tcg_ctx>) at 
./tcg/i386/tcg-target.inc.c:2343
#3  tcg_prologue_init (s=s@entry=0x5555561c6440 <tcg_ctx>) at ./tcg/tcg.c:394
#4  0x000055555582052e in tcg_exec_init (tb_size=<optimized out>) at 
./translate-all.c:831
#5  0x0000555555945c35 in tcg_init (ms=<optimized out>) at ./accel.c:42
#6  0x0000555555945d6e in accel_init_machine (ms=0x5555566df080, 
acc=0x5555566a82b0)
    at ./accel.c:70
#7  configure_accelerator (ms=0x5555566df080) at ./accel.c:109
#8  0x000055555580fda9 in main (argc=<optimized out>, argv=<optimized out>,
    envp=<optimized out>) at ./vl.c:4359


When host is not in load there is not problem, it works as expected.

root@libvirt-debian-9:/home/qemu# qemu-system-x86_64 -machine accel=tcg -m 
1000000
qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory

I am using Debian 9.

In debian-testing this is already fixed, so qemu version is the problem
here. I didn't bisect the commit that fixed it, if anyone is interesting
in backporting I can do that.

Thanks,

Katerina

Attachment: signature.asc
Description: PGP signature

Reply via email to