diff options
author | Avi Kivity <avi@qumranet.com> | 2007-10-28 10:09:18 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-11-08 05:05:44 -0500 |
commit | 651a3e29b3d19418d7a8a9787906061f9be7cc5f (patch) | |
tree | 1f883f1fdfec68909f02531df6c21047bf47c71e /drivers/kvm/x86_emulate.c | |
parent | 56ba47ddbd5af7918bf1acdbe3deb979d0dcd64b (diff) |
KVM: x86 emulator: invd instruction
Emulate the 'invd' instruction (opcode 0f 08).
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/x86_emulate.c')
-rw-r--r-- | drivers/kvm/x86_emulate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index da0cdd521da9..33b181451557 100644 --- a/drivers/kvm/x86_emulate.c +++ b/drivers/kvm/x86_emulate.c | |||
@@ -167,7 +167,7 @@ static u8 opcode_table[256] = { | |||
167 | static u16 twobyte_table[256] = { | 167 | static u16 twobyte_table[256] = { |
168 | /* 0x00 - 0x0F */ | 168 | /* 0x00 - 0x0F */ |
169 | 0, SrcMem | ModRM | DstReg, 0, 0, 0, 0, ImplicitOps, 0, | 169 | 0, SrcMem | ModRM | DstReg, 0, 0, 0, 0, ImplicitOps, 0, |
170 | 0, ImplicitOps, 0, 0, 0, ImplicitOps | ModRM, 0, 0, | 170 | ImplicitOps, ImplicitOps, 0, 0, 0, ImplicitOps | ModRM, 0, 0, |
171 | /* 0x10 - 0x1F */ | 171 | /* 0x10 - 0x1F */ |
172 | 0, 0, 0, 0, 0, 0, 0, 0, ImplicitOps | ModRM, 0, 0, 0, 0, 0, 0, 0, | 172 | 0, 0, 0, 0, 0, 0, 0, 0, ImplicitOps | ModRM, 0, 0, 0, 0, 0, 0, 0, |
173 | /* 0x20 - 0x2F */ | 173 | /* 0x20 - 0x2F */ |
@@ -1532,6 +1532,8 @@ twobyte_special_insn: | |||
1532 | case 0x06: | 1532 | case 0x06: |
1533 | emulate_clts(ctxt->vcpu); | 1533 | emulate_clts(ctxt->vcpu); |
1534 | break; | 1534 | break; |
1535 | case 0x08: /* invd */ | ||
1536 | break; | ||
1535 | case 0x09: /* wbinvd */ | 1537 | case 0x09: /* wbinvd */ |
1536 | break; | 1538 | break; |
1537 | case 0x0d: /* GrpP (prefetch) */ | 1539 | case 0x0d: /* GrpP (prefetch) */ |