All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Lucas Meneghel Rodrigues <lmr@redhat.com>
Cc: KVM mailing list <kvm@vger.kernel.org>,
	qemu mailing list <qemu-devel@nongnu.org>,
	Michael Goldish <mgoldish@redhat.com>,
	Jes Sorensen <Jes.Sorensen@redhat.com>,
	Dor Laor <dlaor@redhat.com>,
	Eduardo Habkost <ehabkost@redhat.com>,
	Avi Kivity <avi@redhat.com>
Subject: Re: qemu-kvm.git unittest failures
Date: Fri, 2 Jul 2010 19:44:25 -0300	[thread overview]
Message-ID: <20100702224424.GA6731@amt.cnet> (raw)
In-Reply-To: <1278001551.2659.308.camel@freedom>

On Thu, Jul 01, 2010 at 01:25:51PM -0300, Lucas Meneghel Rodrigues wrote:
> Now that we already have a mechanism to perform automated and regular
> unittesting, let me start by reporting the first problems I'm seeing
> with the unittests. Some (or all) of the problems might be due to
> inappropriate parameters passed to qemu, so if that's the case, please
> point out the correction.
> 
> 1) idt_test
> 
> /home/lmr/Code/autotest-git/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20100701-112446-wftX',server,nowait -serial unix:'/tmp/serial-20100701-112446-wftX',server,nowait -m 512 -kernel '/home/lmr/Code/autotest-git/client/tests/kvm/unittests/idt_test.flat' -vnc :1 -chardev file,id=testlog,path=/tmp/testlog-20100701-112446-wftX -device testdev,chardev=testlog  -S
> 11:24:48 DEBUG| VM appears to be alive with PID 12524
> 11:24:48 INFO | Waiting for unittest idt_test to complete, timeout 600, output in /tmp/testlog-20100701-112446-wftX
> 11:24:49 DEBUG| (qemu) (Process terminated with status 7)
> 11:24:49 ERROR| Unit test idt_test failed
> 11:24:49 INFO | Unit test log collected and available under /home/lmr/Code/autotest-git/client/results/default/kvm.unittest/debug/idt_test.log
> 
> Config entry:
> 
> [idt_test]
> file = idt_test.flat
> 
> Means no additional params other than the flat file is being used - see the command line used above. The log is not very helpful stating what's going wrong:

This is fixed by kvm.git's:

commit 6a7382e966e07f10137b7d6106ebabfeb76998d9
Author: Avi Kivity <avi@redhat.com>
Date:   Thu Jun 10 17:02:15 2010 +0300

    KVM: Fix mov cr4 #GP at wrong instruction

> 
> """
> enabling apic
> Starting IDT test
> unhandled excecption
> """
> 
> Log is attached as well.

Problem caused by a recent change, fix committed to qemu-kvm.git.

> 2) access
> 
> /home/lmr/Code/autotest-git/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20100701-112446-wftX',server,nowait -serial unix:'/tmp/serial-20100701-112446-wftX',server,nowait -m 512 -kernel '/home/lmr/Code/autotest-git/client/tests/kvm/unittests/access.flat' -vnc :1 -chardev file,id=testlog,path=/tmp/testlog-20100701-112446-wftX -device testdev,chardev=testlog  -S
> 11:25:50 DEBUG| VM appears to be alive with PID 12636
> 11:25:50 INFO | Waiting for unittest access to complete, timeout 600, output in /tmp/testlog-20100701-112446-wftX
> 11:29:28 DEBUG| (qemu) (Process terminated with status 1)
> 11:29:29 ERROR| Unit test access failed
> 11:29:29 INFO | Unit test log collected and available under /home/lmr/Code/autotest-git/client/results/default/kvm.unittest/debug/access.log
> 
> Config entry:
> 
> [access]
> file = access.flat
> 
> Massive log, compressed and attached.

run
test pde.p user: FAIL: error code 5 expected 4
test pte.rw pde.p user: FAIL: error code 5 expected 4
test pte.user pde.p user: FAIL: error code 5 expected 4
test pte.rw pte.user pde.p user: FAIL: error code 5 expected 4
test pte.a pde.p user: FAIL: error code 5 expected 4
test pte.rw pte.a pde.p user: FAIL: error code 5 expected 4
test pte.user pte.a pde.p user: FAIL: error code 5 expected 4

P flag (bit 0).
This flag is 0 if there is no valid translation for the linear address
because the P
flag was 0 in one of the paging-structure entries used to translate that
address.

Avi, a walk ignoring access permissions should be done to properly set
the P flag on error code. Does anybody care?

> 3) apic
> 
> /home/lmr/Code/autotest-git/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20100701-112446-wftX',server,nowait -serial unix:'/tmp/serial-20100701-112446-wftX',server,nowait -m 512 -kernel '/home/lmr/Code/autotest-git/client/tests/kvm/unittests/apic.flat' -vnc :1 -chardev file,id=testlog,path=/tmp/testlog-20100701-112446-wftX -device testdev,chardev=testlog  -S
> 11:29:30 DEBUG| VM appears to be alive with PID 12713
> 11:29:30 INFO | Waiting for unittest apic to complete, timeout 600, output in /tmp/testlog-20100701-112446-wftX
> 11:30:55 WARNI| VM 'vm1' failed to produce a screendump
> 11:31:46 WARNI| VM 'vm1' failed to produce a screendump
> 11:36:03 WARNI| VM 'vm1' failed to produce a screendump
> 11:36:49 WARNI| VM 'vm1' failed to produce a screendump
> 11:38:17 WARNI| VM 'vm1' failed to produce a screendump
> 11:39:31 DEBUG| Timeout elapsed
> 11:39:31 ERROR| Exception happened during apic: Timeout elapsed (600s)
> 11:39:31 INFO | Unit test log collected and available under /home/lmr/Code/autotest-git/client/results/default/kvm.unittest/debug/apic.log
> 
> Config entry:
> 
> [apic]
> file = apic.flat
> smp = 2
> extra_params: -cpu qemu64,+x2apic
> 
> So, -smp 2 and -cpu qemu64,+x2apic were used on the command line.
> 
> Log attached. I am not sure whether more time is necessary to run the test. Please advise.
> 
> 4) emulator
> /home/lmr/Code/autotest-git/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20100701-112446-wftX',server,nowait -serial unix:'/tmp/serial-20100701-112446-wftX',server,nowait -m 512 -kernel '/home/lmr/Code/autotest-git/client/tests/kvm/unittests/emulator.flat' -vnc :1 -chardev file,id=testlog,path=/tmp/testlog-20100701-112446-wftX -device testdev,chardev=testlog  -S
> 11:39:33 DEBUG| VM appears to be alive with PID 12860
> 11:39:33 INFO | Waiting for unittest emulator to complete, timeout 600, output in /tmp/testlog-20100701-112446-wftX
> 11:49:33 DEBUG| Timeout elapsed
> 11:49:33 ERROR| Exception happened during emulator: Timeout elapsed (600s)
> 11:49:33 INFO | Unit test log collected and available under /home/lmr/Code/autotest-git/client/results/default/kvm.unittest/debug/emulator.log

Works for me with kvm.git.

> Config entry:
> 
> [emulator]
> file = emulator.flat
> 
> Log attached. This was also a timeout issue. Please advise.
> 
> The other tests did end up good. I hope this is a good start :)

Its great, thanks!


WARNING: multiple messages have this Message-ID (diff)
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Lucas Meneghel Rodrigues <lmr@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>,
	KVM mailing list <kvm@vger.kernel.org>,
	Michael Goldish <mgoldish@redhat.com>,
	Dor Laor <dlaor@redhat.com>,
	qemu mailing list <qemu-devel@nongnu.org>,
	Avi Kivity <avi@redhat.com>,
	Jes Sorensen <Jes.Sorensen@redhat.com>
Subject: [Qemu-devel] Re: qemu-kvm.git unittest failures
Date: Fri, 2 Jul 2010 19:44:25 -0300	[thread overview]
Message-ID: <20100702224424.GA6731@amt.cnet> (raw)
In-Reply-To: <1278001551.2659.308.camel@freedom>

On Thu, Jul 01, 2010 at 01:25:51PM -0300, Lucas Meneghel Rodrigues wrote:
> Now that we already have a mechanism to perform automated and regular
> unittesting, let me start by reporting the first problems I'm seeing
> with the unittests. Some (or all) of the problems might be due to
> inappropriate parameters passed to qemu, so if that's the case, please
> point out the correction.
> 
> 1) idt_test
> 
> /home/lmr/Code/autotest-git/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20100701-112446-wftX',server,nowait -serial unix:'/tmp/serial-20100701-112446-wftX',server,nowait -m 512 -kernel '/home/lmr/Code/autotest-git/client/tests/kvm/unittests/idt_test.flat' -vnc :1 -chardev file,id=testlog,path=/tmp/testlog-20100701-112446-wftX -device testdev,chardev=testlog  -S
> 11:24:48 DEBUG| VM appears to be alive with PID 12524
> 11:24:48 INFO | Waiting for unittest idt_test to complete, timeout 600, output in /tmp/testlog-20100701-112446-wftX
> 11:24:49 DEBUG| (qemu) (Process terminated with status 7)
> 11:24:49 ERROR| Unit test idt_test failed
> 11:24:49 INFO | Unit test log collected and available under /home/lmr/Code/autotest-git/client/results/default/kvm.unittest/debug/idt_test.log
> 
> Config entry:
> 
> [idt_test]
> file = idt_test.flat
> 
> Means no additional params other than the flat file is being used - see the command line used above. The log is not very helpful stating what's going wrong:

This is fixed by kvm.git's:

commit 6a7382e966e07f10137b7d6106ebabfeb76998d9
Author: Avi Kivity <avi@redhat.com>
Date:   Thu Jun 10 17:02:15 2010 +0300

    KVM: Fix mov cr4 #GP at wrong instruction

> 
> """
> enabling apic
> Starting IDT test
> unhandled excecption
> """
> 
> Log is attached as well.

Problem caused by a recent change, fix committed to qemu-kvm.git.

> 2) access
> 
> /home/lmr/Code/autotest-git/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20100701-112446-wftX',server,nowait -serial unix:'/tmp/serial-20100701-112446-wftX',server,nowait -m 512 -kernel '/home/lmr/Code/autotest-git/client/tests/kvm/unittests/access.flat' -vnc :1 -chardev file,id=testlog,path=/tmp/testlog-20100701-112446-wftX -device testdev,chardev=testlog  -S
> 11:25:50 DEBUG| VM appears to be alive with PID 12636
> 11:25:50 INFO | Waiting for unittest access to complete, timeout 600, output in /tmp/testlog-20100701-112446-wftX
> 11:29:28 DEBUG| (qemu) (Process terminated with status 1)
> 11:29:29 ERROR| Unit test access failed
> 11:29:29 INFO | Unit test log collected and available under /home/lmr/Code/autotest-git/client/results/default/kvm.unittest/debug/access.log
> 
> Config entry:
> 
> [access]
> file = access.flat
> 
> Massive log, compressed and attached.

run
test pde.p user: FAIL: error code 5 expected 4
test pte.rw pde.p user: FAIL: error code 5 expected 4
test pte.user pde.p user: FAIL: error code 5 expected 4
test pte.rw pte.user pde.p user: FAIL: error code 5 expected 4
test pte.a pde.p user: FAIL: error code 5 expected 4
test pte.rw pte.a pde.p user: FAIL: error code 5 expected 4
test pte.user pte.a pde.p user: FAIL: error code 5 expected 4

P flag (bit 0).
This flag is 0 if there is no valid translation for the linear address
because the P
flag was 0 in one of the paging-structure entries used to translate that
address.

Avi, a walk ignoring access permissions should be done to properly set
the P flag on error code. Does anybody care?

> 3) apic
> 
> /home/lmr/Code/autotest-git/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20100701-112446-wftX',server,nowait -serial unix:'/tmp/serial-20100701-112446-wftX',server,nowait -m 512 -kernel '/home/lmr/Code/autotest-git/client/tests/kvm/unittests/apic.flat' -vnc :1 -chardev file,id=testlog,path=/tmp/testlog-20100701-112446-wftX -device testdev,chardev=testlog  -S
> 11:29:30 DEBUG| VM appears to be alive with PID 12713
> 11:29:30 INFO | Waiting for unittest apic to complete, timeout 600, output in /tmp/testlog-20100701-112446-wftX
> 11:30:55 WARNI| VM 'vm1' failed to produce a screendump
> 11:31:46 WARNI| VM 'vm1' failed to produce a screendump
> 11:36:03 WARNI| VM 'vm1' failed to produce a screendump
> 11:36:49 WARNI| VM 'vm1' failed to produce a screendump
> 11:38:17 WARNI| VM 'vm1' failed to produce a screendump
> 11:39:31 DEBUG| Timeout elapsed
> 11:39:31 ERROR| Exception happened during apic: Timeout elapsed (600s)
> 11:39:31 INFO | Unit test log collected and available under /home/lmr/Code/autotest-git/client/results/default/kvm.unittest/debug/apic.log
> 
> Config entry:
> 
> [apic]
> file = apic.flat
> smp = 2
> extra_params: -cpu qemu64,+x2apic
> 
> So, -smp 2 and -cpu qemu64,+x2apic were used on the command line.
> 
> Log attached. I am not sure whether more time is necessary to run the test. Please advise.
> 
> 4) emulator
> /home/lmr/Code/autotest-git/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20100701-112446-wftX',server,nowait -serial unix:'/tmp/serial-20100701-112446-wftX',server,nowait -m 512 -kernel '/home/lmr/Code/autotest-git/client/tests/kvm/unittests/emulator.flat' -vnc :1 -chardev file,id=testlog,path=/tmp/testlog-20100701-112446-wftX -device testdev,chardev=testlog  -S
> 11:39:33 DEBUG| VM appears to be alive with PID 12860
> 11:39:33 INFO | Waiting for unittest emulator to complete, timeout 600, output in /tmp/testlog-20100701-112446-wftX
> 11:49:33 DEBUG| Timeout elapsed
> 11:49:33 ERROR| Exception happened during emulator: Timeout elapsed (600s)
> 11:49:33 INFO | Unit test log collected and available under /home/lmr/Code/autotest-git/client/results/default/kvm.unittest/debug/emulator.log

Works for me with kvm.git.

> Config entry:
> 
> [emulator]
> file = emulator.flat
> 
> Log attached. This was also a timeout issue. Please advise.
> 
> The other tests did end up good. I hope this is a good start :)

Its great, thanks!

       reply	other threads:[~2010-07-02 22:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1278001551.2659.308.camel@freedom>
2010-07-02 22:44 ` Marcelo Tosatti [this message]
2010-07-02 22:44   ` [Qemu-devel] Re: qemu-kvm.git unittest failures Marcelo Tosatti
2010-07-03 10:25   ` Avi Kivity
2010-07-03 10:25     ` [Qemu-devel] " Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100702224424.GA6731@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=Jes.Sorensen@redhat.com \
    --cc=avi@redhat.com \
    --cc=dlaor@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=lmr@redhat.com \
    --cc=mgoldish@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.