i386/msi: Correct mask of destination ID in MSI address
commit861fec459bb4db69123c3b320e1bad9585cdb524
authorChao Gao <chao.gao@intel.com>
Fri, 17 Nov 2017 06:24:23 +0000 (17 14:24 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Dec 2017 16:28:15 +0000 (1 18:28 +0200)
tree7cdc148251be74954160be7e10e1697eb4f499ef
parentc11d61271b9e6e7a1f0479ef1ca8fb55fa457a62
i386/msi: Correct mask of destination ID in MSI address

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