svm: Introduce new AVIC VMCB registers
authorSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Wed, 4 May 2016 19:09:45 +0000 (14:09 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 May 2016 16:04:28 +0000 (18:04 +0200)
Introduce new AVIC VMCB registers.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/svm.h

index 6136d99f537b493f8c888b312fad3af996fe5787..4711fa4457f3537a2d551673b34f9f6a12ae2474 100644 (file)
@@ -78,7 +78,8 @@ struct __attribute__ ((__packed__)) vmcb_control_area {
        u32 exit_int_info;
        u32 exit_int_info_err;
        u64 nested_ctl;
-       u8 reserved_4[16];
+       u64 avic_vapic_bar;
+       u8 reserved_4[8];
        u32 event_inj;
        u32 event_inj_err;
        u64 nested_cr3;
@@ -88,7 +89,11 @@ struct __attribute__ ((__packed__)) vmcb_control_area {
        u64 next_rip;
        u8 insn_len;
        u8 insn_bytes[15];
-       u8 reserved_6[800];
+       u64 avic_backing_page;  /* Offset 0xe0 */
+       u8 reserved_6[8];       /* Offset 0xe8 */
+       u64 avic_logical_id;    /* Offset 0xf0 */
+       u64 avic_physical_id;   /* Offset 0xf8 */
+       u8 reserved_7[768];
 };