diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2009-11-25 00:33:03 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 15:25:57 -0600 |
commit | a0fb002c6462d21ceb9eac8c5772e469ec189374 (patch) | |
tree | 03746f1dd29d82b6bf599a0afde1645454ed8593 /target-i386/machine.c | |
parent | 5a2e3c2e11802215cbb69d6e5ad35b5bdc7d5382 (diff) |
kvm: x86: Add support for VCPU event states
This patch extends the qemu-kvm state sync logic with support for
KVM_GET/SET_VCPU_EVENTS, giving access to yet missing exception,
interrupt and NMI states.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-i386/machine.c')
-rw-r--r-- | target-i386/machine.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target-i386/machine.c b/target-i386/machine.c index c09b049d90..cdc8898a6f 100644 --- a/target-i386/machine.c +++ b/target-i386/machine.c @@ -448,6 +448,11 @@ static const VMStateDescription vmstate_cpu = { VMSTATE_INT32_V(interrupt_injected, CPUState, 9), VMSTATE_UINT32_V(mp_state, CPUState, 9), VMSTATE_UINT64_V(tsc, CPUState, 9), + VMSTATE_UINT8_V(soft_interrupt, CPUState, 11), + VMSTATE_UINT8_V(nmi_injected, CPUState, 11), + VMSTATE_UINT8_V(nmi_pending, CPUState, 11), + VMSTATE_UINT8_V(has_error_code, CPUState, 11), + VMSTATE_UINT32_V(sipi_vector, CPUState, 11), /* MCE */ VMSTATE_UINT64_V(mcg_cap, CPUState, 10), VMSTATE_UINT64_V(mcg_status, CPUState, 10), @@ -456,6 +461,7 @@ static const VMStateDescription vmstate_cpu = { /* rdtscp */ VMSTATE_UINT64_V(tsc_aux, CPUState, 11), VMSTATE_END_OF_LIST() + /* The above list is not sorted /wrt version numbers, watch out! */ } }; |