diff options
| author | Chao Gao | 2017-11-17 07:24:23 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2017-12-01 17:28:15 +0100 |
| commit | 861fec459bb4db69123c3b320e1bad9585cdb524 (patch) | |
| tree | 7cdc148251be74954160be7e10e1697eb4f499ef /include/hw | |
| parent | Update version for v2.11.0-rc3 release (diff) | |
| download | qemu-861fec459bb4db69123c3b320e1bad9585cdb524.tar.gz qemu-861fec459bb4db69123c3b320e1bad9585cdb524.tar.xz qemu-861fec459bb4db69123c3b320e1bad9585cdb524.zip | |
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>
Diffstat (limited to 'include/hw')
| -rw-r--r-- | include/hw/i386/apic-msidef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/i386/apic-msidef.h b/include/hw/i386/apic-msidef.h index 8b4d4cca55..420b41167d 100644 --- a/include/hw/i386/apic-msidef.h +++ b/include/hw/i386/apic-msidef.h @@ -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 */ |
