diff mbox

[04/15] emulator: Exclude test_lgdt_lidt from building

Message ID a94dd6b3325285b53f7558ba4c70c524909198fd.1387187847.git.jan.kiszka@siemens.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kiszka Dec. 16, 2013, 9:57 a.m. UTC
See commit 47c1461a5.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 x86/emulator.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Paolo Bonzini Dec. 17, 2013, 10:31 a.m. UTC | #1
Il 16/12/2013 10:57, Jan Kiszka ha scritto:
> See commit 47c1461a5.
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  x86/emulator.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/x86/emulator.c b/x86/emulator.c
> index 68d2b93..4e70e8f 100644
> --- a/x86/emulator.c
> +++ b/x86/emulator.c
> @@ -843,6 +843,7 @@ static void test_string_io_mmio(volatile uint8_t *mem)
>  	report("string_io_mmio", mmio[1023] == 0x99);
>  }
>  
> +/* kvm doesn't allow lidt/lgdt from mmio, so the test is disabled
>  static void test_lgdt_lidt(volatile uint8_t *mem)
>  {
>      struct descriptor_table_ptr orig, fresh = {};
> @@ -871,6 +872,7 @@ static void test_lgdt_lidt(volatile uint8_t *mem)
>      sti();
>      report("lidt (long address)", orig.limit == fresh.limit && orig.base == fresh.base);
>  }
> +*/

I'm changing this to #if 0 ... #endif when applying.

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
diff mbox

Patch

diff --git a/x86/emulator.c b/x86/emulator.c
index 68d2b93..4e70e8f 100644
--- a/x86/emulator.c
+++ b/x86/emulator.c
@@ -843,6 +843,7 @@  static void test_string_io_mmio(volatile uint8_t *mem)
 	report("string_io_mmio", mmio[1023] == 0x99);
 }
 
+/* kvm doesn't allow lidt/lgdt from mmio, so the test is disabled
 static void test_lgdt_lidt(volatile uint8_t *mem)
 {
     struct descriptor_table_ptr orig, fresh = {};
@@ -871,6 +872,7 @@  static void test_lgdt_lidt(volatile uint8_t *mem)
     sti();
     report("lidt (long address)", orig.limit == fresh.limit && orig.base == fresh.base);
 }
+*/
 
 static void ss_bad_rpl(struct ex_regs *regs)
 {