xen-pciback: relax BAR sizing write value check
authorJan Beulich <JBeulich@suse.com>
Mon, 25 Sep 2017 08:01:01 +0000 (02:01 -0600)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 28 Sep 2017 12:26:25 +0000 (08:26 -0400)
commit8c28ef3f1c1c57b6f468343d5959e5125b30334d
treed0ed3d8dbfbd919dabab198cf9187c77e23177b5
parent51a9a8284e43642fc3e85810fd54f4c245d23a14
xen-pciback: relax BAR sizing write value check

Just like done in d2bd05d88d ("xen-pciback: return proper values during
BAR sizing") for the ROM BAR, ordinary ones also shouldn't compare the
written value directly against ~0, but consider the r/o bits at the
bottom (if any).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xen-pciback/conf_space_header.c