Skip to content

Commit 6ef1522

Browse files
Feng Wubonzini
authored andcommitted
KVM: Extend struct pi_desc for VT-d Posted-Interrupts
Extend struct pi_desc for VT-d Posted-Interrupts. Signed-off-by: Feng Wu <[email protected]> Reviewed-by: Alex Williamson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent f70c20a commit 6ef1522

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

arch/x86/kvm/vmx.c

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,24 @@ struct nested_vmx {
446446
/* Posted-Interrupt Descriptor */
447447
struct pi_desc {
448448
u32 pir[8]; /* Posted interrupt requested */
449-
u32 control; /* bit 0 of control is outstanding notification bit */
450-
u32 rsvd[7];
449+
union {
450+
struct {
451+
/* bit 256 - Outstanding Notification */
452+
u16 on : 1,
453+
/* bit 257 - Suppress Notification */
454+
sn : 1,
455+
/* bit 271:258 - Reserved */
456+
rsvd_1 : 14;
457+
/* bit 279:272 - Notification Vector */
458+
u8 nv;
459+
/* bit 287:280 - Reserved */
460+
u8 rsvd_2;
461+
/* bit 319:288 - Notification Destination */
462+
u32 ndst;
463+
};
464+
u64 control;
465+
};
466+
u32 rsvd[6];
451467
} __aligned(64);
452468

453469
static bool pi_test_and_set_on(struct pi_desc *pi_desc)

0 commit comments

Comments
 (0)