]> git.proxmox.com Git - mirror_qemu.git/commitdiff
i386/msi: Correct mask of destination ID in MSI address
authorChao Gao <chao.gao@intel.com>
Fri, 17 Nov 2017 06:24:23 +0000 (14:24 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Dec 2017 16:28:15 +0000 (18:28 +0200)
According to SDM 10.11.1, only [19:12] bits of MSI address are
Destination ID, change the mask to avoid ambiguity for VT-d spec
has used the bit 4 to indicate a remappable interrupt request.

Signed-off-by: Chao Gao <chao.gao@intel.com>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/hw/i386/apic-msidef.h

index 8b4d4cca55247e5e7795de3645e126e6d37ab550..420b41167dbea7182aa9ce36e0dcb2525c07b433 100644 (file)
@@ -26,6 +26,6 @@
 
 #define MSI_ADDR_DEST_ID_SHIFT          12
 #define MSI_ADDR_DEST_IDX_SHIFT         4
-#define  MSI_ADDR_DEST_ID_MASK          0x00ffff0
+#define  MSI_ADDR_DEST_ID_MASK          0x000ff000
 
 #endif /* HW_APIC_MSIDEF_H */