kvm, x86: Adding support for SE mode execution

This patch adds methods in KvmCPU model to handle KVM exits caused by syscall
instructions and page faults. These types of exits will be encountered if
KvmCPU is run in SE mode.
This commit is contained in:
Alexandru Dutu
2014-11-23 18:01:08 -08:00
parent 335514dfdc
commit adbaa4dfde
18 changed files with 489 additions and 17 deletions

View File

@@ -59,8 +59,11 @@
#define reserved4_func 0x58 // Reserved for user
#define reserved5_func 0x59 // Reserved for user
#define work_begin_func 0x5a
#define work_end_func 0x5b
#define work_begin_func 0x5a
#define work_end_func 0x5b
#define syscall_func 0x60 // Reserved for user
#define pagefault_func 0x61 // Reserved for user
// These operations are for critical path annotation
#define annotate_func 0x55