xen-pciback: notify hypervisor about devices intended to be assigned to guests
authorJan Beulich <JBeulich@suse.com>
Tue, 12 Mar 2013 15:06:23 +0000 (15:06 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 22 Mar 2013 14:20:55 +0000 (10:20 -0400)
commit909b3fdb0dd4f3db07b2d75425a00a2adb551383
treee50ce461455625ad48e450057e6fa23ab88ac9cf
parent949dd8c14fb2b20b4b815817e66120b22cf531d4
xen-pciback: notify hypervisor about devices intended to be assigned to guests

For MSI-X capable devices the hypervisor wants to write protect the
MSI-X table and PBA, yet it can't assume that resources have been
assigned to their final values at device enumeration time. Thus have
pciback do that notification, as having the device controlled by it is
a prerequisite to assigning the device to guests anyway.

This is the kernel part of hypervisor side commit 4245d33 ("x86/MSI:
add mechanism to fully protect MSI-X table from PV guest accesses") on
the master branch of git://xenbits.xen.org/xen.git.

CC: stable@vger.kernel.org
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/xen/hypercall.h
drivers/xen/fallback.c
drivers/xen/xen-pciback/pci_stub.c
include/xen/interface/physdev.h