kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 答复: I'm now looking into kvm-unit-tests and encounted with some problems.
       [not found] <55DC70BE.6030704@huawei.com>
@ 2015-08-26  0:40 ` Huangpeng (Peter)
  2015-08-26  1:25   ` Jinjian (Ken)
  2015-08-26  8:55   ` 答复: " Levente Kurusa
  0 siblings, 2 replies; 6+ messages in thread
From: Huangpeng (Peter) @ 2015-08-26  0:40 UTC (permalink / raw)
  To: Jinjian (Ken), drjones@redhat.com, pbonzini@redhat.com
  Cc: Gonglei (Arei), Zhanghailiang, kvm@vger.kernel.org

You should add kvm maillinglist too.

-----邮件原件-----
发件人: Jinjian (Ken) 
发送时间: 2015年8月25日 21:42
收件人: drjones@redhat.com; pbonzini@redhat.com
抄送: Huangpeng (Peter); Gonglei (Arei); Zhanghailiang
主题: I'm now looking into kvm-unit-tests and encounted with some problems.

Hi all:
    I'm now looking into kvm-unit-tests and encounted with some problems.

1. when I run run_test.sh, it reported "exec: {config_fd}: not found".
how and where to define it?

2. all tests run with -smp 2(or 3) hang.
for example, run apic unittest, command as follows:
qemu-kvm --enable-kvm -device pc-testdev -device
isa-debug-exit,iobase=0xf4,iosize=0x4 -serial stdio -device pci-testdev -kernel x86/apic.flat -smp 2 -vnc none
result: enter into an endless loop
the related codes are:
x86/apic.c
   test_sti_nmi()
         on_cpu_async(1, sti_loop, 0);

   static void sti_loop(void *ignore)
   {
      unsigned k = 0;

      while (sti_loop_active) {
        sti_nop((char *)(ulong)((k++ * 4096) % (128 * 1024 * 1024)));
      }
   }

3. s3 kvm-unit-test hang
run s3 unittest, command as follows:
qemu-kvm --enable-kvm -device pc-testdev -device
isa-debug-exit,iobase=0xf4,iosize=0x4 -serial stdio -device pci-testdev -kernel x86/s3.flat -vnc none
s3 hang at resume event
logs:
RSDP is at f62c0
RSDT is at 7fe16a9
FADT is at 7fe0bda
FACS is at 7fe0000
resume vector addr is 7fe000c
copy resume code from 400350

4.qemu exit and fail even after the problematic code is commented, when we run emulate unittest.
run emulate unittest,command as follows:
qemu-kvm --enable-kvm -device pc-testdev -device
isa-debug-exit,iobase=0xf4,iosize=0x4  -serial stdio -device pci-testdev -kernel x86/emulator.flat -vnc none
result: qemu exit when do test_muldiv
logs:
PASS: imul rax, mem, imm
unhandled cpu excecption 8

If The code which cause qemu exit is commented, the test also fail
logs:
FAIL: mov null, %ss

Question:
What's the cause of the problem at your view? looking forward for your reply.

Thank you in advance.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: I'm now looking into kvm-unit-tests and encounted with some problems.
  2015-08-26  0:40 ` 答复: I'm now looking into kvm-unit-tests and encounted with some problems Huangpeng (Peter)
@ 2015-08-26  1:25   ` Jinjian (Ken)
  2015-08-26  8:55   ` 答复: " Levente Kurusa
  1 sibling, 0 replies; 6+ messages in thread
From: Jinjian (Ken) @ 2015-08-26  1:25 UTC (permalink / raw)
  To: Huangpeng (Peter), drjones@redhat.com, pbonzini@redhat.com
  Cc: Gonglei (Arei), Zhanghailiang, kvm@vger.kernel.org, guoyanjuan

To Peter,
    Thank you very much!
    I'm sorry this is my first kvm mail, and have no experience.

On 2015/8/26 8:40, Huangpeng (Peter) wrote:
> You should add kvm maillinglist too.
>
> -----邮件原件-----
> 发件人: Jinjian (Ken)
> 发送时间: 2015年8月25日 21:42
> 收件人: drjones@redhat.com; pbonzini@redhat.com
> 抄送: Huangpeng (Peter); Gonglei (Arei); Zhanghailiang
> 主题: I'm now looking into kvm-unit-tests and encounted with some problems.
>
> Hi all:
>      I'm now looking into kvm-unit-tests and encounted with some problems.
>
> 1. when I run run_test.sh, it reported "exec: {config_fd}: not found".
> how and where to define it?
>
> 2. all tests run with -smp 2(or 3) hang.
> for example, run apic unittest, command as follows:
> qemu-kvm --enable-kvm -device pc-testdev -device
> isa-debug-exit,iobase=0xf4,iosize=0x4 -serial stdio -device pci-testdev -kernel x86/apic.flat -smp 2 -vnc none
> result: enter into an endless loop
> the related codes are:
> x86/apic.c
>     test_sti_nmi()
>           on_cpu_async(1, sti_loop, 0);
>
>     static void sti_loop(void *ignore)
>     {
>        unsigned k = 0;
>
>        while (sti_loop_active) {
>          sti_nop((char *)(ulong)((k++ * 4096) % (128 * 1024 * 1024)));
>        }
>     }
>
> 3. s3 kvm-unit-test hang
> run s3 unittest, command as follows:
> qemu-kvm --enable-kvm -device pc-testdev -device
> isa-debug-exit,iobase=0xf4,iosize=0x4 -serial stdio -device pci-testdev -kernel x86/s3.flat -vnc none
> s3 hang at resume event
> logs:
> RSDP is at f62c0
> RSDT is at 7fe16a9
> FADT is at 7fe0bda
> FACS is at 7fe0000
> resume vector addr is 7fe000c
> copy resume code from 400350
>
> 4.qemu exit and fail even after the problematic code is commented, when we run emulate unittest.
> run emulate unittest,command as follows:
> qemu-kvm --enable-kvm -device pc-testdev -device
> isa-debug-exit,iobase=0xf4,iosize=0x4  -serial stdio -device pci-testdev -kernel x86/emulator.flat -vnc none
> result: qemu exit when do test_muldiv
> logs:
> PASS: imul rax, mem, imm
> unhandled cpu excecption 8
>
> If The code which cause qemu exit is commented, the test also fail
> logs:
> FAIL: mov null, %ss
>
> Question:
> What's the cause of the problem at your view? looking forward for your reply.
>
> Thank you in advance.
>
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 答复: I'm now looking into kvm-unit-tests and encounted with some problems.
  2015-08-26  0:40 ` 答复: I'm now looking into kvm-unit-tests and encounted with some problems Huangpeng (Peter)
  2015-08-26  1:25   ` Jinjian (Ken)
@ 2015-08-26  8:55   ` Levente Kurusa
  2015-08-26 11:29     ` Jinjian (Ken)
  1 sibling, 1 reply; 6+ messages in thread
From: Levente Kurusa @ 2015-08-26  8:55 UTC (permalink / raw)
  To: Jinjian (Ken)
  Cc: drjones, Huangpeng (Peter), pbonzini, Gonglei (Arei),
	Zhanghailiang, kvm

Hello.

> Hi all:
>     I'm now looking into kvm-unit-tests and encounted with some problems.
> 
> 1. when I run run_test.sh, it reported "exec: {config_fd}: not found".
> how and where to define it?

Interesting, I don't know where this is coming from, maybe your shell?

> 
> 2. all tests run with -smp 2(or 3) hang.
> for example, run apic unittest, command as follows:
> qemu-kvm --enable-kvm -device pc-testdev -device
> isa-debug-exit,iobase=0xf4,iosize=0x4 -serial stdio -device pci-testdev
> -kernel x86/apic.flat -smp 2 -vnc none
> result: enter into an endless loop
> the related codes are:
> x86/apic.c
>    test_sti_nmi()
>          on_cpu_async(1, sti_loop, 0);
> 
>    static void sti_loop(void *ignore)
>    {
>       unsigned k = 0;
> 
>       while (sti_loop_active) {
>         sti_nop((char *)(ulong)((k++ * 4096) % (128 * 1024 * 1024)));
>       }
>    }
> 
> 3. s3 kvm-unit-test hang
> run s3 unittest, command as follows:
> qemu-kvm --enable-kvm -device pc-testdev -device
> isa-debug-exit,iobase=0xf4,iosize=0x4 -serial stdio -device pci-testdev
> -kernel x86/s3.flat -vnc none
> s3 hang at resume event
> logs:
> RSDP is at f62c0
> RSDT is at 7fe16a9
> FADT is at 7fe0bda
> FACS is at 7fe0000
> resume vector addr is 7fe000c
> copy resume code from 400350
> 
> 4.qemu exit and fail even after the problematic code is commented, when we
> run emulate unittest.
> run emulate unittest,command as follows:
> qemu-kvm --enable-kvm -device pc-testdev -device
> isa-debug-exit,iobase=0xf4,iosize=0x4  -serial stdio -device pci-testdev
> -kernel x86/emulator.flat -vnc none
> result: qemu exit when do test_muldiv
> logs:
> PASS: imul rax, mem, imm
> unhandled cpu excecption 8
> 
> If The code which cause qemu exit is commented, the test also fail
> logs:
> FAIL: mov null, %ss
> 
> Question:
> What's the cause of the problem at your view? looking forward for your reply.

None of the commands fail for me on an x86_64 machine with QEMU 2.4.50 on Linux
4.1.5-200.fc22.x86_64 with kvm-unit-tests git-a5d12b9

I think a good next step would be to let us know your setup...

Thanks,
        Levente


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 答复: I'm now looking into kvm-unit-tests and encounted with some problems.
  2015-08-26  8:55   ` 答复: " Levente Kurusa
@ 2015-08-26 11:29     ` Jinjian (Ken)
       [not found]       ` <55E66DFB.1020204@huawei.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Jinjian (Ken) @ 2015-08-26 11:29 UTC (permalink / raw)
  To: Levente Kurusa
  Cc: drjones, Huangpeng (Peter), pbonzini, Gonglei (Arei),
	Zhanghailiang, kvm, guoyanjuan

Thank you for your reply.

On 2015/8/26 16:55, Levente Kurusa wrote:
> Hello.
>
>> Hi all:
>>      I'm now looking into kvm-unit-tests and encounted with some problems.
>>
>> 1. when I run run_test.sh, it reported "exec: {config_fd}: not found".
>> how and where to define it?
>
> Interesting, I don't know where this is coming from, maybe your shell?
>
It reported in my bash shell session, that was supplied by RHEL 7.1.
>>
>> 2. all tests run with -smp 2(or 3) hang.
>> for example, run apic unittest, command as follows:
>> qemu-kvm --enable-kvm -device pc-testdev -device
>> isa-debug-exit,iobase=0xf4,iosize=0x4 -serial stdio -device pci-testdev
>> -kernel x86/apic.flat -smp 2 -vnc none
>> result: enter into an endless loop
>> the related codes are:
>> x86/apic.c
>>     test_sti_nmi()
>>           on_cpu_async(1, sti_loop, 0);
>>
>>     static void sti_loop(void *ignore)
>>     {
>>        unsigned k = 0;
>>
>>        while (sti_loop_active) {
>>          sti_nop((char *)(ulong)((k++ * 4096) % (128 * 1024 * 1024)));
>>        }
>>     }
>>
>> 3. s3 kvm-unit-test hang
>> run s3 unittest, command as follows:
>> qemu-kvm --enable-kvm -device pc-testdev -device
>> isa-debug-exit,iobase=0xf4,iosize=0x4 -serial stdio -device pci-testdev
>> -kernel x86/s3.flat -vnc none
>> s3 hang at resume event
>> logs:
>> RSDP is at f62c0
>> RSDT is at 7fe16a9
>> FADT is at 7fe0bda
>> FACS is at 7fe0000
>> resume vector addr is 7fe000c
>> copy resume code from 400350
>>
>> 4.qemu exit and fail even after the problematic code is commented, when we
>> run emulate unittest.
>> run emulate unittest,command as follows:
>> qemu-kvm --enable-kvm -device pc-testdev -device
>> isa-debug-exit,iobase=0xf4,iosize=0x4  -serial stdio -device pci-testdev
>> -kernel x86/emulator.flat -vnc none
>> result: qemu exit when do test_muldiv
>> logs:
>> PASS: imul rax, mem, imm
>> unhandled cpu excecption 8
>>
>> If The code which cause qemu exit is commented, the test also fail
>> logs:
>> FAIL: mov null, %ss
>>
>> Question:
>> What's the cause of the problem at your view? looking forward for your reply.
>
> None of the commands fail for me on an x86_64 machine with QEMU 2.4.50 on Linux
> 4.1.5-200.fc22.x86_64 with kvm-unit-tests git-a5d12b9

I get codes from 
'https://www.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/', build in 
my kvm env.
OS info: RHEL 7.1
Linux version: 3.10.0
Qemu version: 2.3.0
CPU of machine: Intel(R) Xeon(R) CPU           X5670  @ 2.93GHz

Are these infomation adequate?

I will use your configurations to run kvm-unit-tests too.

>
> I think a good next step would be to let us know your setup...
>
> Thanks,
>          Levente
>
>
> .
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 答复: I'm now looking into kvm-unit-tests and encounted with some problems.
       [not found]       ` <55E66DFB.1020204@huawei.com>
@ 2015-09-07 12:32         ` Paolo Bonzini
  2015-09-08 17:21           ` Lucas Meneghel Rodrigues
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Bonzini @ 2015-09-07 12:32 UTC (permalink / raw)
  To: Guoyanjuan, Jinjian (Ken), Levente Kurusa
  Cc: drjones, Huangpeng (Peter), Gonglei (Arei), Zhanghailiang, kvm,
	Lucas Meneghel Rodrigues



On 02/09/2015 05:33, Guoyanjuan wrote:
> Hi,  I found my code is old and I git the latest code from
> <https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git>https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git,
> some problems are solved but one.
> 
> when I run emulate unittest, it failed.
> 
> command:
> qemu-kvm --enable-kvm -device pc-testdev -device
> isa-debug-exit,iobase=0xf4,iosize=0x4 -serial stdio -device
> pci-testdev -kernel x86/emulator.flat -vnc none
> 
> logs:
> FAIL: mov null, %ss

Lucas Meneghel Rodrigues also reproduced this, it seems to be processor
dependent.  I haven't debugged it yet because it doesn't reproduce on
the two systems I've tested on (Ivy Bridge i7 and Haswell Xeon E5).

Can you please also try loading the kvm-intel module with the
"unrestricted_guest=0" parameter, and see if it also reproduce?

It might be a processor bug too.

Paolo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 答复: I'm now looking into kvm-unit-tests and encounted with some problems.
  2015-09-07 12:32         ` Paolo Bonzini
@ 2015-09-08 17:21           ` Lucas Meneghel Rodrigues
  0 siblings, 0 replies; 6+ messages in thread
From: Lucas Meneghel Rodrigues @ 2015-09-08 17:21 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Guoyanjuan, Jinjian (Ken), Levente Kurusa, drjones,
	Huangpeng (Peter), Gonglei (Arei), Zhanghailiang, kvm

Paolo,

I did try with unrestricted_guest=0, and I'm still getting the failure.

On Mon, Sep 7, 2015 at 9:32 AM, Paolo Bonzini <pbonzini@redhat.com> 
wrote:
> 
> 
> On 02/09/2015 05:33, Guoyanjuan wrote:
>>  Hi,  I found my code is old and I git the latest code from
>>  
>> <https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git>https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git,
>>  some problems are solved but one.
>> 
>>  when I run emulate unittest, it failed.
>> 
>>  command:
>>  qemu-kvm --enable-kvm -device pc-testdev -device
>>  isa-debug-exit,iobase=0xf4,iosize=0x4 -serial stdio -device
>>  pci-testdev -kernel x86/emulator.flat -vnc none
>> 
>>  logs:
>>  FAIL: mov null, %ss
> 
> Lucas Meneghel Rodrigues also reproduced this, it seems to be 
> processor
> dependent.  I haven't debugged it yet because it doesn't reproduce on
> the two systems I've tested on (Ivy Bridge i7 and Haswell Xeon E5).
> 
> Can you please also try loading the kvm-intel module with the
> "unrestricted_guest=0" parameter, and see if it also reproduce?
> 
> It might be a processor bug too.
> 
> Paolo
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-08 17:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <55DC70BE.6030704@huawei.com>
2015-08-26  0:40 ` 答复: I'm now looking into kvm-unit-tests and encounted with some problems Huangpeng (Peter)
2015-08-26  1:25   ` Jinjian (Ken)
2015-08-26  8:55   ` 答复: " Levente Kurusa
2015-08-26 11:29     ` Jinjian (Ken)
     [not found]       ` <55E66DFB.1020204@huawei.com>
2015-09-07 12:32         ` Paolo Bonzini
2015-09-08 17:21           ` Lucas Meneghel Rodrigues

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