]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC Revision 233465
authorgibbs <gibbs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Apr 2012 16:50:48 +0000 (16:50 +0000)
committergibbs <gibbs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Apr 2012 16:50:48 +0000 (16:50 +0000)
commit003ae95a7d1c9bdfe029952cca64ce6b6f8f56e4
treec771f5abccbf4ac474601af152f263bd9ace11fa
parent0ec43cde79a862e7931d27fb8e1742e922750366
MFC Revision 233465

Correct failure to attach the PV block front device on Citrix
XenServer configurations that advertise the multi-page ring extension,
but only allow a single page of ring space.

sys/dev/xen/blkfront/blkfront.c:
If only one page of ring space is being used, do not publish
in the XenStore the number of pages in use (1), via either
of the supported multi-page ring extension schemes.

Single page operation is the same with or without the
ring-page extension being negotiated.   Relying on the
legacy behavior avoids an incompatible difference in how
the two ring-page extension schemes that are out in the
wild deal with the base case of a single page.  The
Amazon/Red Hat drivers use the same XenStore variable as
if the extension was not negotiated.  The Citrix drivers
assume the new ring reference XenStore variables will be
available.

Reported by: Oliver Schonefeld <schonefeld@ids-mannheim.de>

git-svn-id: svn://svn.freebsd.org/base/stable/8@233791 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/xen/blkfront/blkfront.c