Re: [PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-20 Thread Paolo Bonzini
Il 19/06/2013 17:00, Arthur Chunqi Li ha scritto: static void test_movabs(uint64_t *mem, uint8_t *insn_page, uint8_t *alt_insn_page, void *insn_ram) { -uint64_t val = 0; -ulong *cr3 = (ulong *)read_cr3(); - -// Pad with RET instructions -

[PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-20 Thread Arthur Chunqi Li
Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by: Arthur Chunqi Li yzt...@gmail.com --- x86/emulator.c | 70 1 file changed, 15 insertions(+), 55 deletions(-) diff --git a/x86/emulator.c

Re: [PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-20 Thread Gleb Natapov
On Thu, Jun 20, 2013 at 06:45:22PM +0800, Arthur Chunqi Li wrote: Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by: Arthur Chunqi Li yzt...@gmail.com --- x86/emulator.c | 70 1

[PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-19 Thread Arthur Chunqi Li
Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by: Arthur Chunqi Li yzt...@gmail.com --- x86/emulator.c | 62 ++-- 1 file changed, 11 insertions(+), 51 deletions(-) diff --git a/x86/emulator.c

[PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-13 Thread Arthur Chunqi Li
Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by: Arthur Chunqi Li yzt...@gmail.com --- x86/emulator.c | 85 +++- 1 file changed, 23 insertions(+), 62 deletions(-) diff --git a/x86/emulator.c

Re: [PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-12 Thread Paolo Bonzini
Il 06/06/2013 11:24, Arthur Chunqi Li ha scritto: Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by: Arthur Chunqi Li yzt...@gmail.com --- x86/emulator.c | 66 1 file changed, 14

[PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-10 Thread Arthur Chunqi Li
Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by: Arthur Chunqi Li yzt...@gmail.com --- x86/emulator.c | 63 +++- 1 file changed, 12 insertions(+), 51 deletions(-) diff --git a/x86/emulator.c

Re: [PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-10 Thread 李春奇
Sorry, there are some small mistakes in the first path, recommit it. Arthur On Mon, Jun 10, 2013 at 9:45 PM, Arthur Chunqi Li yzt...@gmail.com wrote: Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by: Arthur Chunqi Li yzt...@gmail.com ---

[PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-10 Thread Arthur Chunqi Li
Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by: Arthur Chunqi Li yzt...@gmail.com --- x86/emulator.c | 65 1 file changed, 13 insertions(+), 52 deletions(-) diff --git a/x86/emulator.c

[PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-06 Thread Arthur Chunqi Li
Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by: Arthur Chunqi Li yzt...@gmail.com --- x86/emulator.c | 66 1 file changed, 14 insertions(+), 52 deletions(-) diff --git a/x86/emulator.c

[PATCH 2/2] kvm-unit-tests: Change two cases to use trap_emulator

2013-06-06 Thread Arthur Chunqi Li
Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by: Arthur Chunqi Li yzt...@gmail.com --- x86/emulator.c | 66 1 file changed, 14 insertions(+), 52 deletions(-) diff --git a/x86/emulator.c