diff options
| author | Michael S. Tsirkin | 2014-10-20 11:37:23 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-11-02 11:03:04 +0100 |
| commit | 1e06f131fd9a44dd4af223875660802fd2a3441f (patch) | |
| tree | 69107bc5f114b9e5b9bdcaffc262d86cfde4bfdb /include | |
| parent | virtio-pci: fix migration for pci bus master (diff) | |
| download | qemu-1e06f131fd9a44dd4af223875660802fd2a3441f.tar.gz qemu-1e06f131fd9a44dd4af223875660802fd2a3441f.tar.xz qemu-1e06f131fd9a44dd4af223875660802fd2a3441f.zip | |
intel_iommu: fix VTD_SID_TO_BUS
(((sid) >> 8) && 0xff) makes no sense
(((sid) >> 8) & 0xff) seems to be what was meant.
https://bugs.launchpad.net/qemu/+bug/1382477
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/i386/intel_iommu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/i386/intel_iommu.h b/include/hw/i386/intel_iommu.h index f4701e1c60..e321ee4fbc 100644 --- a/include/hw/i386/intel_iommu.h +++ b/include/hw/i386/intel_iommu.h @@ -37,7 +37,7 @@ #define VTD_PCI_DEVFN_MAX 256 #define VTD_PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) #define VTD_PCI_FUNC(devfn) ((devfn) & 0x07) -#define VTD_SID_TO_BUS(sid) (((sid) >> 8) && 0xff) +#define VTD_SID_TO_BUS(sid) (((sid) >> 8) & 0xff) #define VTD_SID_TO_DEVFN(sid) ((sid) & 0xff) #define DMAR_REG_SIZE 0x230 |
