|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [qemu-xen-unstable] passthrough: mask out upper bits in
commit 5c5295c807583e3cc29fafb3603a8b89dc83edac
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date: Tue Jun 28 13:49:35 2011 +0100
passthrough: mask out upper bits in vendor id
Making vendor_id u16 eliminates potential bogus upper bits that are
not part of the actual 16-bit vendor ID. On some systems, upper bits
shows up with 0xffff.
Signed-off-by: Allen Kay <allen.m.kay@xxxxxxxxx>
---
hw/pt-graphics.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/pt-graphics.c b/hw/pt-graphics.c
index d444921..889772d 100644
--- a/hw/pt-graphics.c
+++ b/hw/pt-graphics.c
@@ -94,7 +94,8 @@ uint32_t igd_pci_read(PCIDevice *pci_dev, uint32_t
config_addr, int len)
*/
int register_vga_regions(struct pt_dev *real_device)
{
- u32 vendor_id, igd_opregion;
+ u16 vendor_id;
+ int igd_opregion;
int ret = 0;
if ( !gfx_passthru || real_device->pci_dev->device_class != 0x0300 )
--
generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [qemu-xen-unstable] passthrough: mask out upper bits in vendor id,
patchbot <=
|
|
|
|
|