projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8c60e6
)
VT-d: PCI segment numbers are up to 16 bits wide
author
Jan Beulich
<jbeulich@suse.com>
Fri, 15 Oct 2021 09:17:56 +0000
(11:17 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 15 Oct 2021 09:17:56 +0000
(11:17 +0200)
We shouldn't silently truncate respective values.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
master commit:
a3dd33e63c2c8c51102f223e6efe2e3d3bdcbec1
master date: 2021-09-20 10:25:03 +0200
xen/drivers/passthrough/vtd/iommu.c
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/vtd/iommu.c
b/xen/drivers/passthrough/vtd/iommu.c
index 70cfe9dc1fe1fa0d7eb34243e0f0fb1a3ed741fe..870996abdb7620d63e6b115eb658c28e1eb6bea4 100644
(file)
--- a/
xen/drivers/passthrough/vtd/iommu.c
+++ b/
xen/drivers/passthrough/vtd/iommu.c
@@
-1486,7
+1486,8
@@
static int domain_context_mapping(struct domain *domain, u8 devfn,
{
struct acpi_drhd_unit *drhd;
int ret = 0;
- u8 seg = pdev->seg, bus = pdev->bus, secbus;
+ uint16_t seg = pdev->seg;
+ uint8_t bus = pdev->bus, secbus;
drhd = acpi_find_matched_drhd_unit(pdev);
if ( !drhd )
@@
-1700,7
+1701,8
@@
static int domain_context_unmap(struct domain *domain, u8 devfn,
struct acpi_drhd_unit *drhd;
struct vtd_iommu *iommu;
int ret = 0;
- u8 seg = pdev->seg, bus = pdev->bus, tmp_bus, tmp_devfn, secbus;
+ uint16_t seg = pdev->seg;
+ uint8_t bus = pdev->bus, tmp_bus, tmp_devfn, secbus;
bool found;
drhd = acpi_find_matched_drhd_unit(pdev);