Donald Dutile ffe3ce1173 pci-devfn: check that device/slot number is within range
Need to check that guest slot/device number is not > 31 or walk off
the devfn table when checking if a devfn is available or not in a guest.

before this fix, passing in an addr=abc  or addr=34,
can crash qemu, sometimes fail gracefully if data past end
of devfn table fails the availability test.

with this fix, get clean error:
Property 'pci-assign.addr' doesn't take value '34'

also tested when no addr= param passed for guest (pcicfg) address,
and that worked as well.

Signed-off-by: Don Dutile <ddutile@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-09-23 10:55:34 -05:00
..
2011-09-21 14:32:20 +02:00
2011-09-19 21:22:29 +03:00
2011-09-23 10:55:33 -05:00
2011-09-10 14:46:12 +00:00
2011-09-10 14:49:51 +00:00
2011-09-15 16:39:32 -03:00
2011-09-18 17:06:53 +03:00
2011-09-18 17:06:53 +03:00
2011-09-18 17:06:53 +03:00
2011-09-10 16:50:46 +00:00
2011-09-10 16:50:46 +00:00
2011-09-18 17:06:53 +03:00
2011-09-21 11:14:42 +03:00
2011-09-21 11:14:42 +03:00
2011-09-21 11:14:10 +03:00
2011-09-23 10:55:33 -05:00
2011-09-23 10:55:33 -05:00
2011-09-21 14:32:20 +02:00
2011-09-19 21:22:30 +03:00
2011-09-19 21:22:30 +03:00
2011-09-16 09:06:28 -05:00
2011-09-20 12:27:44 +02:00
2011-09-18 12:00:19 +00:00
2011-09-23 10:55:33 -05:00
2011-09-21 10:49:16 +01:00
2011-09-21 10:49:16 +01:00