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

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



On Wed, 2012-02-29 at 12:44 +0000, Fantu wrote:
> 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");

Doesn't this need to be flexarray_append_pair(dm_args, "-qxl", "1") or
else the actual argument will be literally "-qxl 1"?

(probably the bad quoting in the example I gave has lead to the
qemu-debug.sh "correcting" this for you. I think I should have said
either 
        exec /usr/lib/xen/bin/qemu-system-i386 "$@"
or
        exec /usr/lib/xen/bin/qemu-system-i386 "$*"
(I can never remember which is correct)

> 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 127.0.0.1:0,to=99 -qxl
> 1 -spice port=6000,tls-port=0,addr=0.0.0.0,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
> file=/mnt/vm/disks/PRECISEHVM.disk1.xm,if=ide,index=0,media=disk,format=raw
> -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.

You have tried two different syntaxes here, which one is the correct
qemu command line syntax?

I think you need to consult the qemu documentation to determine what the
correct command line syntax is supposed to be. 

Perhaps it would be useful to get this working with a normal qemu (e.g.
emulated guest) process before trying to make it work with Xen?

> 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)
> );

flexarray_contents returns a "char **" -- you would need to loop over
that array printing each element in turn until you find NULL.

> before this:
> return (char **) flexarray_contents(dm_args);
> 
> Show:
> libxl_dm.c: In function Ãlibxl__build_device_model_args_newÃ:
> libxl_dm.c:582:2: error: too many arguments for format
> [-Werror=format-extra-args]
> cc1: all warnings being treated as errors
> 
> 
> 
> --
> View this message in context: 
> http://xen.1045712.n5.nabble.com/Need-help-with-qemu-args-debug-tp5524689p5524861.html
> Sent from the Xen - Dev mailing list archive at Nabble.com.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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