* [Qemu-devel] qemu-kvm log
@ 2012-09-10 10:44 Liu, Jinsong
2012-09-10 13:28 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Liu, Jinsong @ 2012-09-10 10:44 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti, qemu-devel@nongnu.org, kvm
Hi,
I'm recently debugging a qemu-kvm issue. I add some print code like 'fprintf(stderr, ...)', however I fail to see any info at stdio. Anyone can tell me where is qemu-kvm logfile, or, what I need do to record my fprintf info?
Thanks,
Jinsong
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] qemu-kvm log
2012-09-10 10:44 [Qemu-devel] qemu-kvm log Liu, Jinsong
@ 2012-09-10 13:28 ` Avi Kivity
2012-09-10 14:05 ` Liu, Jinsong
0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2012-09-10 13:28 UTC (permalink / raw)
To: Liu, Jinsong; +Cc: Marcelo Tosatti, qemu-devel@nongnu.org, kvm
On 09/10/2012 01:44 PM, Liu, Jinsong wrote:
> Hi,
>
> I'm recently debugging a qemu-kvm issue. I add some print code like 'fprintf(stderr, ...)', however I fail to see any info at stdio. Anyone can tell me where is qemu-kvm logfile, or, what I need do to record my fprintf info?
If you're running via libvirt, the log is in /var/log/libvirt/qemu. If
you're running from the command line and printf()s should end on your
terminal.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] qemu-kvm log
2012-09-10 13:28 ` Avi Kivity
@ 2012-09-10 14:05 ` Liu, Jinsong
0 siblings, 0 replies; 3+ messages in thread
From: Liu, Jinsong @ 2012-09-10 14:05 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, qemu-devel@nongnu.org, kvm
Avi Kivity wrote:
> On 09/10/2012 01:44 PM, Liu, Jinsong wrote:
>> Hi,
>>
>> I'm recently debugging a qemu-kvm issue. I add some print code like
>> 'fprintf(stderr, ...)', however I fail to see any info at stdio.
>> Anyone can tell me where is qemu-kvm logfile, or, what I need do to
>> record my fprintf info?
>
>
> If you're running via libvirt, the log is in /var/log/libvirt/qemu.
> If you're running from the command line and printf()s should end on
> your terminal.
Thanks!
I run qemu-kvm from command line, but due to could not initialize SDL, I run qemu command via VNC, like
1). test kvm-unit-tests: qemu-system-x86_64 -device testdev,chardev=testlog -chardev file,id=testlog,path=apic.out -serial stdio -kernel ./x86/apic.flat -cpu host
2). test kvm guest: qemu-system-x86_64 -smp2 -m 512 -hda test.qcow.img -cpu host
for case 1, there is some printf info of kvm-unit-tests on terminal but no qemu-kvm printf info;
for case 2, no qemu-kvm printf info on terminal;
Best Regards,
Jinsong
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-10 14:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-10 10:44 [Qemu-devel] qemu-kvm log Liu, Jinsong
2012-09-10 13:28 ` Avi Kivity
2012-09-10 14:05 ` Liu, Jinsong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).