Test case of emulating multibyte NOP
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Gleb,
I generate this mail by git send-email and I think the format is OK.
This is my first try to commit a patch in open source community. Sorry for annoying you guys so much.
Thanks,
Arthur
Quoted 52 lines · Arthur Chunqi Li
Add multibyte NOP test case to kvm-unit-tests. This version adds test cases into
x86/realmode.c. This can test one of bugs when booting RHEL5.9 64-bit.Signed-off-by Arthur Chunqi Li <[email protected]>--- x86/realmode.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)x86/realmode.c +24
-1@@ -1504,6 +1504,29 @@ static void test_fninit(void)report ("fninit" ,0 , fsw ==0 && (fcw &0x103f ) ==0x003f ); } +static void test_nopl (void ) +{ +MK_INSN (nopl1,".byte 0x90\n\r" );// 1 byte nop +MK_INSN (nopl2,".byte 0x66, 0x90\n\r" );// 2 bytes nop +MK_INSN (nopl3,".byte 0x0f, 0x1f, 0x00\n\r" );// 3 bytes nop +MK_INSN (nopl4,".byte 0x0f, 0x1f, 0x40, 0x00\n\r" );// 4 bytes nop +MK_INSN (nopl5,".byte 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 5 bytes nop +MK_INSN (nopl6,".byte 0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 6 bytes nop +MK_INSN (nopl7,".byte 0x0f, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00\n\r" );// 7 bytes nop +MK_INSN (nopl8,".byte 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 8 bytes nop +MK_INSN (nopl9,".byte 0x66, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 9 bytes nop +exec_in_big_real_mode (&insn_nopl1); +exec_in_big_real_mode (&insn_nopl2); +exec_in_big_real_mode (&insn_nopl3); +exec_in_big_real_mode (&insn_nopl4); +exec_in_big_real_mode (&insn_nopl5); +exec_in_big_real_mode (&insn_nopl6); +exec_in_big_real_mode (&insn_nopl7); +exec_in_big_real_mode (&insn_nopl8); +exec_in_big_real_mode (&insn_nopl9); +report ("nopl" ,0 ,1 ); +} +void realmode_start (void ) {test_null ();@@ -1548,6 +1571,7 @@ void realmode_start(void)test_xlat ();test_salc ();test_fninit (); +test_nopl ();exit (0 ); } --1.7.9.5
Signature · 5 lines
Arthur Chunqi Li Department of Computer Science School of EECS Peking University Beijing, China
Quoted 3 lines · 李春奇
Hi Gleb,
I generate this mail by git send-email and I think the format is OK.
But I have not received the email, only this your reply to it.
Quoted 4 lines
This is my first try to commit a patch in open source community. Sorry for annoying you guys so much.
Thanks,
No problem.
Quoted 50 lines
Arthur
Quoted 47 lines · Arthur Chunqi Li
Add multibyte NOP test case to kvm-unit-tests. This version adds test cases into
x86/realmode.c. This can test one of bugs when booting RHEL5.9 64-bit.Signed-off-by Arthur Chunqi Li <[email protected]>--- x86/realmode.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)x86/realmode.c +24
-0@@ -1504,6 +1504,29 @@ static void test_fninit(void)report ("fninit" ,0 , fsw ==0 && (fcw &0x103f ) ==0x003f ); } +static void test_nopl (void ) +{ +MK_INSN (nopl1,".byte 0x90\n\r" );// 1 byte nop +MK_INSN (nopl2,".byte 0x66, 0x90\n\r" );// 2 bytes nop +MK_INSN (nopl3,".byte 0x0f, 0x1f, 0x00\n\r" );// 3 bytes nop +MK_INSN (nopl4,".byte 0x0f, 0x1f, 0x40, 0x00\n\r" );// 4 bytes nop +MK_INSN (nopl5,".byte 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 5 bytes nop +MK_INSN (nopl6,".byte 0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 6 bytes nop +MK_INSN (nopl7,".byte 0x0f, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00\n\r" );// 7 bytes nop +MK_INSN (nopl8,".byte 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 8 bytes nop +MK_INSN (nopl9,".byte 0x66, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 9 bytes nop +exec_in_big_real_mode (&insn_nopl1); +exec_in_big_real_mode (&insn_nopl2); +exec_in_big_real_mode (&insn_nopl3); +exec_in_big_real_mode (&insn_nopl4); +exec_in_big_real_mode (&insn_nopl5); +exec_in_big_real_mode (&insn_nopl6); +exec_in_big_real_mode (&insn_nopl7); +exec_in_big_real_mode (&insn_nopl8); +exec_in_big_real_mode (&insn_nopl9); +report ("nopl" ,0 ,1 ); +} +void realmode_start (void ) {test_null ();@@ -1548,6 +1571,7 @@ void realmode_start(void)test_xlat ();test_salc ();test_fninit (); +test_nopl ();
Quoted 14 lines
Quoted 5 lines
x86/realmode.c +0
-1exit (0 ); } --1.7.9.5
Signature · 5 lines
Arthur Chunqi Li Department of Computer Science School of EECS Peking University Beijing, China
--
Gleb.
Quoted 5 lines · Gleb Natapov
Quoted 3 lines · 李春奇
Hi Gleb,
I generate this mail by git send-email and I think the format is OK.But I have not received the email, only this your reply to it.
Maybe the initial mail is in your spam box.
Quoted 72 lines
Quoted 5 lines
This is my first try to commit a patch in open source community. Sorry for annoying you guys so much.
Thanks,
No problem.
Quoted 50 lines
Arthur
Quoted 47 lines · Arthur Chunqi Li
Add multibyte NOP test case to kvm-unit-tests. This version adds test cases into
x86/realmode.c. This can test one of bugs when booting RHEL5.9 64-bit.Signed-off-by Arthur Chunqi Li <[email protected]>--- x86/realmode.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)x86/realmode.c +24
-0@@ -1504,6 +1504,29 @@ static void test_fninit(void)report ("fninit" ,0 , fsw ==0 && (fcw &0x103f ) ==0x003f ); } +static void test_nopl (void ) +{ +MK_INSN (nopl1,".byte 0x90\n\r" );// 1 byte nop +MK_INSN (nopl2,".byte 0x66, 0x90\n\r" );// 2 bytes nop +MK_INSN (nopl3,".byte 0x0f, 0x1f, 0x00\n\r" );// 3 bytes nop +MK_INSN (nopl4,".byte 0x0f, 0x1f, 0x40, 0x00\n\r" );// 4 bytes nop +MK_INSN (nopl5,".byte 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 5 bytes nop +MK_INSN (nopl6,".byte 0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 6 bytes nop +MK_INSN (nopl7,".byte 0x0f, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00\n\r" );// 7 bytes nop +MK_INSN (nopl8,".byte 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 8 bytes nop +MK_INSN (nopl9,".byte 0x66, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 9 bytes nop +exec_in_big_real_mode (&insn_nopl1); +exec_in_big_real_mode (&insn_nopl2); +exec_in_big_real_mode (&insn_nopl3); +exec_in_big_real_mode (&insn_nopl4); +exec_in_big_real_mode (&insn_nopl5); +exec_in_big_real_mode (&insn_nopl6); +exec_in_big_real_mode (&insn_nopl7); +exec_in_big_real_mode (&insn_nopl8); +exec_in_big_real_mode (&insn_nopl9); +report ("nopl" ,0 ,1 ); +} +void realmode_start (void ) {test_null ();@@ -1548,6 +1571,7 @@ void realmode_start(void)test_xlat ();test_salc ();test_fninit (); +test_nopl ();Quoted 14 lines
Quoted 5 lines
x86/realmode.c +0
-1exit (0 ); } --1.7.9.5
--
Arthur Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, China
Quoted 2 lines
--
Gleb.
--
Arthur Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, China
Quoted 8 lines · 李春奇
Quoted 5 lines · Gleb Natapov
Quoted 3 lines · 李春奇
Hi Gleb,
I generate this mail by git send-email and I think the format is OK.But I have not received the email, only this your reply to it.
Maybe the initial mail is in your spam box.
Doubt it. I do not see it in mailing list archive either:
http://news.gmane.org/gmane.comp.emulators.kvm.devel
What git command line you've used to sent the email?
Quoted 77 lines
Quoted 72 lines
Quoted 5 lines
This is my first try to commit a patch in open source community. Sorry for annoying you guys so much.
Thanks,
No problem.
Quoted 50 lines
Arthur
Quoted 47 lines · Arthur Chunqi Li
Add multibyte NOP test case to kvm-unit-tests. This version adds test cases into
x86/realmode.c. This can test one of bugs when booting RHEL5.9 64-bit.Signed-off-by Arthur Chunqi Li <[email protected]>--- x86/realmode.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)x86/realmode.c +24
-0@@ -1504,6 +1504,29 @@ static void test_fninit(void)report ("fninit" ,0 , fsw ==0 && (fcw &0x103f ) ==0x003f ); } +static void test_nopl (void ) +{ +MK_INSN (nopl1,".byte 0x90\n\r" );// 1 byte nop +MK_INSN (nopl2,".byte 0x66, 0x90\n\r" );// 2 bytes nop +MK_INSN (nopl3,".byte 0x0f, 0x1f, 0x00\n\r" );// 3 bytes nop +MK_INSN (nopl4,".byte 0x0f, 0x1f, 0x40, 0x00\n\r" );// 4 bytes nop +MK_INSN (nopl5,".byte 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 5 bytes nop +MK_INSN (nopl6,".byte 0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 6 bytes nop +MK_INSN (nopl7,".byte 0x0f, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00\n\r" );// 7 bytes nop +MK_INSN (nopl8,".byte 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 8 bytes nop +MK_INSN (nopl9,".byte 0x66, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 9 bytes nop +exec_in_big_real_mode (&insn_nopl1); +exec_in_big_real_mode (&insn_nopl2); +exec_in_big_real_mode (&insn_nopl3); +exec_in_big_real_mode (&insn_nopl4); +exec_in_big_real_mode (&insn_nopl5); +exec_in_big_real_mode (&insn_nopl6); +exec_in_big_real_mode (&insn_nopl7); +exec_in_big_real_mode (&insn_nopl8); +exec_in_big_real_mode (&insn_nopl9); +report ("nopl" ,0 ,1 ); +} +void realmode_start (void ) {test_null ();@@ -1548,6 +1571,7 @@ void realmode_start(void)test_xlat ();test_salc ();test_fninit (); +test_nopl ();Quoted 14 lines
Quoted 5 lines
x86/realmode.c +0
-1exit (0 ); } --1.7.9.5
--
Arthur Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, ChinaQuoted 2 lines
--
Gleb.
Quoted 6 lines
--
Arthur Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, China
--
Gleb.
Quoted 6 lines · Gleb Natapov
Quoted 5 lines · 李春奇
Quoted 4 lines · Gleb Natapov
Quoted 3 lines · 李春奇
Hi Gleb,
I generate this mail by git send-email and I think the format is OK.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
But I have not received the email, only this your reply to it.
Maybe the initial mail is in your spam box.
Doubt it. I do not see it in mailing list archive either:
http://news.gmane.org/gmane.comp.emulators.kvm.develWhat git command line you've used to sent the email?
git send-email --to [email protected] --cc [email protected] --cc [email protected] 0001-Test-case-of-emulating-multibyte-NOP.patch
Should I need to add some smtp options?
Arthur
Quoted 87 lines
Quoted 78 lines
Quoted 73 lines
Quoted 6 lines
This is my first try to commit a patch in open source community. Sorry for annoying you guys so much.
Thanks,
No problem.
Quoted 50 lines
Arthur
Quoted 47 lines · Arthur Chunqi Li
Add multibyte NOP test case to kvm-unit-tests. This version adds test cases into
x86/realmode.c. This can test one of bugs when booting RHEL5.9 64-bit.Signed-off-by Arthur Chunqi Li <[email protected]>--- x86/realmode.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)x86/realmode.c +24
-0@@ -1504,6 +1504,29 @@ static void test_fninit(void)report ("fninit" ,0 , fsw ==0 && (fcw &0x103f ) ==0x003f ); } +static void test_nopl (void ) +{ +MK_INSN (nopl1,".byte 0x90\n\r" );// 1 byte nop +MK_INSN (nopl2,".byte 0x66, 0x90\n\r" );// 2 bytes nop +MK_INSN (nopl3,".byte 0x0f, 0x1f, 0x00\n\r" );// 3 bytes nop +MK_INSN (nopl4,".byte 0x0f, 0x1f, 0x40, 0x00\n\r" );// 4 bytes nop +MK_INSN (nopl5,".byte 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 5 bytes nop +MK_INSN (nopl6,".byte 0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 6 bytes nop +MK_INSN (nopl7,".byte 0x0f, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00\n\r" );// 7 bytes nop +MK_INSN (nopl8,".byte 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 8 bytes nop +MK_INSN (nopl9,".byte 0x66, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 9 bytes nop +exec_in_big_real_mode (&insn_nopl1); +exec_in_big_real_mode (&insn_nopl2); +exec_in_big_real_mode (&insn_nopl3); +exec_in_big_real_mode (&insn_nopl4); +exec_in_big_real_mode (&insn_nopl5); +exec_in_big_real_mode (&insn_nopl6); +exec_in_big_real_mode (&insn_nopl7); +exec_in_big_real_mode (&insn_nopl8); +exec_in_big_real_mode (&insn_nopl9); +report ("nopl" ,0 ,1 ); +} +void realmode_start (void ) {test_null ();@@ -1548,6 +1571,7 @@ void realmode_start(void)test_xlat ();test_salc ();test_fninit (); +test_nopl ();Quoted 14 lines
Quoted 5 lines
x86/realmode.c +0
-1exit (0 ); } --1.7.9.5
--
Arthur Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, ChinaQuoted 2 lines
--
Gleb.Quoted 6 lines
--
Arthur Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, China--
Gleb.
Quoted 10 lines · 李春奇
Quoted 9 lines · Gleb Natapov
Quoted 8 lines · 李春奇
Quoted 5 lines · Gleb Natapov
Quoted 3 lines · 李春奇
Hi Gleb,
I generate this mail by git send-email and I think the format is OK.But I have not received the email, only this your reply to it.
Maybe the initial mail is in your spam box.
Quoted 9 lines
Quoted 4 lines
Doubt it. I do not see it in mailing list archive either:
http://news.gmane.org/gmane.comp.emulators.kvm.develWhat git command line you've used to sent the email?
git send-email --to [email protected] --cc [email protected] --cc [email protected] 0001-Test-case-of-emulating-multibyte-NOP.patch
Should I need to add some smtp options?
You need to configure smtp server. Just like you need to do that for any other email application.
Quoted 88 lines
Arthur
Quoted 87 lines
Quoted 78 lines
Quoted 73 lines
Quoted 6 lines
This is my first try to commit a patch in open source community. Sorry for annoying you guys so much.
Thanks,
No problem.
Quoted 50 lines
Arthur
Quoted 47 lines · Arthur Chunqi Li
Add multibyte NOP test case to kvm-unit-tests. This version adds test cases into
x86/realmode.c. This can test one of bugs when booting RHEL5.9 64-bit.Signed-off-by Arthur Chunqi Li <[email protected]>--- x86/realmode.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)x86/realmode.c +24
-0@@ -1504,6 +1504,29 @@ static void test_fninit(void)report ("fninit" ,0 , fsw ==0 && (fcw &0x103f ) ==0x003f ); } +static void test_nopl (void ) +{ +MK_INSN (nopl1,".byte 0x90\n\r" );// 1 byte nop +MK_INSN (nopl2,".byte 0x66, 0x90\n\r" );// 2 bytes nop +MK_INSN (nopl3,".byte 0x0f, 0x1f, 0x00\n\r" );// 3 bytes nop +MK_INSN (nopl4,".byte 0x0f, 0x1f, 0x40, 0x00\n\r" );// 4 bytes nop +MK_INSN (nopl5,".byte 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 5 bytes nop +MK_INSN (nopl6,".byte 0x66, 0x0f, 0x1f, 0x44, 0x00, 0x00\n\r" );// 6 bytes nop +MK_INSN (nopl7,".byte 0x0f, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00\n\r" );// 7 bytes nop +MK_INSN (nopl8,".byte 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 8 bytes nop +MK_INSN (nopl9,".byte 0x66, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00\n\r" );// 9 bytes nop +exec_in_big_real_mode (&insn_nopl1); +exec_in_big_real_mode (&insn_nopl2); +exec_in_big_real_mode (&insn_nopl3); +exec_in_big_real_mode (&insn_nopl4); +exec_in_big_real_mode (&insn_nopl5); +exec_in_big_real_mode (&insn_nopl6); +exec_in_big_real_mode (&insn_nopl7); +exec_in_big_real_mode (&insn_nopl8); +exec_in_big_real_mode (&insn_nopl9); +report ("nopl" ,0 ,1 ); +} +void realmode_start (void ) {test_null ();@@ -1548,6 +1571,7 @@ void realmode_start(void)test_xlat ();test_salc ();test_fninit (); +test_nopl ();Quoted 14 lines
Quoted 5 lines
x86/realmode.c +0
-1exit (0 ); } --1.7.9.5
--
Arthur Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, ChinaQuoted 2 lines
--
Gleb.Quoted 6 lines
--
Arthur Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, China--
Gleb.
--
Gleb.