xen/pciback: Save the number of MSI-X entries to be copied later.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 11 Feb 2016 21:10:24 +0000 (16:10 -0500)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 22:32:48 +0000 (23:32 +0100)
commit2801814294bae5fd16ac07822a0e074b7e188f52
tree1fbdeaffa63dd1799100e6643932d740fcc06f63
parentffb6bca6899f85c6c8b1609aeac3e004d18f8071
xen/pciback: Save the number of MSI-X entries to be copied later.

commit d159457b84395927b5a52adb72f748dd089ad5e5 upstream.

Commit 8135cf8b092723dbfcc611fe6fdcb3a36c9951c5 (xen/pciback: Save
xen_pci_op commands before processing it) broke enabling MSI-X because
it would never copy the resulting vectors into the response.  The
number of vectors requested was being overwritten by the return value
(typically zero for success).

Save the number of vectors before processing the op, so the correct
number of vectors are copied afterwards.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/xen/xen-pciback/pciback_ops.c