diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2013-01-04 10:06:47 +0100 |
---|---|---|
committer | Andrew Cooper <andrew.cooper3@citrix.com> | 2013-01-04 10:06:47 +0100 |
commit | 78559a477ba0deb03a4b279475606ff3c09efe31 (patch) | |
tree | 5d0f0dd4fecedf626cd56c57a29671af0d788ad9 /xen | |
parent | 737604dcadb70919e38f73621f1616eb9e25fbcb (diff) | |
download | xen-78559a477ba0deb03a4b279475606ff3c09efe31.tar.gz xen-78559a477ba0deb03a4b279475606ff3c09efe31.tar.bz2 xen-78559a477ba0deb03a4b279475606ff3c09efe31.zip |
passthrough/domctl: use correct struct in union
This appears to be a copy paste error from c/s 23861:ec7c81fbe0de.
It is safe, functionally speaking, as both the xen_domctl_assign_device
and xen_domctl_get_device_group structure start with a 'uint32_t
machine_sbdf'. We should however use the correct union structure.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen')
-rw-r--r-- | xen/drivers/passthrough/iommu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c index 1cd0007542..2d584d2a77 100644 --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -591,7 +591,7 @@ int iommu_do_domctl( if ( ret ) break; - seg = domctl->u.get_device_group.machine_sbdf >> 16; + seg = domctl->u.assign_device.machine_sbdf >> 16; bus = (domctl->u.assign_device.machine_sbdf >> 8) & 0xff; devfn = domctl->u.assign_device.machine_sbdf & 0xff; @@ -615,7 +615,7 @@ int iommu_do_domctl( if ( ret ) break; - seg = domctl->u.get_device_group.machine_sbdf >> 16; + seg = domctl->u.assign_device.machine_sbdf >> 16; bus = (domctl->u.assign_device.machine_sbdf >> 8) & 0xff; devfn = domctl->u.assign_device.machine_sbdf & 0xff; @@ -634,7 +634,7 @@ int iommu_do_domctl( if ( ret ) break; - seg = domctl->u.get_device_group.machine_sbdf >> 16; + seg = domctl->u.assign_device.machine_sbdf >> 16; bus = (domctl->u.assign_device.machine_sbdf >> 8) & 0xff; devfn = domctl->u.assign_device.machine_sbdf & 0xff; |