Commit 0574dec0 authored by Joerg Roedel's avatar Joerg Roedel Committed by Avi Kivity

KVM: SVM: Add clean-bit for CR2 register

This patch implements the clean-bit for the cr2 register in
the vmcb.
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 060d0c9a
...@@ -196,11 +196,12 @@ enum { ...@@ -196,11 +196,12 @@ enum {
VMCB_DR, /* DR6, DR7 */ VMCB_DR, /* DR6, DR7 */
VMCB_DT, /* GDT, IDT */ VMCB_DT, /* GDT, IDT */
VMCB_SEG, /* CS, DS, SS, ES, CPL */ VMCB_SEG, /* CS, DS, SS, ES, CPL */
VMCB_CR2, /* CR2 only */
VMCB_DIRTY_MAX, VMCB_DIRTY_MAX,
}; };
/* TPR is always written before VMRUN */ /* TPR and CR2 are always written before VMRUN */
#define VMCB_ALWAYS_DIRTY_MASK (1U << VMCB_INTR) #define VMCB_ALWAYS_DIRTY_MASK ((1U << VMCB_INTR) | (1U << VMCB_CR2))
static inline void mark_all_dirty(struct vmcb *vmcb) static inline void mark_all_dirty(struct vmcb *vmcb)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment