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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:25:49 +0000 (09:25 -0700)
commita420a7e3a40a8396104d9a62f676205f2db1a671
tree854c0fe3be126e3e2e1779ac2af227723a3c2c95
parente131628113867748a05c9080b9aaf67740d24057
xen-pciback: notify hypervisor about devices intended to be assigned to guests

commit 909b3fdb0dd4f3db07b2d75425a00a2adb551383 upstream.

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.

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