* Running kvm/use/kvmctl just segfault
@ 2009-09-13 8:38 shawn du
2009-09-13 10:24 ` Avi Kivity
0 siblings, 1 reply; 12+ messages in thread
From: shawn du @ 2009-09-13 8:38 UTC (permalink / raw)
To: kvm
Hi,
No matter what flatfile in the test/x86 directory I provide, it just
"Segmentation fault".
Does these tests still work?
Regards,
Shawn
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-13 8:38 Running kvm/use/kvmctl just segfault shawn du
@ 2009-09-13 10:24 ` Avi Kivity
2009-09-14 1:38 ` shawn du
0 siblings, 1 reply; 12+ messages in thread
From: Avi Kivity @ 2009-09-13 10:24 UTC (permalink / raw)
To: shawn du; +Cc: kvm
On 09/13/2009 11:38 AM, shawn du wrote:
> Hi,
>
> No matter what flatfile in the test/x86 directory I provide, it just
> "Segmentation fault".
> Does these tests still work?
>
>
The tests do work. How are you launching them?
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-13 10:24 ` Avi Kivity
@ 2009-09-14 1:38 ` shawn du
2009-09-14 5:12 ` Avi Kivity
0 siblings, 1 reply; 12+ messages in thread
From: shawn du @ 2009-09-14 1:38 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm
Are these commands right?
./kvmctl -s 1 -m 256 test/x86/smptest.flat
or ./kvmctl -s 1 -m 128 text/x86/bootstrap test/x86/smptest.flat
And I am using Linux kernel 2.6.27.18 downloaded from Ubuntu
repository, my qemu-kvm is qemu-kvm-0.11.0-rc1 downloaded from kvm
website.
Before that, I just make the kvm/libkvm and the kvm/user directory.
Thanks,
Shawn
On Sun, Sep 13, 2009 at 6:24 PM, Avi Kivity <avi@redhat.com> wrote:
> On 09/13/2009 11:38 AM, shawn du wrote:
>>
>> Hi,
>>
>> No matter what flatfile in the test/x86 directory I provide, it just
>> "Segmentation fault".
>> Does these tests still work?
>>
>>
>
> The tests do work. How are you launching them?
>
> --
> error compiling committee.c: too many arguments to function
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-14 1:38 ` shawn du
@ 2009-09-14 5:12 ` Avi Kivity
2009-09-14 7:12 ` shawn du
0 siblings, 1 reply; 12+ messages in thread
From: Avi Kivity @ 2009-09-14 5:12 UTC (permalink / raw)
To: shawn du; +Cc: kvm
On 09/14/2009 04:38 AM, shawn du wrote:
> Are these commands right?
>
> ./kvmctl -s 1 -m 256 test/x86/smptest.flat
> or ./kvmctl -s 1 -m 128 text/x86/bootstrap test/x86/smptest.flat
>
>
That is the correct way. However I haven't tested the smp tests in a
while (probably since kvm gained smp support), they're probably
completely bitrotted.
I am now in the process of eliminating kvmctl and running the tests
through qemu.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-14 5:12 ` Avi Kivity
@ 2009-09-14 7:12 ` shawn du
2009-09-14 7:18 ` Avi Kivity
0 siblings, 1 reply; 12+ messages in thread
From: shawn du @ 2009-09-14 7:12 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm
Thank you for your information.
Although those tests will be eliminated, I will try to fix them. I
just consider running these tests will be an easier and quicker way
for me to dissect kvm. If there is another way, please let me know.
Regards,
Shawn
On Mon, Sep 14, 2009 at 1:12 PM, Avi Kivity <avi@redhat.com> wrote:
> On 09/14/2009 04:38 AM, shawn du wrote:
>>
>> Are these commands right?
>>
>> ./kvmctl -s 1 -m 256 test/x86/smptest.flat
>> or ./kvmctl -s 1 -m 128 text/x86/bootstrap test/x86/smptest.flat
>>
>>
>
> That is the correct way. However I haven't tested the smp tests in a while
> (probably since kvm gained smp support), they're probably completely
> bitrotted.
>
> I am now in the process of eliminating kvmctl and running the tests through
> qemu.
>
> --
> I have a truly marvellous patch that fixes the bug which this
> signature is too narrow to contain.
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-14 7:12 ` shawn du
@ 2009-09-14 7:18 ` Avi Kivity
2009-09-14 12:07 ` Marcelo Tosatti
0 siblings, 1 reply; 12+ messages in thread
From: Avi Kivity @ 2009-09-14 7:18 UTC (permalink / raw)
To: shawn du; +Cc: kvm
On 09/14/2009 10:12 AM, shawn du wrote:
> Thank you for your information.
>
> Although those tests will be eliminated, I will try to fix them. I
> just consider running these tests will be an easier and quicker way
> for me to dissect kvm. If there is another way, please let me know.
>
I recommend moving smptest to use the real APIC, not the fake APIC
provided by kvmctl.
It's true that kvmctl is a lot easier to understand than qemu, that's a
downside of moving the testsuite to qemu.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-14 7:18 ` Avi Kivity
@ 2009-09-14 12:07 ` Marcelo Tosatti
2009-09-14 15:38 ` shawn du
0 siblings, 1 reply; 12+ messages in thread
From: Marcelo Tosatti @ 2009-09-14 12:07 UTC (permalink / raw)
To: Avi Kivity; +Cc: shawn du, kvm
On Mon, Sep 14, 2009 at 10:18:32AM +0300, Avi Kivity wrote:
> On 09/14/2009 10:12 AM, shawn du wrote:
>> Thank you for your information.
>>
>> Although those tests will be eliminated, I will try to fix them. I
>> just consider running these tests will be an easier and quicker way
>
> for me to dissect kvm. If there is another way, please let me know.
Yes, smp is broken (and its not worthwhile to fix the fake apic
support).
> I recommend moving smptest to use the real APIC, not the fake APIC
> provided by kvmctl.
+1.
> It's true that kvmctl is a lot easier to understand than qemu, that's a
> downside of moving the testsuite to qemu.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-14 12:07 ` Marcelo Tosatti
@ 2009-09-14 15:38 ` shawn du
2009-09-14 15:50 ` Avi Kivity
0 siblings, 1 reply; 12+ messages in thread
From: shawn du @ 2009-09-14 15:38 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: Avi Kivity, kvm
Well, in fact not only the smp test failed, all tests failed. I don't
know it is just me or not. But after debugging the kvmctl main.c and
libkvm.c code, I found out that it is the invocation to pre_kvm_run()
and post_kvm_run() caused the segfault, it is really mysterious. Then
I just commented out them, and the tests (including smp and others)
aborted at case KVM_EXIT_EXCEPTION, which seems not successful either.
This is all what I have done up to now. Thank you for your reply.
Shawn
On Mon, Sep 14, 2009 at 8:07 PM, Marcelo Tosatti <mtosatti@redhat.com> wrote:
> On Mon, Sep 14, 2009 at 10:18:32AM +0300, Avi Kivity wrote:
>> On 09/14/2009 10:12 AM, shawn du wrote:
>>> Thank you for your information.
>>>
>>> Although those tests will be eliminated, I will try to fix them. I
>>> just consider running these tests will be an easier and quicker way
>>
>> for me to dissect kvm. If there is another way, please let me know.
>
> Yes, smp is broken (and its not worthwhile to fix the fake apic
> support).
>
>> I recommend moving smptest to use the real APIC, not the fake APIC
>> provided by kvmctl.
>
> +1.
>
>> It's true that kvmctl is a lot easier to understand than qemu, that's a
>> downside of moving the testsuite to qemu.
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-14 15:38 ` shawn du
@ 2009-09-14 15:50 ` Avi Kivity
2009-09-15 2:33 ` shawn du
0 siblings, 1 reply; 12+ messages in thread
From: Avi Kivity @ 2009-09-14 15:50 UTC (permalink / raw)
To: shawn du; +Cc: Marcelo Tosatti, kvm
On 09/14/2009 06:38 PM, shawn du wrote:
> Well, in fact not only the smp test failed, all tests failed. I don't
> know it is just me or not. But after debugging the kvmctl main.c and
> libkvm.c code, I found out that it is the invocation to pre_kvm_run()
> and post_kvm_run() caused the segfault, it is really mysterious. Then
> I just commented out them, and the tests (including smp and others)
> aborted at case KVM_EXIT_EXCEPTION, which seems not successful either.
>
> This is all what I have done up to now. Thank you for your reply.
>
Are you running the latest qemu-kvm.git?
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-14 15:50 ` Avi Kivity
@ 2009-09-15 2:33 ` shawn du
2009-09-15 9:07 ` Avi Kivity
0 siblings, 1 reply; 12+ messages in thread
From: shawn du @ 2009-09-15 2:33 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, kvm
Yes, I am running the latest qemu-kvm.git against the not so latest
2.6.27.18 kernel in Ubuntu 8.10. Normal VMs just run smoothly. Is
there a problem?
Shawn
On Mon, Sep 14, 2009 at 11:50 PM, Avi Kivity <avi@redhat.com> wrote:
> On 09/14/2009 06:38 PM, shawn du wrote:
>>
>> Well, in fact not only the smp test failed, all tests failed. I don't
>> know it is just me or not. But after debugging the kvmctl main.c and
>> libkvm.c code, I found out that it is the invocation to pre_kvm_run()
>> and post_kvm_run() caused the segfault, it is really mysterious. Then
>> I just commented out them, and the tests (including smp and others)
>> aborted at case KVM_EXIT_EXCEPTION, which seems not successful either.
>>
>> This is all what I have done up to now. Thank you for your reply.
>>
>
> Are you running the latest qemu-kvm.git?
>
> --
> I have a truly marvellous patch that fixes the bug which this
> signature is too narrow to contain.
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-15 2:33 ` shawn du
@ 2009-09-15 9:07 ` Avi Kivity
2009-09-16 9:10 ` shawn du
0 siblings, 1 reply; 12+ messages in thread
From: Avi Kivity @ 2009-09-15 9:07 UTC (permalink / raw)
To: shawn du; +Cc: Marcelo Tosatti, kvm
On 09/15/2009 05:33 AM, shawn du wrote:
> Yes, I am running the latest qemu-kvm.git against the not so latest
> 2.6.27.18 kernel in Ubuntu 8.10. Normal VMs just run smoothly. Is
> there a problem?
>
It should work. If it doesn't, well, debug it with gdb.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Running kvm/use/kvmctl just segfault
2009-09-15 9:07 ` Avi Kivity
@ 2009-09-16 9:10 ` shawn du
0 siblings, 0 replies; 12+ messages in thread
From: shawn du @ 2009-09-16 9:10 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, kvm
After debugging with gdb, I find out the mistake is me.
It turns out that there should be three configures to do: in qemu-kvm
root, in kvm, and in kvm/user, sadly, I missed the one in the middle.
So, the consequence is that the definition of the type struct
kvm_callbacks is different between kvm/user/main.c and
kvm/libkvm/libkvm.c, and the consequence is that the
kvm->callbacks->pre_kvm_run is a wild pointer.
Still, I don't know it is me or not, the configure in kvm infinitely
loops, and says "./configure: line 135: cd: qemu: No such file or
directory".
Clearly, there misses a qemu directory in kvm.
Regards,
Shawn
On Tue, Sep 15, 2009 at 5:07 PM, Avi Kivity <avi@redhat.com> wrote:
> On 09/15/2009 05:33 AM, shawn du wrote:
>>
>> Yes, I am running the latest qemu-kvm.git against the not so latest
>> 2.6.27.18 kernel in Ubuntu 8.10. Normal VMs just run smoothly. Is
>> there a problem?
>>
>
> It should work. If it doesn't, well, debug it with gdb.
>
> --
> error compiling committee.c: too many arguments to function
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-09-16 9:10 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-13 8:38 Running kvm/use/kvmctl just segfault shawn du
2009-09-13 10:24 ` Avi Kivity
2009-09-14 1:38 ` shawn du
2009-09-14 5:12 ` Avi Kivity
2009-09-14 7:12 ` shawn du
2009-09-14 7:18 ` Avi Kivity
2009-09-14 12:07 ` Marcelo Tosatti
2009-09-14 15:38 ` shawn du
2009-09-14 15:50 ` Avi Kivity
2009-09-15 2:33 ` shawn du
2009-09-15 9:07 ` Avi Kivity
2009-09-16 9:10 ` shawn du
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).