diff options
author | Sergio Andres Gomez Del Real | 2017-09-13 11:05:21 +0200 |
---|---|---|
committer | Paolo Bonzini | 2017-12-22 15:01:48 +0100 |
commit | b7394c8394d38cb38b6db14eb431cac7a91e7140 (patch) | |
tree | 68ed6476103dfb40f8e214d33f2a2ad362f0434d /target/i386/hvf-utils/vmcs.h | |
parent | i386: hvf: implement vga dirty page tracking (diff) | |
download | qemu-b7394c8394d38cb38b6db14eb431cac7a91e7140.tar.gz qemu-b7394c8394d38cb38b6db14eb431cac7a91e7140.tar.xz qemu-b7394c8394d38cb38b6db14eb431cac7a91e7140.zip |
i386: hvf: refactor event injection code for hvf
This patch refactors the event-injection code for hvf by using the
appropriate fields already provided by CPUX86State. At vmexit, it fills
these fields so that hvf_inject_interrupts can just retrieve them without
calling into hvf.
Signed-off-by: Sergio Andres Gomez Del Real <Sergio.G.DelReal@gmail.com>
Message-Id: <20170913090522.4022-14-Sergio.G.DelReal@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/hvf-utils/vmcs.h')
-rw-r--r-- | target/i386/hvf-utils/vmcs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/i386/hvf-utils/vmcs.h b/target/i386/hvf-utils/vmcs.h index cd3a19fe38..2a8c0424a5 100644 --- a/target/i386/hvf-utils/vmcs.h +++ b/target/i386/hvf-utils/vmcs.h @@ -299,6 +299,7 @@ /* * VMCS IDT-Vectoring information fields */ +#define VMCS_IDT_VEC_VECNUM 0xFF #define VMCS_IDT_VEC_VALID (1U << 31) #define VMCS_IDT_VEC_TYPE 0x700 #define VMCS_IDT_VEC_ERRCODE_VALID (1U << 11) @@ -306,6 +307,8 @@ #define VMCS_IDT_VEC_NMI (2 << 8) #define VMCS_IDT_VEC_HWEXCEPTION (3 << 8) #define VMCS_IDT_VEC_SWINTR (4 << 8) +#define VMCS_IDT_VEC_PRIV_SWEXCEPTION (5 << 8) +#define VMCS_IDT_VEC_SWEXCEPTION (6 << 8) /* * VMCS Guest interruptibility field |