[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Need help with qemu args debug

Ian Campbell-10 wrote
> That should be possible, but you haven't shown your code so I can't say
> where you have gone wrong.
> What I often do is create qemu-debug.sh:
>       #!/bin/sh
>       echo "Starting QEMU with: $*" >> /tmp/qemu-dbg.log
>       exec /usr/lib/xen/bin/qemu-system-i386 $@
> And then using device_model_override to call this instead of calling
> qemu directly.

Thanks for reply

Qxl graphic is needed for many things with spice, I start to try add it
following this: http://spice-space.org/docs/spice_user_manual.pdf

On libxl_dm.c add this line:
flexarray_append(dm_args, "-qxl 1");
before this:
flexarray_append(dm_args, "-spice");

With dm override give:
Starting QEMU with: -xen-domid 22 -chardev
socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-22,server,nowait -mon
chardev=libxl-cmd,mode=control -name PRECISEHVM -vnc,to=99 -qxl
1 -spice port=6000,tls-port=0,addr=,password=test,agent-mouse=on
-boot order=c -smp 2,maxcpus=3 -device
rtl8139,id=nic0,netdev=net0,mac=00:16:3e:6b:81:89 -netdev
type=tap,id=net0,ifname=tap22.0,script=no -M xenfv -m 1024 -drive
-drive file=/dev/sr0,if=ide,index=1,media=cdrom,format=raw

And on /var/log/xen/qemu-dm-PRECISEHVM.log:
qemu-system-i386: -qxl: invalid option

There isn't other -vga or -nographic options, I not undestand the problem,
without qxl work but on spice connect and load see the cirrus video card,
video performance is not good and is impossible resize resolution, qxl
graphic is needed.
I have also try -vga qxl but same problem.

Before i try to add permant dm_args debug on log with:
On libxl_dm.c add this line:
LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "dm_args: ", flexarray_contents(dm_args)
before this:
return (char **) flexarray_contents(dm_args);

libxl_dm.c: In function Ãlibxl__build_device_model_args_newÃ:
libxl_dm.c:582:2: error: too many arguments for format
cc1: all warnings being treated as errors

View this message in context: 
Sent from the Xen - Dev mailing list archive at Nabble.com.

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.