diff options
author | Avi Kivity <avi@redhat.com> | 2011-04-04 06:39:23 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-05-11 07:57:00 -0400 |
commit | 3c6e276f22cf29188035535127c4c35aeeafcabc (patch) | |
tree | 910d8cc7338d4e8f88b2cd4d069898c579f8c0b3 /arch/x86/include | |
parent | c4f035c60dad45ff8813550dc82540dbbc263df2 (diff) |
KVM: x86 emulator: add SVM intercepts
Add intercept codes for instructions defined by SVM as
interceptable.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_emulate.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index 2cfea49d4706..470ac54ca38d 100644 --- a/arch/x86/include/asm/kvm_emulate.h +++ b/arch/x86/include/asm/kvm_emulate.h | |||
@@ -281,6 +281,41 @@ enum x86_intercept_stage { | |||
281 | 281 | ||
282 | enum x86_intercept { | 282 | enum x86_intercept { |
283 | x86_intercept_none, | 283 | x86_intercept_none, |
284 | x86_intercept_lmsw, | ||
285 | x86_intercept_smsw, | ||
286 | x86_intercept_lidt, | ||
287 | x86_intercept_sidt, | ||
288 | x86_intercept_lgdt, | ||
289 | x86_intercept_sgdt, | ||
290 | x86_intercept_lldt, | ||
291 | x86_intercept_sldt, | ||
292 | x86_intercept_ltr, | ||
293 | x86_intercept_str, | ||
294 | x86_intercept_rdtsc, | ||
295 | x86_intercept_rdpmc, | ||
296 | x86_intercept_pushf, | ||
297 | x86_intercept_popf, | ||
298 | x86_intercept_cpuid, | ||
299 | x86_intercept_rsm, | ||
300 | x86_intercept_iret, | ||
301 | x86_intercept_intn, | ||
302 | x86_intercept_invd, | ||
303 | x86_intercept_pause, | ||
304 | x86_intercept_hlt, | ||
305 | x86_intercept_invlpg, | ||
306 | x86_intercept_invlpga, | ||
307 | x86_intercept_vmrun, | ||
308 | x86_intercept_vmload, | ||
309 | x86_intercept_vmsave, | ||
310 | x86_intercept_vmmcall, | ||
311 | x86_intercept_stgi, | ||
312 | x86_intercept_clgi, | ||
313 | x86_intercept_skinit, | ||
314 | x86_intercept_rdtscp, | ||
315 | x86_intercept_icebp, | ||
316 | x86_intercept_wbinvd, | ||
317 | x86_intercept_monitor, | ||
318 | x86_intercept_mwait, | ||
284 | 319 | ||
285 | nr_x86_intercepts | 320 | nr_x86_intercepts |
286 | }; | 321 | }; |